GET /users
Lists all users for the workspace
curl -X GET "https://api.us-west-2.fragment.dev/users" \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json"{
"data": [
{
"id": "user_abc123",
"externalId": "user_ext_123",
"role": "admin"
}
]
}POST /users
Creates a new user
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"}'{
"data": {
"id": "user_abc123",
"externalId": "user_ext_123",
"role": "admin"
}
}| Name | Description |
|---|---|
| externalId (required) - string | External ID for the user |
| role (required) - string | Role of the user |