Skip to main content
POST
/
admin
/
users
Create a new system user
curl --request POST \
  --url https://olive-gateway-a6ba.onrender.com/api/v1/admin/users \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "password": "<string>",
  "role": "<string>"
}
'
{
  "message": "<string>",
  "success": true,
  "user": {
    "account_id": "<string>",
    "agent_id": "<string>",
    "created_at": "<string>",
    "email": "<string>",
    "first_name": "<string>",
    "id": "<string>",
    "last_login_at": "<string>",
    "last_name": "<string>",
    "name": "<string>",
    "pep_access_authorized": true,
    "phone_number": "<string>",
    "role": "<string>",
    "status": "<string>",
    "user_type": "<string>"
  },
  "user_id": "<string>"
}

Authorizations

Authorization
string
header
required

API Key for third-party integrations (WhatsApp, Smart PAY, VULT). Format: 'Bearer olive_live_xxxxxxxxxxxxx'

Body

application/json

User details

email
string
required
first_name
string
required
last_name
string
required
password
string
required
role
string
required
pep_access_authorized
boolean
phone_number
string

Response

Created

message
string
success
boolean
user
object
user_id
string