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_idstring requiredLength: 1 to 64 characters. Pattern:^[a-z0-9._-]+$. Example:"sample-app"emailstring (email) requiredLength: 1 to 255 characters. Example:"person@example.test"namestring or nullLength: 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
userobject requiredaccount_idinteger requiredemailstring (email) requiredemail_verifiedboolean requiredorganisation_idstring or null requiredapp_idstring required
createdboolean requiredValue: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_codestring requiredmessagestring requiredrequest_idstring (uuid)statusstring requiredExample:"error"
403 The authenticated user is not permitted to perform this operation.
application/json ErrorWithCode
error_codestring requiredmessagestring requiredrequest_idstring (uuid)statusstring requiredExample:"error"
404 The requested resource was not found.
application/json ErrorWithCode
error_codestring requiredmessagestring requiredrequest_idstring (uuid)statusstring requiredExample:"error"
422 The request failed validation.
application/json ErrorWithCode
error_codestring requiredmessagestring requiredrequest_idstring (uuid)statusstring requiredExample:"error"
429 The request was rate limited.
application/json ErrorWithCode
error_codestring requiredmessagestring requiredrequest_idstring (uuid)statusstring requiredExample:"error"
text/html string