Skip to main content
POST
/
api
/
v1
/
search
Search Codebase
curl --request POST \
  --url https://api.example.com/api/v1/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "<string>",
  "query": "<string>"
}
'
{
  "results": [
    {
      "node_id": "<string>",
      "name": "<string>",
      "file_path": "<string>",
      "content": "<string>",
      "match_type": "<string>",
      "relevance": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
project_id
string
required
query
string
required
Minimum string length: 1

Response

Successful Response

results
SearchResult · object[]
required