cURL
curl --request POST \ --url https://api.captaindata.co/v3/users \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --header 'x-project-id: <api-key>' \ --data ' { "email": "<string>", "full_name": "<string>", "country": "<string>", "timezone": "<string>", "uid": "<string>" } '
{ "user": { "uid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "email": "[email protected]", "first_name": "John", "last_name": "Doe", "full_name": "John Doe", "country": "US", "project_uid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "accounts": [] }, "message": "User created." }
The Authorization header must include 'x-api-key' followed by your API key (e.g., 'Authorization: x-api-key YOUR_API_KEY').
Workspace UID required to identify the workspace.
The email address of the user.
The full name of the user.
ISO 3166-1 alpha-2 country code, e.g., 'us' or 'US' for United States.
The user's timezone.
Leave empty to create a new user; provide a UID to update an existing user.
Successful Response