latestOpenAPI 3.1.02026-08-218667571.2 MB

a8ca30023371

User APIs
distributor-view

Distributor View Grant Team Access

Grant distributor access to a teammate on the same account, in the role the caller chose. Scoped to the caller's own client, so an LP can only ever grant to its own users.

post/api/v1/distributor/team

Request body

user_idstring uuid4 required
distributor_role'Distributor Admin' | 'Distributor User'

Additive distributor role stored directly on users.distributor_role (distributor_role_enum Postgres enum), the same pattern as block_role. DISTRIBUTOR_ADMIN grants access to the platform's distributor features, scoped by the user's client's distributor contract(s); DISTRIBUTOR_USER marks a non-administrative distributor user and grants no distributor-view access on its own.

prompt_accessboolean nullable

Response

Successful Response

idstring uuid required
first_namestring required
last_namestring required
emailstring required
distributor_rolestring required
statusstring
prompt_accessboolean