Skip to main content
POST
Find all references to a symbol

Authorizations

Authorization
string
header
required

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

Body

application/json
identifier_position
object
required

A position within a specific file in the workspace

include_code_context_lines
integer<int32> | null

Whether to include the source code of the symbol in the response. Defaults to none.

Required range: x >= 0
Example:

5

include_raw_response
boolean

Whether to include the raw response from the langserver in the response. Defaults to false.

Example:

false

Response

References retrieved successfully

Response to a references request.

Points to the start position of the symbol's identifier.

e.g. for the references of User on line 0 character 6 of src/main.py with the code:

The references will be [{"path": "src/main.py", "line": 5, "character": 7}].

references
object[]
required
selected_identifier
object
required

The identifier that was "clicked-on" to get the references.

context
object[] | null

The source code around the references.