Skip to content
DocsPeople

API reference

People

The members of a project and their roles. Endpoints, parameters, examples and errors.

View as Markdown

On this page

The members of a project and their roles. A member (mem_…) is one person’s place in one project: tasks are assigned to members, while people (usr_…) are who they are everywhere. Project admins add organization members directly; anyone else is invited.

List project members

#

Lists a project’s people, owner first, then in the order they joined.

HTTP
GET /api/v1/projects/{projectId}/members
  • Scopes: projects:read
  • Who: Viewer or above 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_members

Returns the people in the project with their roles, owner first. Each member’s id (mem_…) is what tasks are assigned to (assigneeMemberId); userId (usr_…) is the person. Every member of the project can list them, as in the app. total counts everyone.

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 Member 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 Member
totalinteger, at least 0How many match in all (every page), counted up to 10,000; see totalIsLowerBound past that.
totalIsLowerBoundbooleanTrue when there are more than total (the count stops at 10,000).

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

{
  "object": "list",
  "data": [
    {
      "object": "member",
      "id": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "userId": "usr_kq3Xb1W9pZ0aLm7c",
      "name": "Maya Patel",
      "email": "[email protected]",
      "role": "editor",
      "color": "sage",
      "joinedAt": "2026-09-15T09:12:00.000Z"
    }
  ],
  "hasMore": false,
  "nextCursor": null,
  "total": 1,
  "totalIsLowerBound": false
}

List people you can add to a project

#

Lists members of the project’s organization who are not in the project yet.

HTTP
GET /api/v1/projects/{projectId}/member-candidates
  • 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, or search when q has words
  • MCP tool: list_members

Returns the members of the project’s organization who are not in the project, by name: a project admin can add them directly with add_project_member. Anyone else needs an invitation link (create_project_invitation). q keeps people whose name or email contains every word of it. For project owners and admins who are members of the organization themselves; a project admin who is only a guest of the organization gets 403 forbidden_role and invites people instead.

Parameters

#
NameInTypeRequiredDescription
projectIdpathid (prj_…)YesProject id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
qquerystringNoWords to look for in names and email addresses, for example "maya". Every word must match. Up to 200 characters.
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 MemberCandidate 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 MemberCandidate

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/member-candidates?q=maya' \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "list",
  "data": [
    {
      "object": "member_candidate",
      "userId": "usr_kq3Xb1W9pZ0aLm7c",
      "name": "Maya Patel",
      "email": "[email protected]"
    }
  ],
  "hasMore": false,
  "nextCursor": null
}

Add someone to a project

#

Adds a member of the project’s organization to the project with a role.

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

Adds a person to the project with a role (editor unless you say otherwise). Only members of the project’s organization can be added directly (422 not_organization_member): invite anyone else with create_project_invitation. Someone already in the project is 409 already_member, with their memberId and the role they keep: adding never changes a role (use change_project_member_role for that). For project owners and admins who are members of the organization; a project admin who is only a guest of it gets 403 forbidden_role. Send an Idempotency-Key to retry safely.

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
userIdid (usr_…)YesUser id: usr_ followed by the account id, for example usr_kq3Xb1W9pZ0aLm7c.
role"viewer" or "editor" or "admin"Noviewer, editor or admin. Defaults to editor.

Response

#

201 with the new Member object.

FieldTypeDescription
object"member"
idid (mem_…)Member id: mem_ followed by 32 lowercase hex digits, for example mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
projectIdid (prj_…)Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
userIdid (usr_…)User id: usr_ followed by the account id, for example usr_kq3Xb1W9pZ0aLm7c.
namestringThe person’s name.
emailstringThe person’s email address.
role"viewer" or "editor" or "admin" or "owner"A project role: viewer < editor < admin < owner.
colorstringTheir avatar colour in the app: sand, sage, blue, rose, lilac or gray.
joinedAtstring (date-time)RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.

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
409already_memberAlready a member
409idempotency_key_in_progressThe original request is still running
413payload_too_largeThe request body is too large
415unsupported_media_typeUnsupported media type
422not_organization_memberNot in the organization
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/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/members \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"userId":"usr_kq3Xb1W9pZ0aLm7c","role":"editor"}'
HTTP
HTTP/1.1 201 Created
Content-Type: application/json

{
  "object": "member",
  "id": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "userId": "usr_kq3Xb1W9pZ0aLm7c",
  "name": "Maya Patel",
  "email": "[email protected]",
  "role": "editor",
  "color": "sage",
  "joinedAt": "2026-09-15T09:12:00.000Z"
}

Change a member’s role

#

Gives a project member another role: viewer, editor or admin.

HTTP
PATCH /api/v1/projects/{projectId}/members/{memberId}
  • 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: change_member_role

Sets a member’s role in the project (project owner and admins). Setting the role they already have changes nothing. The owner’s role never changes (owner_immutable). The member is looked for in the project from the path only: a member of another project is 404, like a missing one.

Parameters

#
NameInTypeRequiredDescription
projectIdpathid (prj_…)YesProject id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
memberIdpathid (mem_…)YesMember id: mem_ followed by 32 lowercase hex digits, for example mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.

Request body

#

A JSON object. Fields not listed are refused.

FieldTypeRequiredDescription
role"viewer" or "editor" or "admin"Yesviewer (sees everything and comments), editor (also creates, edits and moves tasks) or admin (also manages people).

Response

#

200 with a Member object.

FieldTypeDescription
object"member"
idid (mem_…)Member id: mem_ followed by 32 lowercase hex digits, for example mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
projectIdid (prj_…)Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
userIdid (usr_…)User id: usr_ followed by the account id, for example usr_kq3Xb1W9pZ0aLm7c.
namestringThe person’s name.
emailstringThe person’s email address.
role"viewer" or "editor" or "admin" or "owner"A project role: viewer < editor < admin < owner.
colorstringTheir avatar colour in the app: sand, sage, blue, rose, lilac or gray.
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
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/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/members/mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
  -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": "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"
}

Remove someone from a project

#

Takes a member out of the project; their tasks there become unassigned.

HTTP
DELETE /api/v1/projects/{projectId}/members/{memberId}
  • 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
  • MCP tool: remove_member

Removes a member from the project (project owner and admins). Their tasks in it become unassigned, each with a line in its history, and tasksUnassigned says how many. Their conversations with Taskloader’s assistant in the project are deleted. The owner cannot be removed (owner_immutable), and you cannot remove yourself (cannot_remove_self): use leave_project. They stay in the organization; remove_organization_member takes them out of every project.

Parameters

#
NameInTypeRequiredDescription
projectIdpathid (prj_…)YesProject id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
memberIdpathid (mem_…)YesMember id: mem_ followed by 32 lowercase hex digits, for example mem_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 member object.

FieldTypeDescription
object"member"
idid (mem_…)Member id: mem_ followed by 32 lowercase hex digits, for example mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
removedtrue
tasksUnassignedinteger, at least 0How many of their tasks in the project 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
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/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/members/mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "member",
  "id": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "removed": true,
  "tasksUnassigned": 3
}