latestOpenAPI 3.1.02026-08-218667571.2 MB

a8ca30023371

User APIs
users

Add User

post/api/v1/users/self/add-user

Request body

emailstring email required
first_namestring required
last_namestring required
extra_profile_dataobject nullable
role_idstring uuid4 nullable
block_role'block_user' | 'block_admin'

Additive Block role values stored directly on users.block_role and groups.block_role (block_role_enum Postgres enum). Matches the snake_case value set used elsewhere in the Block domain.

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.

transaction_limitnumber nullable
allocated_amountnumber nullable
mcp_daily_limitnumber nullable
group_idstring uuid4 nullable

Response

Successful Response

{"stackTrail":"paths:/api/v1/users/self/add-user:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}