Skip to content
Get started

Create

POST/users

Creates a new user

Body ParametersJSONExpand Collapse
externalId: string

External ID for the user

role: string

Role of the user

ReturnsExpand Collapse
data: object { id, externalId, role }

User object

id: string

Unique user ID

externalId: string

External ID for the user

role: string

Role of the user

Create

curl https://api.us-west-2.fragment.dev/users \
    -H 'Content-Type: application/json' \
    -d '{
          "externalId": "user_ext_123",
          "role": "admin"
        }'
{
  "data": {
    "id": "user_abc123",
    "externalId": "user_ext_123",
    "role": "admin"
  }
}
Returns Examples
{
  "data": {
    "id": "user_abc123",
    "externalId": "user_ext_123",
    "role": "admin"
  }
}