Walk a record's relations
curl --request GET \ --url 'https://example.com/api/v1/relations/related?kind=task&id=example&page=1&perPage=20' \ --header 'Authorization: Bearer <token>'Walks the fixed relations out of a task, project, company, order or member: subtask, dependency, project, company, order, assignee and follower, up to three hops. Returns one page of the records reached, nearest first, each with the hops it took and the edge of the last hop. Only records the caller may open are returned or walked through. Members are team members only, never client contacts. A member is walked out of only as the origin. Team members only; a client account is refused.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Kind of the record to start from.
Kind of the record to start from.
Id of the record to start from.
Id of the record to start from.
Hops to walk, 1 to 3; 2 when omitted.
Hops to walk, 1 to 3; 2 when omitted.
Comma-separated edges to follow: subtask, dependency, project, company, order, assignee, follower. All when omitted.
Comma-separated edges to follow: subtask, dependency, project, company, order, assignee, follower. All when omitted.
Responses
Section titled “Responses”The records reached.
object
object
object
Location of the record, relative to the workspace’s /app/ base.
object
Hops from the origin, from 1.
The edge of the last hop.
Location of the record, relative to the workspace’s /app/ base.
The walk hit its cap; lower depth or narrow edges to see every record.
Example
{ "data": { "origin": { "kind": "task" }, "records": [ { "edge": "subtask", "kind": "task" } ] }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC