Search Documentation
Search for a documentation page...
Team API
REST API endpoints for managing team members and invitations.
Manage who has access to your store. List and update team members, invite new people by email, and transfer store ownership. Roles are owner, admin, and member — the owner cannot be removed or demoted directly; use Transfer Ownership instead.
List Team Members
Returns the store's team members with their user details and role.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 50 | Members per page (1-100) |
offset | number | 0 | Members to skip |
Response
Get Team Member
Returns a single team member by member ID. Returns 404 if the member is not in this store.
Update Team Member
Changes a member's role to admin or member. To make someone the owner, use Transfer Ownership — promoting to owner here is not allowed, and changing the current owner's role returns 409.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
role | "admin" | "member" | Yes | New role for the member |
Response (200)
Delete Team Member
Removes a member from the store. The owner cannot be removed — transfer ownership first (returns 409).
Response (200)
Transfer Ownership
Promotes the given member to owner and demotes the current owner to admin, atomically. Billing and Stripe are untouched. Returns 409 if the target member is already the owner.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
memberId | string | Yes | ID of the member to promote to owner |
Response (200)
List Invitations
Returns the store's invitations, both pending and resolved.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 50 | Invitations per page (1-100) |
offset | number | 0 | Invitations to skip |
Response
Create Invitation
Invites someone to the store by email. Sends the same invitation email the dashboard does; the invitee becomes a member once they accept. Returns 409 if the email is already a member or already has a pending invitation.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Email address to invite |
role | "admin" | "member" | No | Role the invitee will have once they accept (default: member) |
Response (201)
Get Invitation
Returns a single invitation by ID. Returns 404 if it does not exist.
Delete Invitation
Revokes a pending invitation. Returns 404 if it does not exist.