Skip to content

List an Organization's Members

GET
/v1/organizations/{id}/members
curl --request GET \
--url https://app.caprid.com/v1/organizations/4/members \
--header 'Authorization: Bearer <token>'

Everyone who belongs to the Organization, with their role and when they joined, longest-standing first. Any Member can list them, and so can the Organization’s API keys.

id
required
integer

The Organization’s id, from GET /v1/organizations.

Example

4

The Members.

Media typeapplication/json
Array<object>

An Account that belongs to an Organization.

object
account_id
required

Identifies the Member in routes.

integer
email
required
string
role
required

Every Member manages everything the Organization owns. An Owner can also manage its Members and Invitations.

string
Allowed values: owner member
joined_at
required

When the Account became a Member.

integer

Example

[
{
"account_id": 7,
"email": "bob@acme.example",
"role": "owner",
"joined_at": 1790294400
},
{
"account_id": 12,
"email": "alice@acme.example",
"role": "member",
"joined_at": 1790380800
}
]

No valid credential. Missing, expired and revoked credentials all get the same response, and so does an API key whose trial has lapsed. An Agent token from before a claim gets a 401 too, once the claim has made the trial a person’s, with a message saying to get a new token.

Media typeapplication/json
object
error
required
string

Example

{
"error": "the requested grants exceed the key's scope"
}
WWW-Authenticate
string
Example
Bearer realm="switchboard"

Sent with an API key limited to some Namespaces, to a Namespace outside its limit, or to a route that acts on the Organization as a whole. A limited key can never create API keys.

Media typeapplication/json
object
error
required
string

Example

{
"error": "this API key is limited to the Namespaces acme-staging, and acme isn't one of them"
}

No such thing, or not yours. Another customer’s Organization or Namespace is a 404 too, so nobody can tell which ones exist.

Media typeapplication/json
object
error
required
string

Example

{
"error": "the requested grants exceed the key's scope"
}