Skip to main content
GET
/
codes
/
{version_id}
/
tree
get tree
curl --request GET \
  --url https://api.example.com/codes/{version_id}/tree \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "id": "<string>",
      "path": "<string>",
      "source_hash": "<string>",
      "is_imported": true,
      "is_known_target": true,
      "n_auditable_fct": 123,
      "contracts": [
        {
          "id": "<string>",
          "name": "<string>",
          "n_auditable_fct": 123,
          "src_start_pos": 123,
          "src_end_pos": 123,
          "source_id": "<string>",
          "functions": [
            {
              "id": "<string>",
              "generic_id": "<string>",
              "name": "<string>",
              "is_auditable": true,
              "is_entry_point": true,
              "is_override": true,
              "src_start_pos": 123,
              "src_end_pos": 123,
              "source_id": "<string>",
              "is_within_scope": false
            }
          ],
          "is_within_scope": false
        }
      ],
      "is_within_scope": false
    }
  ]
}

Authorizations

Authorization
string
header
required

API key in Bearer token format

Path Parameters

version_id
string
required

Response

Successful Response

results
TreeSource · object[]