Skip to content
DocsInvitations

API reference

Invitations

Invitation links bring people into a project or an organization. Endpoints, parameters, examples and errors.

View as Markdown

On this page

Invitation links bring people into a project or an organization. The token and the link are returned once, when the invitation is made: keep them secret, and revoke links you no longer need. Accepting needs the invitations:accept scope, so an app cannot accept a pasted link unless the person allowed it.

List organization invitations

#

Lists the organization’s invitation links that can still be used, newest first.

HTTP
GET /api/v1/organizations/{organizationId}/invitations
  • Scopes: organizations:manage
  • Who: Organization admin or owner
  • Project-limited credentials: refused with credential_restricted; use a credential with access to all projects
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket
  • MCP tool: list_invitations

Returns the links to the organization itself that are unused, unrevoked and unexpired, newest first (organization owner and admins). Links to its projects are listed per project. Tokens are never listed: a link is shown once, when it is created.

Parameters

#
NameInTypeRequiredDescription
organizationIdpathid (org_…)YesOrganization id: org_ followed by 32 lowercase hex digits, for example org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
limitqueryinteger, 1–100NoHow many to return, 1–100, for example 50. Defaults to 50 (25 over MCP).
cursorquerystringNoThe nextCursor from the previous page, to read the next one. Leave it out for the first page; start again without it when you change filters. Up to 2,048 characters.

Response

#

200 with a list of Invitation objects; while hasMore is true, pass nextCursor back as cursor (with the same filters) for the next page.

FieldTypeDescription
object"list"
hasMorebooleanTrue when there is a next page.
nextCursorstring or nullPass it as cursor to read the next page; null on the last page.
dataarray of Invitation

Headers it sends: Link.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_cursorThe cursor is not valid
403insufficient_scopeThe credential lacks the required access
403credential_restrictedThe credential is limited to some projects
403forbidden_roleYour role does not allow this
404not_foundNot found

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl https://taskloader.com/api/v1/organizations/org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/invitations \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "list",
  "data": [
    {
      "object": "invitation",
      "id": "inv_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "target": "organization",
      "organizationId": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "projectId": null,
      "role": "member",
      "expiresAt": "2026-11-25T10:00:00.123Z",
      "createdAt": "2026-11-18T10:00:00.123Z",
      "createdBy": {
        "userId": "usr_kq3Xb1W9pZ0aLm7c",
        "name": "Ana Lima"
      }
    }
  ],
  "hasMore": false,
  "nextCursor": null
}

Create an organization invitation

#

Creates a single-use link that adds someone to the organization with a role.

HTTP
POST /api/v1/organizations/{organizationId}/invitations
  • Scopes: organizations:manage
  • Who: Organization admin or owner
  • Project-limited credentials: refused with credential_restricted; use a credential with access to all projects
  • Retries: send Idempotency-Key to make retries safe
  • Rate limit: the write bucket, and the invitation daily cap (at most 100 in any 24 hours, at most 50 at once, per person)
  • MCP tool: invite_people

Creates a link that adds whoever opens it to the organization, as a member (the default) or an admin. It works once and expires after seven days, and stops working if you stop being an owner or admin of the organization. token and url come only in this answer: a retry with the same Idempotency-Key answers without them (revoke that link and create another), and lists never show them. Share the link only with the person you mean to invite. At most 20 active links per organization (too_many_invitations) and 100 new invitations a day through the API and MCP (daily_limit_reached). Organization owner and admins.

Parameters

#
NameInTypeRequiredDescription
organizationIdpathid (org_…)YesOrganization id: org_ followed by 32 lowercase hex digits, for example org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
Idempotency-KeyheaderstringNoMakes a retry safe: the same key with the same request within 24 hours returns the first answer (with Idempotent-Replayed: true) instead of acting twice. 1 to 255 printable ASCII characters; a UUID works well. Keys belong to the credential that sent them.

Request body

#

A JSON object. Fields not listed are refused.

FieldTypeRequiredDescription
role"member" or "admin"Nomember or admin. Defaults to member.

Response

#

201 with the new Invitation object.

FieldTypeDescription
object"invitation"
idid (inv_…)Invitation id: inv_ followed by 32 lowercase hex digits, for example inv_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
target"project" or "organization"project: the person joins that project only; organization: the organization.
organizationIdid (org_…)Organization id: org_ followed by 32 lowercase hex digits, for example org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
projectIdid (prj_…) or null
role"viewer" or "editor" or "admin" or "member"The role the person gets: viewer, editor or admin in a project; member or admin in an organization.
expiresAtstring (date-time)Seven days after it was created.
createdAtstring (date-time)RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.
createdByobject
tokenstringThe secret part of the link. Returned once, by the call that creates the invitation (a retry with the same Idempotency-Key answers without it); Taskloader keeps only its hash. Share it only with the person you mean to invite.
urlstringThe link to send (…/join#<token>). Returned once, with token. Anyone with it can join with role until it is used, revoked or expires.

Headers it sends: Idempotent-Replayed.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_idempotency_keyThe Idempotency-Key header is not valid
403insufficient_scopeThe credential lacks the required access
403credential_restrictedThe credential is limited to some projects
403forbidden_roleYour role does not allow this
404not_foundNot found
409idempotency_key_in_progressThe original request is still running
413payload_too_largeThe request body is too large
415unsupported_media_typeUnsupported media type
422idempotency_key_reusedThe Idempotency-Key was used for another request
429too_many_invitationsToo many active invitations
429daily_limit_reachedDaily limit reached

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl https://taskloader.com/api/v1/organizations/org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/invitations \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"role":"member"}'
HTTP
HTTP/1.1 201 Created
Content-Type: application/json

{
  "object": "invitation",
  "id": "inv_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "target": "organization",
  "organizationId": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "projectId": null,
  "role": "member",
  "expiresAt": "2026-11-25T10:00:00.123Z",
  "createdAt": "2026-11-18T10:00:00.123Z",
  "createdBy": {
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Ana Lima"
  },
  "token": "3f9c2b7a1e4d8c6b5a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b",
  "url": "https://taskloader.com/join#3f9c2b7a1e4d8c6b5a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b"
}

Revoke an organization invitation

#

Stops an unused organization invitation link from working.

HTTP
DELETE /api/v1/organizations/{organizationId}/invitations/{invitationId}
  • Scopes: organizations:manage
  • Who: Organization admin or owner
  • Project-limited credentials: refused with credential_restricted; use a credential with access to all projects
  • Retries: naturally idempotent: repeating it changes nothing more
  • Rate limit: the write bucket
  • MCP tool: revoke_invitation

Revokes an unused link to the organization (owner and admins). Revoking one that is already revoked succeeds again. One that was already used is 409 invitation_used: the person it let in stays, so remove them instead (remove_organization_member).

Parameters

#
NameInTypeRequiredDescription
organizationIdpathid (org_…)YesOrganization id: org_ followed by 32 lowercase hex digits, for example org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
invitationIdpathid (inv_…)YesInvitation id: inv_ followed by 32 lowercase hex digits, for example inv_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.

Response

#

200 with an invitation object.

FieldTypeDescription
object"invitation"
idid (inv_…)Invitation id: inv_ followed by 32 lowercase hex digits, for example inv_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
revokedtrue

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_idempotency_keyThe Idempotency-Key header is not valid
403insufficient_scopeThe credential lacks the required access
403credential_restrictedThe credential is limited to some projects
403forbidden_roleYour role does not allow this
404not_foundNot found
409invitation_usedThe invitation was already used
413payload_too_largeThe request body is too large
415unsupported_media_typeUnsupported media type

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl -X DELETE https://taskloader.com/api/v1/organizations/org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/invitations/inv_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "invitation",
  "id": "inv_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "revoked": true
}

List project invitations

#

Lists the project’s invitation links that can still be used, newest first.

HTTP
GET /api/v1/projects/{projectId}/invitations
  • Scopes: people:manage
  • Who: Admin or owner in the project
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket
  • MCP tool: list_invitations

Returns the project’s links that are unused, unrevoked and unexpired, newest first (project owner and admins). Tokens are never listed: a link is shown once, when it is created.

Parameters

#
NameInTypeRequiredDescription
projectIdpathid (prj_…)YesProject id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
limitqueryinteger, 1–100NoHow many to return, 1–100, for example 50. Defaults to 50 (25 over MCP).
cursorquerystringNoThe nextCursor from the previous page, to read the next one. Leave it out for the first page; start again without it when you change filters. Up to 2,048 characters.

Response

#

200 with a list of Invitation objects; while hasMore is true, pass nextCursor back as cursor (with the same filters) for the next page.

FieldTypeDescription
object"list"
hasMorebooleanTrue when there is a next page.
nextCursorstring or nullPass it as cursor to read the next page; null on the last page.
dataarray of Invitation

Headers it sends: Link.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_cursorThe cursor is not valid
403insufficient_scopeThe credential lacks the required access
403forbidden_roleYour role does not allow this
404not_foundNot found

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/invitations \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "list",
  "data": [
    {
      "object": "invitation",
      "id": "inv_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "target": "project",
      "organizationId": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "role": "editor",
      "expiresAt": "2026-11-25T10:00:00.123Z",
      "createdAt": "2026-11-18T10:00:00.123Z",
      "createdBy": {
        "userId": "usr_kq3Xb1W9pZ0aLm7c",
        "name": "Ana Lima"
      }
    }
  ],
  "hasMore": false,
  "nextCursor": null
}

Create a project invitation

#

Creates a single-use link that adds someone to the project with a role.

HTTP
POST /api/v1/projects/{projectId}/invitations
  • Scopes: people:manage
  • Who: Admin or owner in the project
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: send Idempotency-Key to make retries safe
  • Rate limit: the write bucket, and the invitation daily cap (at most 100 in any 24 hours, at most 50 at once, per person)
  • MCP tool: invite_people

Creates a link that adds whoever opens it to the project with a role (editor unless you say otherwise). They join that project only, and are a guest of its organization unless already a member. It works once and expires after seven days, and stops working if you stop being an owner or admin of the project. token and url come only in this answer: a retry with the same Idempotency-Key answers without them (revoke that link and create another), and lists never show them. Share the link only with the person you mean to invite. At most 20 active links per project (too_many_invitations) and 100 new invitations a day through the API and MCP (daily_limit_reached). Project owner and admins.

Parameters

#
NameInTypeRequiredDescription
projectIdpathid (prj_…)YesProject id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
Idempotency-KeyheaderstringNoMakes a retry safe: the same key with the same request within 24 hours returns the first answer (with Idempotent-Replayed: true) instead of acting twice. 1 to 255 printable ASCII characters; a UUID works well. Keys belong to the credential that sent them.

Request body

#

A JSON object. Fields not listed are refused.

FieldTypeRequiredDescription
role"viewer" or "editor" or "admin"Noviewer, editor or admin. Defaults to editor.

Response

#

201 with the new Invitation object.

FieldTypeDescription
object"invitation"
idid (inv_…)Invitation id: inv_ followed by 32 lowercase hex digits, for example inv_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
target"project" or "organization"project: the person joins that project only; organization: the organization.
organizationIdid (org_…)Organization id: org_ followed by 32 lowercase hex digits, for example org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
projectIdid (prj_…) or null
role"viewer" or "editor" or "admin" or "member"The role the person gets: viewer, editor or admin in a project; member or admin in an organization.
expiresAtstring (date-time)Seven days after it was created.
createdAtstring (date-time)RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.
createdByobject
tokenstringThe secret part of the link. Returned once, by the call that creates the invitation (a retry with the same Idempotency-Key answers without it); Taskloader keeps only its hash. Share it only with the person you mean to invite.
urlstringThe link to send (…/join#<token>). Returned once, with token. Anyone with it can join with role until it is used, revoked or expires.

Headers it sends: Idempotent-Replayed.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_idempotency_keyThe Idempotency-Key header is not valid
403insufficient_scopeThe credential lacks the required access
403forbidden_roleYour role does not allow this
404not_foundNot found
409idempotency_key_in_progressThe original request is still running
413payload_too_largeThe request body is too large
415unsupported_media_typeUnsupported media type
422idempotency_key_reusedThe Idempotency-Key was used for another request
429too_many_invitationsToo many active invitations
429daily_limit_reachedDaily limit reached

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/invitations \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"role":"editor"}'
HTTP
HTTP/1.1 201 Created
Content-Type: application/json

{
  "object": "invitation",
  "id": "inv_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "target": "project",
  "organizationId": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "role": "editor",
  "expiresAt": "2026-11-25T10:00:00.123Z",
  "createdAt": "2026-11-18T10:00:00.123Z",
  "createdBy": {
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Ana Lima"
  },
  "token": "3f9c2b7a1e4d8c6b5a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b",
  "url": "https://taskloader.com/join#3f9c2b7a1e4d8c6b5a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b"
}

Revoke a project invitation

#

Stops an unused project invitation link from working.

HTTP
DELETE /api/v1/projects/{projectId}/invitations/{invitationId}
  • Scopes: people:manage
  • Who: Admin or owner in the project
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: naturally idempotent: repeating it changes nothing more
  • Rate limit: the write bucket
  • MCP tool: revoke_invitation

Revokes an unused link to the project (project owner and admins). Revoking one that is already revoked succeeds again. One that was already used is 409 invitation_used: the person it let in stays, so remove them instead (remove_project_member). The invitation is looked for in the project from the path only.

Parameters

#
NameInTypeRequiredDescription
projectIdpathid (prj_…)YesProject id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
invitationIdpathid (inv_…)YesInvitation id: inv_ followed by 32 lowercase hex digits, for example inv_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.

Response

#

200 with an invitation object.

FieldTypeDescription
object"invitation"
idid (inv_…)Invitation id: inv_ followed by 32 lowercase hex digits, for example inv_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
revokedtrue

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_idempotency_keyThe Idempotency-Key header is not valid
403insufficient_scopeThe credential lacks the required access
403forbidden_roleYour role does not allow this
404not_foundNot found
409invitation_usedThe invitation was already used
413payload_too_largeThe request body is too large
415unsupported_media_typeUnsupported media type

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl -X DELETE https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/invitations/inv_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "invitation",
  "id": "inv_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "revoked": true
}

Preview an invitation

#

Says what an invitation link offers, without accepting it.

HTTP
POST /api/v1/invitations/preview
  • Scopes: invitations:accept
  • Who: Any signed-in person
  • Project-limited credentials: refused with credential_restricted; use a credential with access to all projects
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket
  • MCP tool: accept_invitation

Returns the organization and project an invitation is for, the role it grants and who sent it, so the person can decide before accepting. Send the token or the whole link in the body, never in the URL. An expired, used or revoked link is 404 invitation_unavailable, and so is one whose creator is no longer an owner or admin where it leads. Needs invitations:accept; a credential limited to some projects cannot use it.

Request body

#

A JSON object. Fields not listed are refused.

FieldTypeRequiredDescription
tokenstringNoThe invitation token: the 64 hex characters after /join# in the link. Send token or url, not both.
urlstringNoThe whole invitation link, for example https://taskloader.com/join#3f9c…. Send token or url, not both. Up to 2,048 characters.

Response

#

200 with an InvitationPreview object.

FieldTypeDescription
object"invitation_preview"
organizationobject
projectobject or nullThe project it invites to; null for an invitation to the organization.
role"viewer" or "editor" or "admin" or "member"The role the person gets: viewer, editor or admin in a project; member or admin in an organization.
invitedByobject

Errors

#
StatusCodeMeaning
400invalid_idempotency_keyThe Idempotency-Key header is not valid
403insufficient_scopeThe credential lacks the required access
403credential_restrictedThe credential is limited to some projects
404invitation_unavailableThe invitation is no longer available
413payload_too_largeThe request body is too large
415unsupported_media_typeUnsupported media type

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl https://taskloader.com/api/v1/invitations/preview \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://taskloader.com/join#3f9c2b7a1e4d8c6b5a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b"
}'
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "invitation_preview",
  "organization": {
    "name": "Northwind"
  },
  "project": {
    "name": "Website launch"
  },
  "role": "editor",
  "invitedBy": {
    "name": "Ana Lima"
  }
}

Accept an invitation

#

Joins the project or organization an invitation link is for.

HTTP
POST /api/v1/invitations/accept
  • Scopes: invitations:accept
  • Who: Any signed-in person
  • Project-limited credentials: refused with credential_restricted; use a credential with access to all projects
  • Retries: send Idempotency-Key to make retries safe
  • Rate limit: the write bucket
  • MCP tool: accept_invitation

Joins the project (with the link’s role; you become a guest of its organization unless already a member) or the organization the invitation is for. Send the token or the whole link in the body, never in the URL. If you are already there, nothing changes: alreadyMember: true, your role stays, and an unused link stays usable for whoever it was meant for. A link someone else used, revoked or expired is 404 invitation_unavailable, and so is an unused link whose creator is no longer an owner or admin where it leads. Accept only links the person gave you. Needs invitations:accept; a credential limited to some projects cannot use it.

Parameters

#
NameInTypeRequiredDescription
Idempotency-KeyheaderstringNoMakes a retry safe: the same key with the same request within 24 hours returns the first answer (with Idempotent-Replayed: true) instead of acting twice. 1 to 255 printable ASCII characters; a UUID works well. Keys belong to the credential that sent them.

Request body

#

A JSON object. Fields not listed are refused.

FieldTypeRequiredDescription
tokenstringNoThe invitation token: the 64 hex characters after /join# in the link. Send token or url, not both.
urlstringNoThe whole invitation link, for example https://taskloader.com/join#3f9c…. Send token or url, not both. Up to 2,048 characters.

Response

#

200 with an invitation_acceptance object.

FieldTypeDescription
object"invitation_acceptance"
organizationIdid (org_…)Organization id: org_ followed by 32 lowercase hex digits, for example org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
projectIdid (prj_…) or null
memberIdid (mem_…) or nullYour membership in the project; null for an invitation to the organization.
alreadyMemberbooleanTrue when you were already there: nothing changed, your role stayed, and an unused link stays usable for whoever it was meant for.

Headers it sends: Idempotent-Replayed.

Errors

#
StatusCodeMeaning
400invalid_idempotency_keyThe Idempotency-Key header is not valid
403insufficient_scopeThe credential lacks the required access
403credential_restrictedThe credential is limited to some projects
404invitation_unavailableThe invitation is no longer available
409idempotency_key_in_progressThe original request is still running
413payload_too_largeThe request body is too large
415unsupported_media_typeUnsupported media type
422idempotency_key_reusedThe Idempotency-Key was used for another request
429too_many_projectsToo many projects

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl https://taskloader.com/api/v1/invitations/accept \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "token": "3f9c2b7a1e4d8c6b5a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b"
}'
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "invitation_acceptance",
  "organizationId": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "alreadyMember": false
}