Get a company's context
curl --request GET \ --url https://example.com/api/v1/relations/companies/example/context \ --header 'Authorization: Bearer <token>'One read of where a company stands: active projects, current orders, the team assigned to it, open tickets and the latest task activity. A section the caller may not see is null. Team members only; a client account is refused.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Responses
Section titled “Responses”The company’s context.
object
object
object
Location of the record, relative to the workspace’s /app/ base.
Null when the caller may not see this section.
object
Null when the caller may not see this section.
object
object
Location of the record, relative to the workspace’s /app/ base.
object
object
Location of the record, relative to the workspace’s /app/ base.
object
How the member reaches the company: manager, direct, or team
Example generated
{ "data": { "activeProjects": { "items": [ { "id": "example", "name": "example", "openTasks": 1, "path": "example" } ], "total": 1 }, "company": { "id": "example", "isActive": true, "name": "example", "path": "example", "status": "example" }, "currentOrders": { "items": [ { "code": "example", "endsAt": "2026-04-15T12:00:00Z", "id": "example", "name": "example", "path": "example", "startsAt": "2026-04-15T12:00:00Z", "status": "example" } ], "total": 1 }, "openTickets": { "items": [ { "id": "example", "path": "example", "reference": "example", "status": "example", "subject": "example", "updatedAt": "2026-04-15T12:00:00Z" } ], "total": 1 }, "recentActivity": [ { "action": "example", "actor": "example", "at": "2026-04-15T12:00:00Z", "field": "example", "task": { "id": "example", "label": "example", "path": "example" } } ], "team": [ { "access": "example", "memberId": "example", "name": "example" } ] }}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