Skip to main content
Connections

Explain a connection path

Use Test Request to send this request with your API key.

GET /api/v2/connections/explanation

Returns the per-hop relationship narrative for one path, addressed by the connectionId returned in a search result. found is false when the id is not one of this tenant's paths.

Required scope: connection:read

Query parameters​

NameTypeRequiredDescription
connectionIdstringYesThe path id from a GET /connections/search result.

Responses​

200​

The per-hop explanation (or found:false).


{
"type": "object",
"properties": {
"connectionId": {
"type": "string"
},
"found": {
"type": "boolean"
},
"pathDescription": {
"type": "string"
},
"hops": {
"type": "array",
"items": {
"type": "object",
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"explanation": {
"type": "string"
},
"connectionType": {
"type": "string",
"enum": [
"colleagues",
"education",
"social",
"employment",
"professional",
"unknown"
]
}
}
}
},
"target": {
"type": [
"string",
"null"
],
"description": "Display name of the target at the end of the path.",
"example": "Jane Doe"
},
"targetId": {
"type": [
"string",
"null"
],
"description": "Vieu person id of the target.",
"example": "PERS-082e0318-8f24-4e21-a2ad-9259dfeef211"
},
"targetLinkedInUrl": {
"type": [
"string",
"null"
],
"description": "LinkedIn profile of the target; `null` when none is on file.",
"example": "https://www.linkedin.com/in/janedoe"
}
},
"example": {
"connectionId": "4b9a8c2d-7e1f-4a3b-9c5d-2f6a8b0e4c1d",
"found": true,
"pathDescription": "Vieu → Jane Smith → John Park → Jane Doe",
"hops": [
{
"from": "Vieu",
"to": "Jane Smith",
"explanation": "Jane Smith is on your team.",
"connectionType": "employment"
},
{
"from": "Jane Smith",
"to": "John Park",
"explanation": "Worked together at Globex (2019–2022).",
"connectionType": "colleagues"
},
{
"from": "John Park",
"to": "Jane Doe",
"explanation": "Both on the Data Platform team at Acme.",
"connectionType": "colleagues"
}
],
"target": "Jane Doe",
"targetId": "PERS-082e0318-8f24-4e21-a2ad-9259dfeef211",
"targetLinkedInUrl": "https://www.linkedin.com/in/janedoe"
}
}

400​

The request is malformed or failed validation.


{
"type": "object",
"description": "Standard error response.",
"required": [
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Machine-readable error code.",
"enum": [
"ERR_INVALID_REQUEST",
"ERR_NOT_FOUND",
"ERR_RATE_LIMIT",
"ERR_INTERNAL_SERVER"
]
},
"message": {
"type": "string",
"description": "Human-readable error message."
}
}
}

401​

Missing or invalid API key.


{
"type": "object",
"description": "Returned on 401 responses. `reason` is a stable machine-readable code\nthat clients can branch on without parsing `message`.\n",
"required": [
"message",
"reason"
],
"properties": {
"message": {
"type": "string",
"example": "Invalid Auth Token Provided"
},
"reason": {
"type": "string",
"description": "- `TOKEN_MISSING`: no `x-api-key` header on the request.\n- `TOKEN_EXPIRED`: the key was found but has expired or been revoked (also used when the key is unknown).\n- `ACCESS_DENIED`: the token is present but not accepted for the resource.\n- `AUTH_INVALID`: generic auth failure, usually an internal error resolving the key.\n",
"enum": [
"TOKEN_MISSING",
"TOKEN_EXPIRED",
"ACCESS_DENIED",
"AUTH_INVALID"
],
"example": "TOKEN_EXPIRED"
}
}
}

403​

API key lacks the scope required to call this endpoint.


{
"type": "object",
"description": "Returned on 403 responses. The key was valid but does not have the\nscope required by the endpoint.\n",
"required": [
"code",
"message",
"reason"
],
"properties": {
"code": {
"type": "string",
"enum": [
"ERR_FORBIDDEN"
]
},
"message": {
"type": "string",
"example": "Insufficient permissions for this operation"
},
"reason": {
"type": "string",
"description": "- `SCOPE_INSUFFICIENT`: the authenticated key's scopes do not include the one required by this endpoint.\n- `FORBIDDEN`: generic 403 (rarely used on v2 routes; reserved for non-scope access checks).\n",
"enum": [
"SCOPE_INSUFFICIENT",
"FORBIDDEN"
],
"example": "SCOPE_INSUFFICIENT"
}
}
}

429​

API key rate limit exceeded.


{
"type": "object",
"description": "Standard error response.",
"required": [
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Machine-readable error code.",
"enum": [
"ERR_INVALID_REQUEST",
"ERR_NOT_FOUND",
"ERR_RATE_LIMIT",
"ERR_INTERNAL_SERVER"
]
},
"message": {
"type": "string",
"description": "Human-readable error message."
}
}
}

500​

Unexpected server error.


{
"type": "object",
"description": "Standard error response.",
"required": [
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Machine-readable error code.",
"enum": [
"ERR_INVALID_REQUEST",
"ERR_NOT_FOUND",
"ERR_RATE_LIMIT",
"ERR_INTERNAL_SERVER"
]
},
"message": {
"type": "string",
"description": "Human-readable error message."
}
}
}