Skip to main content
POST
/
api
/
admin
/
account
Create a new account
curl --request POST \
  --url https://pria.praxislxp.com/api/admin/account \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "status": "active",
  "credits": 123
}
'
{
  "success": true,
  "data": {
    "_id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "status": "active",
    "credits": 123,
    "created": "2023-11-07T05:31:56Z"
  }
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
name
string
required

Account name

description
string

Account description

status
enum<string>
default:active
Available options:
active,
inactive
credits
integer

Initial credits

Response

Account created successfully

success
boolean
data
object