POST
/
symbol
/
find-identifier
curl --request POST \
  --url http://localhost:4444/v1/symbol/find-identifier \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "User",
  "path": "src/main.py",
  "position": null
}'
{
  "identifiers": [
    {
      "file_range": {
        "path": "src/main.py",
        "range": {
          "end": {
            "character": 5,
            "line": 10
          },
          "start": {
            "character": 5,
            "line": 10
          }
        }
      },
      "kind": "<string>",
      "name": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

The name of the identifier to search for.

Example:

"User"

path
string
required

The path to the file to search for identifiers.

Example:

"src/main.py"

position
object | null

The position hint to search for identifiers. If not provided.

Response

200
application/json
Identifier retrieved successfully
identifiers
object[]
required