Skip to content
DocsOrganizations

API reference

Organizations

An organization holds projects and the people in them. Endpoints, parameters, examples and errors.

View as Markdown

On this page

An organization holds projects and the people in them. Its members see its projects and can create new ones; its admins manage its people, invitations, name and link (slug). People who are only in some of its projects are its guests.

List your organizations

#

Lists the organizations you belong to or are a guest of, oldest first.

HTTP
GET /api/v1/organizations
  • Scopes: projects:read
  • Who: Any signed-in person
  • Project-limited credentials: allowed; results include only the credential’s projects
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket
  • MCP tool: list_projects

Returns the organizations you are a member of, and those you are a guest of (you are in some of their projects only, yourRole: null), oldest first. A credential limited to some projects lists only the organizations holding them. Organizations you are a guest of cannot be read with get_organization or their member and project lists (404); list your projects in them with list_projects?organizationId=.

Parameters

#
NameInTypeRequiredDescription
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 Organization 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 Organization

Headers it sends: Link.

Errors

#
StatusCodeMeaning
400invalid_cursorThe cursor is not valid
403insufficient_scopeThe credential lacks the required access

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 \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "list",
  "data": [
    {
      "object": "organization",
      "id": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "name": "Northwind",
      "slug": "northwind",
      "yourRole": "admin",
      "version": 2,
      "archived": false,
      "createdAt": "2026-09-14T08:30:00.000Z"
    }
  ],
  "hasMore": false,
  "nextCursor": null
}

Create an organization

#

Creates an organization with its first project; you own both.

HTTP
POST /api/v1/organizations
  • Scopes: projects:write
  • 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, and the create_organization daily cap (at most 10 in any 24 hours, at most 5 at once, per person)
  • MCP tool: create_organization

Creates an organization and its first project, so it never opens empty. You own both. Its slug comes from its name (northwind, or northwind-2 when taken); its admins can change it later. At most 10 new organizations a day through the API and MCP (daily_limit_reached). Send an Idempotency-Key so a retry cannot create it twice.

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
namestringYesThe organization’s name: one line, up to 100 characters, for example "Northwind".
firstProjectobjectYesThe organization’s first project, which you own.

Response

#

201 with an organization_created object. Location is the new organization’s address.

FieldTypeDescription
object"organization_created"
organizationOrganization
projectProjectIts first project, which you own.

Headers it sends: Location, 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
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
429daily_limit_reachedDaily limit reached
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/organizations \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"name":"Northwind","firstProject":{"name":"Website launch"}}'
HTTP
HTTP/1.1 201 Created
Content-Type: application/json
Location: /api/v1/organizations/org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718

{
  "object": "organization_created",
  "organization": {
    "object": "organization",
    "id": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "name": "Northwind",
    "slug": "northwind",
    "yourRole": "owner",
    "version": 1,
    "archived": false,
    "createdAt": "2026-11-18T10:00:00.123Z"
  },
  "project": {
    "object": "project",
    "id": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "organization": {
      "id": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "name": "Northwind",
      "slug": "northwind"
    },
    "name": "Website launch",
    "slug": "website-launch",
    "ref": "northwind/website-launch",
    "url": "https://taskloader.com/northwind/website-launch",
    "description": "",
    "version": 1,
    "archived": false,
    "currentMember": {
      "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "role": "owner"
    },
    "createdAt": "2026-11-18T10:00:00.123Z"
  }
}

Get an organization

#

Returns one organization you are a member of, with your role and its version.

HTTP
GET /api/v1/organizations/{organizationId}
  • Scopes: projects:read
  • Who: Any member in the organization
  • Project-limited credentials: allowed for organizations that hold one of the credential’s projects
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket
  • MCP tool: get_organization

Returns the organization with your role in it and its version. Its ETag (W/"<version>-<digest>") changes with anything the answer shows: send it back as If-None-Match to get 304 while nothing changed. Only its members can read it: its guests, strangers and a missing organization all get 404 not_found. A credential limited to some projects reads it only while it holds one of them.

Parameters

#
NameInTypeRequiredDescription
organizationIdpathid (org_…)YesOrganization id: org_ followed by 32 lowercase hex digits, for example org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
If-None-MatchheaderstringNoThe ETag of your last read of this resource. The answer is 304 with no body while everything that read showed is unchanged, including what changes without a new version (a renamed project’s ref, your role).

Response

#

200 with an Organization object.

FieldTypeDescription
object"organization"
idid (org_…)Organization id: org_ followed by 32 lowercase hex digits, for example org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
namestringThe organization’s name, on one line.
slugstringThe first part of its projects’ links and refs, for example northwind. Its admins can change it; old links keep working.
yourRole"member" or "admin" or "owner" or nullYour role in the organization; null when you are its guest (in some of its projects only).
versionintegerRaised by every change to its name or slug, and by archiving or restoring it. Send it back (If-Match or version) to change the organization.
archivedbooleanWhether its owner or an admin archived it (update_organization with archived). An archived organization leaves the app’s sidebar with all its projects, which keep working as before.
createdAtstring (date-time)RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.

Headers it sends: ETag.

304: Not modified: the ETag you sent in If-None-Match is still current. No body.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
403insufficient_scopeThe credential lacks the required access
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 \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json
ETag: W/"2-fc1f4232a646"

{
  "object": "organization",
  "id": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "name": "Northwind",
  "slug": "northwind",
  "yourRole": "admin",
  "version": 2,
  "archived": false,
  "createdAt": "2026-09-14T08:30:00.000Z"
}

Update an organization

#

Renames an organization, changes its slug, or archives or restores it, if it is still at the version you read.

HTTP
PATCH /api/v1/organizations/{organizationId}
  • Scopes: organizations:manage
  • Who: Organization admin or owner
  • Project-limited credentials: refused with credential_restricted; use a credential with access to all projects
  • Retries: versioned: a retry with the same version gets version_conflict, never a second change
  • Version: required: send If-Match: "<version>" or version in the body
  • Rate limit: the write bucket
  • MCP tool: update_organization

Changes the name, the slug, or whether it is archived (organization owner and admins). Send the version you read as If-Match: "<version>" (or version); a stale one gets 412 version_conflict with the current organization. A new slug changes every project link and ref in it; old links keep working. A slug another organization has is 409 slug_taken; one kept for Taskloader’s own pages is 422 slug_reserved. archived: true archives the organization: it leaves the app’s sidebar with all its projects, for everyone, and everything in it keeps working; false restores it. Organizations cannot be deleted through the API; their owner deletes them in the app. Saving the same details again changes nothing.

Parameters

#
NameInTypeRequiredDescription
organizationIdpathid (org_…)YesOrganization id: org_ followed by 32 lowercase hex digits, for example org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
If-MatchheaderstringNoThe version you last read: the ETag you got with it, as it came (W/"8-3f2a9c1d0b7e" from a read, "8" from a change), or "<version>". Only the version is compared: the change is refused with 412 version_conflict if the resource changed since. Instead of this header you can send version in the body; when both are sent they must agree. * is not accepted.

Request body

#

A JSON object. Fields not listed are refused.

FieldTypeRequiredDescription
versionintegerNoThe version you read, for example 2: get_organization and every organization result have it, as do list_organizations over HTTP and list_projects over MCP. Required: if the organization changed since, nothing is saved and the error carries the current organization. Over HTTP you may send If-Match: "2" instead.
namestringNoThe organization’s name: one line, up to 100 characters, for example "Northwind".
slugstringNoThe first part of its projects’ links, for example northwind: up to 64 lowercase letters and numbers, with single hyphens between words. Old links keep working.
archivedbooleanNotrue archives the organization (it leaves the app’s sidebar with its projects, which keep working); false restores it.

Response

#

200 with an Organization object.

FieldTypeDescription
object"organization"
idid (org_…)Organization id: org_ followed by 32 lowercase hex digits, for example org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
namestringThe organization’s name, on one line.
slugstringThe first part of its projects’ links and refs, for example northwind. Its admins can change it; old links keep working.
yourRole"member" or "admin" or "owner" or nullYour role in the organization; null when you are its guest (in some of its projects only).
versionintegerRaised by every change to its name or slug, and by archiving or restoring it. Send it back (If-Match or version) to change the organization.
archivedbooleanWhether its owner or an admin archived it (update_organization with archived). An archived organization leaves the app’s sidebar with all its projects, which keep working as before.
createdAtstring (date-time)RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.

Headers it sends: ETag.

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
409slug_takenThat link is taken
412version_conflictThe resource changed since you read it
413payload_too_largeThe request body is too large
415unsupported_media_typeUnsupported media type
422slug_reservedThat link is reserved
428precondition_requiredA version is required

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 PATCH https://taskloader.com/api/v1/organizations/org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/json" \
  -H 'If-Match: "2"' \
  -d '{"slug":"northwind-co"}'
HTTP
HTTP/1.1 200 OK
Content-Type: application/json
ETag: "3"

{
  "object": "organization",
  "id": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "name": "Northwind",
  "slug": "northwind-co",
  "yourRole": "admin",
  "version": 3,
  "archived": false,
  "createdAt": "2026-09-14T08:30:00.000Z"
}

When the version is stale:

HTTP
HTTP/1.1 412 Precondition Failed
Content-Type: application/problem+json
ETag: "4"

{
  "type": "https://taskloader.com/docs/api/errors#version_conflict",
  "title": "The resource changed since you read it",
  "status": 412,
  "code": "version_conflict",
  "detail": "It changed since you read it, so nothing was changed. Read it again, check the change still makes sense, and retry with the current version.",
  "instance": "/api/v1/organizations/org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "requestId": "req_0K7ZQ4M9TN2V6B8C1D3E5F7G9H",
  "currentVersion": 4,
  "current": {
    "object": "organization",
    "id": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "name": "Northwind",
    "slug": "northwind-co",
    "yourRole": "admin",
    "version": 4,
    "archived": false,
    "createdAt": "2026-09-14T08:30:00.000Z"
  }
}

List organization members

#

Lists an organization’s members, owner first, then in the order they joined.

HTTP
GET /api/v1/organizations/{organizationId}/members
  • Scopes: projects:read
  • Who: Any member in the organization
  • Project-limited credentials: allowed for organizations that hold one of the credential’s projects
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket
  • MCP tool: get_organization

Returns the organization’s members with their roles, owner first. Every member can list them. Its owner and admins also see which of its projects each person is in (projectIds); for everyone else projectIds is null. People who are only in some of its projects are its guests (list_organization_guests).

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 OrganizationMember 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 OrganizationMember

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
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/members \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "list",
  "data": [
    {
      "object": "organization_member",
      "userId": "usr_kq3Xb1W9pZ0aLm7c",
      "name": "Maya Patel",
      "email": "[email protected]",
      "role": "member",
      "projectIds": [
        "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718"
      ],
      "joinedAt": "2026-09-15T09:12:00.000Z"
    }
  ],
  "hasMore": false,
  "nextCursor": null
}

List organization guests

#

Lists people in some of an organization’s projects who are not its members.

HTTP
GET /api/v1/organizations/{organizationId}/guests
  • Scopes: projects:read
  • Who: Organization admin or owner
  • Project-limited credentials: allowed for organizations that hold one of the credential’s projects
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket
  • MCP tool: get_organization

Returns the organization’s guests: people in some of its projects without being members of it, in the order they first joined one, with the projects they are in. Its owner and admins only. A credential limited to some projects sees only the guests in those projects.

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 Guest 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 Guest

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/organizations/org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/guests \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "list",
  "data": [
    {
      "object": "guest",
      "userId": "usr_kq3Xb1W9pZ0aLm7c",
      "name": "Sam Rivera",
      "email": "[email protected]",
      "projectIds": [
        "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718"
      ]
    }
  ],
  "hasMore": false,
  "nextCursor": null
}

List organization projects

#

Lists an organization’s projects; admins see every one, members those they are in.

HTTP
GET /api/v1/organizations/{organizationId}/projects
  • Scopes: projects:read
  • Who: Any member in the organization
  • Project-limited credentials: allowed for organizations that hold one of the credential’s projects
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket
  • MCP tool: get_organization

Returns the organization’s projects, oldest first, each with how many people are in it. Its owner and admins see every project, with joined saying whether they are in it (they can join any with join_project); members see the projects they are in. A credential limited to some projects sees only those.

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 OrganizationProject 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 OrganizationProject

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
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/projects \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "list",
  "data": [
    {
      "object": "organization_project",
      "project": {
        "object": "project",
        "id": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
        "organization": {
          "id": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
          "name": "Northwind",
          "slug": "northwind"
        },
        "name": "Website launch",
        "slug": "website-launch",
        "ref": "northwind/website-launch",
        "url": "https://taskloader.com/northwind/website-launch",
        "description": "Everything for the new website, from copy to launch day.",
        "version": 3,
        "archived": false,
        "currentMember": {
          "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
          "role": "admin"
        },
        "createdAt": "2026-09-14T08:30:00.000Z"
      },
      "joined": true,
      "memberCount": 6
    }
  ],
  "hasMore": false,
  "nextCursor": null
}

Change an organization role

#

Makes a member an admin of the organization, or an admin a member.

HTTP
PATCH /api/v1/organizations/{organizationId}/members/{userId}
  • 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: change_organization_role

Sets a member’s role in the organization (owner and admins only). Admins manage its people, settings and invitations and can join any of its projects. Setting the role someone already has changes nothing. The owner’s role never changes (owner_immutable). Project roles are separate: see change_project_member_role.

Parameters

#
NameInTypeRequiredDescription
organizationIdpathid (org_…)YesOrganization id: org_ followed by 32 lowercase hex digits, for example org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
userIdpathid (usr_…)YesUser id: usr_ followed by the account id, for example usr_kq3Xb1W9pZ0aLm7c.

Request body

#

A JSON object. Fields not listed are refused.

FieldTypeRequiredDescription
role"member" or "admin"Yesmember (creates projects, can be added to any) or admin (also manages people, settings and every project).

Response

#

200 with an OrganizationMember object.

FieldTypeDescription
object"organization_member"
userIdid (usr_…)User id: usr_ followed by the account id, for example usr_kq3Xb1W9pZ0aLm7c.
namestring
emailstring
role"member" or "admin" or "owner"An organization role: member < admin < owner.
projectIdsarray of id (prj_…) or nullThe organization’s projects they are in. Only its owner and admins see this; null for everyone else.
joinedAtstring (date-time)RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.

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
413payload_too_largeThe request body is too large
415unsupported_media_typeUnsupported media type
422owner_immutableThe owner cannot be changed

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 PATCH https://taskloader.com/api/v1/organizations/org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/members/usr_kq3Xb1W9pZ0aLm7c \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"role":"admin"}'
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "organization_member",
  "userId": "usr_kq3Xb1W9pZ0aLm7c",
  "name": "Maya Patel",
  "email": "[email protected]",
  "role": "admin",
  "projectIds": [
    "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718"
  ],
  "joinedAt": "2026-09-15T09:12:00.000Z"
}

Remove someone from an organization

#

Takes a person out of the organization and all its projects (owner and admins).

HTTP
DELETE /api/v1/organizations/{organizationId}/members/{userId}
  • 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
  • MCP tool: remove_from_organization

Takes a member, or a guest, out of the organization and every one of its projects. Their tasks in those projects become unassigned, each with a line in its history; projects they owned pass to the organization’s owner. Their conversations with Taskloader’s assistant in those projects are deleted. The owner cannot be removed (owner_immutable), and you cannot remove yourself (cannot_remove_self): use leave_organization. Someone not in the organization is 404.

Parameters

#
NameInTypeRequiredDescription
organizationIdpathid (org_…)YesOrganization id: org_ followed by 32 lowercase hex digits, for example org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
userIdpathid (usr_…)YesUser id: usr_ followed by the account id, for example usr_kq3Xb1W9pZ0aLm7c.
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.

Response

#

200 with an organization_member object.

FieldTypeDescription
object"organization_member"
userIdid (usr_…)User id: usr_ followed by the account id, for example usr_kq3Xb1W9pZ0aLm7c.
removedtrue
projectsLeftinteger, at least 0How many of the organization’s projects they were taken out of.
tasksUnassignedinteger, at least 0How many of their tasks in those projects are now unassigned.

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
422owner_immutableThe owner cannot be changed
422cannot_remove_selfUse leave to remove yourself
422idempotency_key_reusedThe Idempotency-Key was used for another request

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/members/usr_kq3Xb1W9pZ0aLm7c \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "organization_member",
  "userId": "usr_kq3Xb1W9pZ0aLm7c",
  "removed": true,
  "projectsLeft": 2,
  "tasksUnassigned": 5
}

Leave an organization

#

Takes you out of an organization and all its projects.

HTTP
POST /api/v1/organizations/{organizationId}/leave
  • Scopes: projects:write
  • Who: Any member in the organization, except the 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
  • MCP tool: remove_from_organization

You leave the organization and every one of its projects. Your tasks in them become unassigned, each with a line in its history; projects you owned pass to the organization’s owner. Your conversations with Taskloader’s assistant in them are deleted. The owner cannot leave (owner_immutable). Guests leave projects one by one with leave_project. Send an Idempotency-Key to retry safely.

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.

Response

#

200 with an organization_membership object.

FieldTypeDescription
object"organization_membership"
organizationIdid (org_…)Organization id: org_ followed by 32 lowercase hex digits, for example org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
lefttrue
projectsLeftinteger, at least 0How many of its projects you left with it. Projects you owned pass to its owner.
tasksUnassignedinteger, at least 0How many of your tasks in those projects are now unassigned.

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
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
422owner_immutableThe owner cannot be changed
422idempotency_key_reusedThe Idempotency-Key was used for another request

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 POST https://taskloader.com/api/v1/organizations/org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/leave \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "organization_membership",
  "organizationId": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "left": true,
  "projectsLeft": 1,
  "tasksUnassigned": 3
}

Join a project as an organization admin

#

An organization admin joins one of its projects as a project admin.

HTTP
POST /api/v1/projects/{projectId}/join
  • 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
  • MCP tool: join_project

Adds you to one of the organization’s projects as a project admin, to look after it (organization owner and admins only; find its projects with list_organization_projects). If you are already in it, whatever your organization role, nothing changes: joined: false, and your role stays. Someone who is not an organization admin and not in the project gets 404, as for any project they cannot see. The join is recorded in the organization’s security log. Task operations in the project still need task scopes.

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.

Response

#

200 with a project_join object.

FieldTypeDescription
object"project_join"
projectProject
memberMemberYour membership in the project.
joinedbooleanFalse when you were already in the project: nothing changed, your role stayed.

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_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 -X POST https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/join \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "project_join",
  "project": {
    "object": "project",
    "id": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "organization": {
      "id": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "name": "Northwind",
      "slug": "northwind"
    },
    "name": "Website launch",
    "slug": "website-launch",
    "ref": "northwind/website-launch",
    "url": "https://taskloader.com/northwind/website-launch",
    "description": "Everything for the new website, from copy to launch day.",
    "version": 3,
    "archived": false,
    "currentMember": {
      "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "role": "admin"
    },
    "createdAt": "2026-09-14T08:30:00.000Z"
  },
  "member": {
    "object": "member",
    "id": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Patel",
    "email": "[email protected]",
    "role": "admin",
    "color": "sage",
    "joinedAt": "2026-09-15T09:12:00.000Z"
  },
  "joined": true
}