tenancy
Customers, teams, memberships and app groups.
List app groups (E15)
Live app groups of the acting customer, keyset-paginated (API-61).
query Parameters
cursorOpaque base64url keyset cursor over (created_at, id) descending. A
cursor that does not decode is 422 (API-39, API-40).
limitPage size. A value above the maximum is 422, never a silent clamp (API-38).
List app groups (E15) › Responses
A page of live app groups of the acting customer.
next_cursorCreate an app group (E16)
The slug default is reserved and rejected 422 (TM-13, API-61).
Headers
Idempotency-KeyClient-generated UUIDv4. Optional in M0 (API-44). A repeat with the
same key and body returns the stored response; a repeat with a different
body is 409 idempotency-conflict (API-42).
Create an app group (E16) › Request Body
nameslug^[a-z0-9][a-z0-9-]{0… · requiredThe slug default is reserved and rejected (TM-13).
Create an app group (E16) › Responses
The app group was created.
created_atidis_defaultnameslug^[a-z0-9][a-z0-9-]{0… · requiredDelete an app group (E17)
The default group cannot be deleted (422, TM-15). Any other group
reassigns its catalogue rows to default in the same transaction and
bumps the epoch (API-62).
path Parameters
group_idHeaders
Idempotency-KeyClient-generated UUIDv4. Optional in M0 (API-44). A repeat with the
same key and body returns the stored response; a repeat with a different
body is 409 idempotency-conflict (API-42).
Delete an app group (E17) › Responses
The app group was deleted. No body.
The acting customer (E4)
Returns the customer named by the token. Runs the membership guard like
every other authenticated operation; a caller whose membership is absent
or soft-deleted receives 404 (API-10, API-52).
The acting customer (E4) › Responses
The acting customer.
created_atidlegal_nameslug^[a-z0-9][a-z0-9-]{0… · requiredstatusList memberships (E12)
Memberships of the acting customer. Returns user_id and identity_id
and never an email address or display name (API-58).
query Parameters
cursorOpaque base64url keyset cursor over (created_at, id) descending. A
cursor that does not decode is 422 (API-39, API-40).
limitPage size. A value above the maximum is 422, never a silent clamp (API-38).
List memberships (E12) › Responses
A page of memberships of the acting customer.
next_cursorCreate a membership (E13)
Binds exactly one identity (ADR-002, TM-6, API-59).
Headers
Idempotency-KeyClient-generated UUIDv4. Optional in M0 (API-44). A repeat with the
same key and body returns the stored response; a repeat with a different
body is 409 idempotency-conflict (API-42).
Create a membership (E13) › Request Body
identity_idADR-002 — binds exactly one identity.
user_idCreate a membership (E13) › Responses
The membership was created.
created_atididentity_iduser_idDelete a membership (E14)
Soft-deletes the membership and every team membership referencing it in
the same transaction, then bumps the epoch (API-60).
path Parameters
membership_idHeaders
Idempotency-KeyClient-generated UUIDv4. Optional in M0 (API-44). A repeat with the
same key and body returns the stored response; a repeat with a different
body is 409 idempotency-conflict (API-42).
Delete a membership (E14) › Responses
The membership was deleted. No body.
List teams (E5)
Live teams of the acting customer only, keyset-paginated (API-53).
query Parameters
cursorOpaque base64url keyset cursor over (created_at, id) descending. A
cursor that does not decode is 422 (API-39, API-40).
limitPage size. A value above the maximum is 422, never a silent clamp (API-38).
List teams (E5) › Responses
Create a team (E6)
Creates a team in the acting customer and returns 201 with a
Location header (API-53).
Headers
Idempotency-KeyClient-generated UUIDv4. Optional in M0 (API-44). A repeat with the
same key and body returns the stored response; a repeat with a different
body is 409 idempotency-conflict (API-42).
Create a team (E6) › Request Body
nameslug^[a-z0-9][a-z0-9-]{0… · requiredCreate a team (E6) › Responses
The team was created.
created_atidnameslug^[a-z0-9][a-z0-9-]{0… · requiredFetch a team (E7)
A team in another customer, a soft-deleted team and an absent team are
one 404; a denial on a team that does live in the acting customer is
403 (API-54, API-92).
path Parameters
team_idFetch a team (E7) › Responses
The team.
created_atidnameslug^[a-z0-9][a-z0-9-]{0… · requiredDelete a team (E8)
Soft-deletes and bumps permissions_epoch before returning (API-54).
path Parameters
team_idHeaders
Idempotency-KeyClient-generated UUIDv4. Optional in M0 (API-44). A repeat with the
same key and body returns the stored response; a repeat with a different
body is 409 idempotency-conflict (API-42).
Delete a team (E8) › Responses
The team was deleted. No body.
List team members (E9)
Live team_memberships rows for the path team, joined to memberships
for user_id and identity_id. Never an email address or display name
(API-93, API-58).
path Parameters
team_idquery Parameters
cursorOpaque base64url keyset cursor over (created_at, id) descending. A
cursor that does not decode is 422 (API-39, API-40).
limitPage size. A value above the maximum is 422, never a silent clamp (API-38).
List team members (E9) › Responses
A page of team memberships.
next_cursorAdd a member to a team (E10)
Takes a membership_id; a membership whose customer differs from the
team's is 422 tenancy-violation. Bumps the epoch on success
(API-56, TM-9).
path Parameters
team_idHeaders
Idempotency-KeyClient-generated UUIDv4. Optional in M0 (API-44). A repeat with the
same key and body returns the stored response; a repeat with a different
body is 409 idempotency-conflict (API-42).
Add a member to a team (E10) › Responses
The membership was added to the team.
created_atidmembership_idteam_iduser_idRemove a member from a team (E11)
Soft-deletes and bumps the epoch. Removing the last member of a team is
permitted (API-57, ADR-003).
path Parameters
team_idmembership_idHeaders
Idempotency-KeyClient-generated UUIDv4. Optional in M0 (API-44). A repeat with the
same key and body returns the stored response; a repeat with a different
body is 409 idempotency-conflict (API-42).
Remove a member from a team (E11) › Responses
The team membership was removed. No body.