Show an agency's team
GET /agencies/{agencyId}/members
GET https://zanpki.com/agencies/{agencyId}/members
| Operation ID |
agencies.agencyId.members.get
|
|---|---|
| Access | Browser session signed in through ZanAuth, using the access token cookie alongside its ID token and refresh token cookies. Or: An access token issued for this site by its ZanAuth issuer, or a static key. |
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
agencyId
| Path | Required | string (snowflake) | Agency ID. |
Responses
| Status | Description | Schema | Content type |
|---|---|---|---|
| 200 | The agency's team and pending invites. | B2bAgencyMembersPage | application/json, text/html, text/markdown |
| 403 | Your roles here do not allow this. | Problem | application/json, text/html, text/markdown |
| 422 | The request input was rejected. The errors object lists each validation failure. | ValidationProblem | application/json, text/html, text/markdown |
| Any other status | The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation. | Problem | application/json, text/html, text/markdown |
200 The agency's team and pending invites.
| Property | Type | Description | |
|---|---|---|---|
agency_id
| string (snowflake) | Required | The agency's ID. |
agency_name
| string | Required | The agency's display name. |
members
| list of B2bMemberLine | Required | Members with roles on this agency or its organizations. |
role_invites
| list of DashboardRoleInviteLine | Required | Pending role invites within this agency. |
organization_choices
| list of B2bOrganizationChoice | Required | Organizations in this agency available as invite scopes. |
more_organizations
| boolean | Required | Whether the agency has more organizations than organization_choices lists. The invite form then finds the others by name. |
may_manage_members
| boolean | Required | Whether the caller may invite and edit agency members. |
username_email_rule
| one of: 0, 1, 2, null | Required | Which usernames an invite here accepts: 0 (anything except an email address), 1 (any username, including an email address), or 2 (email addresses only). Null if it is not known. |
in_demo
| boolean | Required | Whether this agency is in a demo sandbox, which doesn't include invites or machines. |
403 Your roles here do not allow this.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | A human-readable explanation of what went wrong. |
instance
| string | Required | The path the request was sent to. |
422 The request input was rejected. The errors object lists each validation failure.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | A human-readable explanation of what went wrong. |
instance
| string | Required | The path the request was sent to. |
errors
| InputErrors | Required | Validation errors for each rejected value. Parameter errors are returned as a list, and body errors as a tree matching the request body structure. |
Any other status: The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | A human-readable explanation of what went wrong. |
instance
| string | Required | The path the request was sent to. |
Example
curl -X GET 'https://zanpki.com/agencies/{agencyId}/members' \
-H 'Authorization: Bearer <access token>'