Members

2 Trellis API endpoints for members, with the scopes, parameters and response each one takes.

List the workspace's members

POST/workspaces/{handle}/membership/all

Scopes

Needs a token holding issues:read, issues:write or workspace:read.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

Request bodyapplication/json

PaginationAndFilters

exclude_pending_deletionboolean
exclude_user_idsarray of stringnullable
filtersanynullable
ids_onlyboolean
include_invitesboolean
label_idsarray of stringnullable
limitintegernullable
pageintegernullable
querystringnullable
role_excludearray of stringnullable
role_slugsarray of stringnullable
sort_bystringnullable
sort_dirstringnullable
statusesarray of stringnullable

Responses

200OK

A page of members, or every matching user ID when the request sets `ids_only`.

MemberListPage

countsMemberStatusCounts
2 fields
activeinteger
pendinginteger
dataarray of MemberListItemnullable
22 fields
avatar_gradientstring
contract_end_datestring
contract_start_datestring
created_atstring
has_salaryboolean
idstring
invited_atstring
is_expiredboolean
labelsarray of MemberLabelnullable
4 fields
colorstring
descriptionstring
idstring
namestring
rate_card_idstring
rate_card_namestring
role_colorstring
role_idstring
role_namestring
role_slugstring
statusstring
updated_atstring
user_avatarstring
user_emailstring
user_idstring
user_namestring
workspace_idstring
limitinteger
pageinteger
totalinteger

MemberIDsPage

dataarray of stringnullable
limitinteger
pageinteger
totalinteger

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.

Get the caller's workspace membership

GET/workspaces/{handle}/membership/me

Scopes

Needs a token holding issues:read, issues:write or workspace:read.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

Responses

200OK

MyMembership

addressstring
avatar_gradientstring
citystring
contract_end_datestring
contract_start_datestring
countrystring
created_atstring
date_of_birthstring
has_salaryboolean
idstring
phone_numberstring
rate_card_idstring
rate_card_namestring
role_colorstring
role_idstring
role_namestring
role_slugstring
updated_atstring
user_avatarstring
user_emailstring
user_idstring
user_namestring
workspace_idstring
zip_codestring

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.