For AI agents: markdown of this page — /docs-content-en/entities/crm-traces/v3-get.md documentation index — /llms.txt
The method is rolling out in update
crm 26.2000.0. It is not available on every Bitrix24 account. If the method is not yet available on your account, the API returns422 METHOD_NOT_YET_AVAILABLE— this indicates that the update has not reached the account yet, rather than an integration error.
Get an analytics trace
GET /v1/crm-traces/:id
Reads a visit, its source, channels and viewed pages by the trace identifier.
This operation requires the
crm-tracking-v3flag and the REST v3 analytics capability enabled in the Bitrix24 account. The key needs thecrmscope.
A READONLY key can read this resource.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Parameterid (path) |
Typenumber | Requiredyes | Default— | DescriptionPositive trace ID from the list or create response. |
Examples
curl — personal key
curl -X GET "https://vibecode.bitrix24.com/v1/crm-traces/1" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl -X GET "https://vibecode.bitrix24.com/v1/crm-traces/1" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN"
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/crm-traces/1', {
"method": "GET",
"headers": {
"X-Api-Key": "YOUR_API_KEY"
}
})
const result = await res.json()
console.log(result)
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/crm-traces/1', {
"method": "GET",
"headers": {
"X-Api-Key": "YOUR_APP_KEY",
"Authorization": "Bearer USER_SESSION_TOKEN"
}
})
const result = await res.json()
console.log(result)
Response fields
| Field | Type | Description |
|---|---|---|
Fieldsuccess |
Typeboolean | Descriptiontrue |
Fielddata |
Typeobject | DescriptionOne visit trace. |
Fielddata.id |
Typenumber | DescriptionTrace ID. |
Fielddata.sourceId |
Typenumber or null | DescriptionAnalytics source ID. |
Fielddata.createdTime |
Typestring | DescriptionCreation time, ISO 8601. |
Fielddata.isMobile |
Typeboolean | DescriptionWhether the visit used a mobile device. |
Fielddata.channels |
Typearray | DescriptionChannels with code, value fields. Text can be null. |
Fielddata.pages |
Typearray | DescriptionPages with url, title, time fields. Time is ISO 8601. Text can be null. |
Fielddata.utm |
Typeobject or null | DescriptionTags source, medium, campaign, content, term, each a string or null. |
Response example
{
"success": true,
"data": {
"id": 1,
"sourceId": 2,
"createdTime": "2026-10-28T11:59:18+00:00",
"isMobile": false,
"channels": [
{
"code": "form",
"value": "5"
}
],
"pages": [
{
"url": "https://example.com/p",
"title": "VIBE-PROBE page",
"time": "2026-10-28T10:00:00+00:00"
}
],
"utm": {
"source": "vibeprobe",
"medium": null,
"campaign": "x",
"content": null,
"term": null
}
}
}
Error response example
404: trace not found. Error messages follow the Bitrix24 account language.
{
"success": false,
"error": {
"code": "ENTITY_NOT_FOUND",
"message": "Entity with ID 1 was not found."
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP400 | CodeINVALID_PARAMS |
DescriptionInvalid request type or shape, or an invalid ID. |
| HTTP403 | CodeSCOPE_DENIED |
DescriptionMissing crm scope. |
| HTTP401 | CodeTOKEN_MISSING |
DescriptionThe key has no configured tokens. |
| HTTP422 | CodeMETHOD_NOT_YET_AVAILABLE |
DescriptionThe platform flag is off or RestV3Tracking is not enabled on the Bitrix24 portal. error.release is crm 26.2000.0. |
| HTTP502 | CodeBITRIX_UNAVAILABLE |
DescriptionInvalid Bitrix24 response. |
| HTTP400 | CodeUNKNOWN_FILTER_FIELD |
DescriptionAn unsupported query parameter was supplied. |
| HTTP404 | CodeENTITY_NOT_FOUND |
DescriptionThe trace is absent or not readable. |
| HTTP403 | CodeBITRIX_REST_V3_EXCEPTION_ACCESSDENIEDEXCEPTION |
DescriptionInsufficient permissions for linked CRM records. |
Other Bitrix24 refusal codes, statuses and messages are preserved. See Errors for common failures.
Known specifics
Credential fragments in text fields are redacted. Page addresses without sensitive data are preserved unchanged.