API · Dashboard team
POST /accounts/{id}/members
Add someone by email. They sign in with that address to use the account.
| |
|---|
| Request | POST /v1/accounts/{id}/members |
| Operation id | accounts.members.add |
| Cost | Free |
| Auth | Dashboard session: Authorization: Bearer <session_token>. API keys are refused. |
| Name | Type | Required | Description |
|---|
id | string | yes | Example: acct_01J…. |
| Field | Type | Required | Description |
|---|
email | string | yes | |
role | "owner" | "admin" | "member" | no | |
| Status | Meaning | Schema |
|---|
201 | Added. | AccountMember |
400 | Invalid input. | Error |
401 | Not signed in, or an API key was sent. | Error |
403 | Members can look; owners and admins make changes. | Error |
404 | No such account among yours. | Error |
409 | Already a member, or the account is full. | Error |
| Field | Type | Description |
|---|
user_id | string | |
email | string | |
name | string | null | |
role | "owner" | "admin" | "member" | |
joined_at | string | |
Errors use one shape everywhere; see Errors for every code and what to do.