API v2 Documentation (Draft)
Client API > Response
Client API > Contacts
Client API > Display
Client API > Environment
Client API > User
Client API > File Upload
Roles
Me
Management API > Responses
Management API > Contacts
Management API > Contact Attribute Keys
Management API > Surveys > Contact Links
Management API > Webhooks
Organizations API > Teams
Organizations API > Project Teams
Organizations API > Users
Create a user
Create a new user in the database.
Only available for self-hosted Formbricks.
POST
/
{organizationId}
/
users
curl --request POST \
--url https://app.formbricks.com/api/v2/organizations/{organizationId}/users \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"isActive": true,
"name": "John Doe",
"email": "example@example.com",
"role": "member",
"teams": [
"team1",
"team2"
]
}'
{
"id": "<string>",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"lastLoginAt": "2021-01-01T00:00:00.000Z",
"isActive": true,
"name": "John Doe",
"email": "example@example.com",
"role": "member",
"teams": [
"team1",
"team2"
]
}
Authorizations
Use your Formbricks x-api-key to authenticate.
Path Parameters
The ID of the organization
Body
application/json
The user to create
The body is of type object
.
Response
201 - application/json
User created successfully.
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://app.formbricks.com/api/v2/organizations/{organizationId}/users \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"isActive": true,
"name": "John Doe",
"email": "example@example.com",
"role": "member",
"teams": [
"team1",
"team2"
]
}'
{
"id": "<string>",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"lastLoginAt": "2021-01-01T00:00:00.000Z",
"isActive": true,
"name": "John Doe",
"email": "example@example.com",
"role": "member",
"teams": [
"team1",
"team2"
]
}