Resolve Asana task context
curl --request GET \ --url https://example.com/api/v1/asana/task-context \ --header 'Authorization: Bearer <token>'Resolves the Chelsea context for an Asana task or story GID: matched client project, canonical URL, and trackable orders (best suggestion first). Walks the parent chain for subtasks. Results are cached briefly.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”The resolved Asana task context.
object
Context resolved for an Asana task, matched to a Chelsea client and its orders.
object
Canonical Asana task URL; empty string when it cannot be built.
Trackable orders for the matched client, best suggestion first.
object
Order activity types, the caller’s default first: linked to one of the caller’s roles, fewest linked roles first. Types restricted to other roles are left out unless the caller holds time.edit_team.
object
Example generated
{ "data": { "canonicalUrl": "example", "orders": [ { "activityTypes": [ { "id": "example", "name": "example" } ], "clientName": "example", "id": "example", "name": "example" } ], "projectName": "example", "suggestedOrderId": "example", "taskGid": "example", "taskTitle": "example" }}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" }}Asana task context could not be resolved (no PAT, unknown task, or no matching client).
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