Skip to main content
POST
/
api
/
v1
/
treasury
/
users
Create a treasury end-user
curl --request POST \
  --url http://localhost:3001/api/v1/treasury/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "externalId": "<string>",
  "email": "<string>",
  "name": "<string>",
  "phone": "<string>",
  "metadata": {}
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "partnerId": "<string>",
    "externalId": "<string>",
    "email": "<string>",
    "status": "ACTIVE",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "name": {},
    "phone": {},
    "metadata": {}
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.useaxra.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
externalId
string
required

Stable id in the partner system

email
string
required
name
string
phone
string
metadata
object

Response

End-user created

success
boolean
required
Example:

true

data
object
required