For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Keyword Search

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

querystringRequired

The keyword search term.

limitinteger · min: 1Optional

The maximum number of search results to return.

regexbooleanOptional

Whether the search term should be interpreted as a regular expression.

Default: false
repo_pathstring[]Optional

The paths of the repositories in the space to search. Can be repeated. Can't be combined with recursive search.

recursivebooleanOptional

The result should include entities from child spaces.

Default: false
Responses
200

OK

application/json
get/code-search
GET /code/api/v1/code-search?accountIdentifier=text&query=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
  "file_matches": [
    {
      "file_name": "text",
      "language": "text",
      "matches": [
        {
          "after": "text",
          "before": "text",
          "fragments": [
            {
              "match": "text",
              "post": "text",
              "pre": "text"
            }
          ],
          "line_num": 1
        }
      ],
      "repo_branch": "text",
      "repo_path": "text"
    }
  ],
  "stats": {
    "per_repo_matches": [
      {
        "file_matches": 1,
        "repo_path": "text",
        "total_matches": 1
      }
    ],
    "total_files": 1,
    "total_matches": 1
  }
}
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
repo_identifierstringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

querystringRequired

The keyword search term.

limitinteger · min: 1Optional

The maximum number of search results to return.

regexbooleanOptional

Whether the search term should be interpreted as a regular expression.

Default: false
Responses
200

OK

application/json
get/repos/{repo_identifier}/code-search
GET /code/api/v1/repos/{repo_identifier}/code-search?accountIdentifier=text&query=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
  "file_matches": [
    {
      "file_name": "text",
      "language": "text",
      "matches": [
        {
          "after": "text",
          "before": "text",
          "fragments": [
            {
              "match": "text",
              "post": "text",
              "pre": "text"
            }
          ],
          "line_num": 1
        }
      ],
      "repo_branch": "text",
      "repo_path": "text"
    }
  ],
  "stats": {
    "per_repo_matches": [
      {
        "file_matches": 1,
        "repo_path": "text",
        "total_matches": 1
      }
    ],
    "total_files": 1,
    "total_matches": 1
  }
}

Last updated

Was this helpful?