G Users#

List

#

GET /users

Lists all users for the workspace

Request
curl -X GET "https://api.us-west-2.fragment.dev/users" \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json"

Response
{
  "data": [
    {
      "id": "user_abc123",
      "externalId": "user_ext_123",
      "role": "admin"
    }
  ]
}

Create

#

POST /users

Creates a new user

Request
curl -X POST "https://api.us-west-2.fragment.dev/users" \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json" \
  -d '{"externalId":"user_ext_123","role":"admin"}'

Response
{
  "data": {
    "id": "user_abc123",
    "externalId": "user_ext_123",
    "role": "admin"
  }
}

Parameters
Name Description
externalId (required) - stringExternal ID for the user
role (required) - stringRole of the user