GET /api/v2/accounts/{customerId}/membership
Returns the membership settings for a customer org, including whether domain auto-join is enabled. Requires ADMIN role.
Request
curl
Parameters
| Field | In | Type | Required | Notes |
|---|---|---|---|---|
customerId | path | string | Yes | Customer ID to read |
Response
| Field | Type | Notes |
|---|---|---|
customerId | integer | Customer ID |
allowDomainAutoJoin | boolean | When true, users with a verified matching-domain email join immediately as members without admin approval. Requires customerDomain to be set |
Errors
401 UNAUTHORIZED— missing or invalid bearer token.403 FORBIDDEN— caller is not anADMINon the target customer.404 NOT_FOUND— the customer does not exist or is not visible to the caller.
Related
Account tasks
All account operations
Update membership
Toggle domain auto-join
Update customer domain
Set the org domain