Logo
Brex Developer API Documentation

Invite user

POST {{baseUrl}}/v2/users

This endpoint invites a new user as an employee. To update user's role, check out this article.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Idempotency-Key
string
Content-Type
string




RESPONSES

status OK

{ "email": "irure incididunt enim cupidatat nostrud", "first_name": "tempor velit", "id": "fugiat tempor Ut cillum ex", "last_name": "pariatur est deserunt voluptate reprehe", "status": { "value": "<Error: Could not resolve allOf schema" }, "manager_id": "ea proident in dolore", "department_id": "officia elit cillum enim", "location_id": "deserunt" }



Curl
curl -X POST 'https://platform.staging.brexapps.com/v2/users' -H 'Idempotency-Key: $guid' -H 'Content-Type: application/json' -d '{"email":"mrQ8l5iT@vLBZMEShgLqLtGZOvktaqKKThFWdVmQRd.fr","first_name":"nisi fugiat occaecat","last_name":"cillum","manager_id":"Excepteur cillum nisi","department_id":"in aliqua Lorem","location_id":"fugiat commodo do dolore in"}'

ENDPOINTS