Organization API: Org Staff Team
Every Organization API operation tagged Org Staff Team.
Base URL: https://api.coritan.com/api/v1. Paths below are complete.
To try these requests in the browser, open the interactive Organization API reference.
Operations
Section titled Operations| Method | Path | Summary |
|---|---|---|
| POST | /api/v1/orgs/{org_slug}/staff/team |
Staff invite member |
| GET | /api/v1/orgs/{org_slug}/staff/team/detail |
Everyone on the brand, with role, last sign-in and whether they can sign in at all |
| GET | /api/v1/orgs/{org_slug}/staff/team/policy |
Staff team policy |
| PATCH | /api/v1/orgs/{org_slug}/staff/team/policy |
Staff set team policy |
| PATCH | /api/v1/orgs/{org_slug}/staff/team/{member_id} |
Staff change role |
| DELETE | /api/v1/orgs/{org_slug}/staff/team/{member_id} |
Staff remove member |
| GET | /api/v1/orgs/{org_slug}/staff/team/{member_id}/customer-link |
Which storefront customer account a teammate is, if any |
| PUT | /api/v1/orgs/{org_slug}/staff/team/{member_id}/customer-link |
Attach a teammate to an existing customer account, or make them one with their email |
| DELETE | /api/v1/orgs/{org_slug}/staff/team/{member_id}/customer-link |
Make a teammate console-only |
| POST | /api/v1/orgs/{org_slug}/staff/team/{member_id}/reset-mfa |
For a teammate who lost their phone: remove their second factor and end their sessions |
| POST | /api/v1/orgs/{org_slug}/staff/team/{member_id}/reset-password |
Staff reset member password |
| POST | /api/v1/orgs/{org_slug}/staff/team/{member_id}/revoke-sessions |
End every staff console session a teammate has open |
Staff invite member
Section titled Staff invite memberPOST /api/v1/orgs/{org_slug}/staff/team
Add a teammate, as the owner console's POST /members does: a role
it does not take is 400 first, then adding an Admin, who may change
everything but the owner, takes a fresh step-up (403 reauth_required)
before anything is written. Counted against staff.invite (429 past
it) and audited as member.invited.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
org_slug |
path | string | yes |
Request body
Section titled Request bodyapplication/json (required)
| Field | Type | Required |
|---|---|---|
email |
string (email) | yes |
name |
string or null | no |
role |
string | no |
send_invite_email |
boolean | no |
password |
string or null | no |
customer_link |
string | no |
customer_id |
integer or null | no |
Responses
Section titled Responses| Status | Meaning |
|---|---|
201 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Everyone on the brand, with role, last sign-in and whether they can sign in at all
Section titled Everyone on the brand, with role, last sign-in and whether they can sign in at allGET /api/v1/orgs/{org_slug}/staff/team/detail
Everyone on the brand, with role, last sign-in and whether they can
sign in at all. The picker route (/staff/team) stays small; this is
the team page.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
org_slug |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Staff team policy
Section titled Staff team policyGET /api/v1/orgs/{org_slug}/staff/team/policy
The brand's sign-in policy: require_mfa, and
remember_device_days, how long a remembered device skips the code
(30 unless an admin changed it, 0 when devices are not remembered).
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
org_slug |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Staff set team policy
Section titled Staff set team policyPATCH /api/v1/orgs/{org_slug}/staff/team/policy
Require a second factor of everyone on the brand (require_mfa),
and say how long a device a member remembered at sign-in skips the code
(remember_device_days, 0 to 90). Send either or both. From the next
sign-in a member without a second factor can only enrol until they have
one. The admin requiring it must already have theirs, or they would be the
first one locked into enrolment. Fewer days shortens the devices already
remembered, and 0 stops them all.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
org_slug |
path | string | yes |
Request body
Section titled Request bodyapplication/json (required)
| Field | Type | Required |
|---|---|---|
require_mfa |
boolean or null | no |
remember_device_days |
integer or null | no |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Staff change role
Section titled Staff change rolePATCH /api/v1/orgs/{org_slug}/staff/team/{member_id}
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
member_id |
path | integer | yes |
org_slug |
path | string | yes |
Request body
Section titled Request bodyapplication/json (required)
| Field | Type | Required |
|---|---|---|
role |
string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Staff remove member
Section titled Staff remove memberDELETE /api/v1/orgs/{org_slug}/staff/team/{member_id}
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
member_id |
path | integer | yes |
org_slug |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Which storefront customer account a teammate is, if any
Section titled Which storefront customer account a teammate is, if anyGET /api/v1/orgs/{org_slug}/staff/team/{member_id}/customer-link
Which storefront customer account a teammate is, if any.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
member_id |
path | integer | yes |
org_slug |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Attach a teammate to an existing customer account, or make them one with their email
Section titled Attach a teammate to an existing customer account, or make them one with their emailPUT /api/v1/orgs/{org_slug}/staff/team/{member_id}/customer-link
Attach a teammate to an existing customer account, or make them one with their email. Whoever holds the account holds its servers and its money, so this is a step-up action, and any storefront sessions the console opened on a previous account end.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
member_id |
path | integer | yes |
org_slug |
path | string | yes |
Request body
Section titled Request bodyapplication/json (required)
| Field | Type | Required |
|---|---|---|
mode |
string | no |
customer_id |
integer or null | no |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Make a teammate console-only
Section titled Make a teammate console-onlyDELETE /api/v1/orgs/{org_slug}/staff/team/{member_id}/customer-link
Make a teammate console-only. The customer account stays as it is, with its servers and invoices; only the tie to this teammate goes.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
member_id |
path | integer | yes |
org_slug |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
For a teammate who lost their phone: remove their second factor and end their sessions
Section titled For a teammate who lost their phone: remove their second factor and end their sessionsPOST /api/v1/orgs/{org_slug}/staff/team/{member_id}/reset-mfa
For a teammate who lost their phone: remove their second factor and end their sessions. They sign in with the password and, if the brand requires it, enrol again straight away. Never for yourself (disable your own with a code), and never for the owner from here.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
member_id |
path | integer | yes |
org_slug |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Staff reset member password
Section titled Staff reset member passwordPOST /api/v1/orgs/{org_slug}/staff/team/{member_id}/reset-password
Set a temporary password (ending the member's sessions), email them
a reset link (send_email), or both. Without a body: the link.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
member_id |
path | integer | yes |
org_slug |
path | string | yes |
Request body
Section titled Request bodyapplication/json
| Field | Type | Required |
|---|---|---|
send_email |
boolean | no |
password |
string or null | no |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
End every staff console session a teammate has open
Section titled End every staff console session a teammate has openPOST /api/v1/orgs/{org_slug}/staff/team/{member_id}/revoke-sessions
End every staff console session a teammate has open. Admins and the
owner, after a fresh step-up (403 reauth_required), as for a role
change; {"revoked": n}.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
member_id |
path | integer | yes |
org_slug |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |