Skip to main content
POST
/
v2
/
users
Create User
curl --request POST \
  --url https://public.api.serval.com/v2/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "role": "USER_ROLE_UNSPECIFIED"
}'
{
  "data": {
    "id": "<string>",
    "email": "<string>",
    "firstName": "<string>",
    "lastName": "<string>",
    "name": "<string>",
    "role": "USER_ROLE_UNSPECIFIED",
    "avatarUrl": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "deactivatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string
firstName
string
lastName
string
role
enum<string>
Available options:
USER_ROLE_UNSPECIFIED,
USER_ROLE_ORG_MEMBER,
USER_ROLE_ORG_ADMIN

Response

Success

data
object