Create User
Creates a new user in your organization.
The user will be created with the specified name and email address.
To create a machine user instead, set is_machine_user: true in the request body. Machine users do not require an email — one is generated automatically. You can optionally provide a slug and client_credentials for OAuth2 authentication.
Creating a machine user returns its gateway credentials under credentials, documented in MachineUserCredentials. The secret is shown once and cannot be retrieved afterwards, so store it when you receive it.
Request
- Base URL: https://app.withwillow.ai
- URL: https://app.withwillow.ai/api/users
- Auth: HTTP bearer
Request body
Example request
{
"name": "John Doe",
"email": "john.doe@example.com"
}Response
User created successfully.
For machine users, the response also includes a credentials object with the client_id and a one-time secret. The secret is returned only once at creation time and cannot be retrieved again — store it securely.
Example response
{
"data": {
"name": "John Doe",
"email": "john.doe@example.com",
"slug": "john-doe",
"group_ids": [
"group_123",
"group_456"
],
"owner_ids": [
"user_123"
],
"owned_machine_user_ids": [
"user_bot_456"
],
"risk_score": 72,
"risk_score_source": "crowdstrike",
"risk_score_updated_at": "2024-01-20T03:00:00Z",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"org_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"credentials": {
"client_id": "usr_ak_xxxxxxxxxxxxxxxx",
"secret": "usr_sk_xxxxxxxxxxxxxxxx"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.