CorebanqCorebanq Developer Docs
Usersv1Users

Create user

Create a new user

POST/v1/users

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/users" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "password": "string"  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "description": "string",
  "active": true,
  "totp_enabled": true,
  "password_status": {
    "expires_at": "2019-08-24T14:15:22Z",
    "days_until_expiry": 0,
    "expired": true,
    "change_recommended": true
  },
  "lang": "string",
  "mfa_mode": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "modified_at": "2019-08-24T14:15:22Z"
}
{
  "code": "users_m.invalid_user_input",
  "message": "Invalid user input data"
}