Skip to content
Sign in Create account

Post users

POST /api/v1/builder/users

Provision or list end-user accounts attributed to the authenticated builder application.

Authenticate with an API key.

Request body

application/json OrggrcBuilderUserCreate

  • app_id string required
    Length: 1 to 64 characters. Pattern: ^[a-z0-9._-]+$. Example: "sample-app"
  • email string (email) required
    Length: 1 to 255 characters. Example: "person@example.test"
  • name string or null
    Length: at most 255 characters. Example: "Sample User"

Example

{
  "app_id": "sample-app",
  "email": "person@example.test"
}

Responses

200 Operation completed successfully.

application/json object

Any keys are accepted.

201 The end-user account was created.

application/json object

  • user object required
    • account_id integer required
    • email string (email) required
    • email_verified boolean required
    • organisation_id string or null required
    • app_id string required
  • created boolean required
    Value: true

Generated sample

{
  "user": {
    "account_id": 0,
    "email": "user@example.com",
    "email_verified": true,
    "organisation_id": "string",
    "app_id": "string"
  },
  "created": true
}
401 Authentication is required or invalid.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
403 The authenticated user is not permitted to perform this operation.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
404 The requested resource was not found.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
422 The request failed validation.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
429 The request was rate limited.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"

text/html string