Skip to main content
POST
/
v1
/
users
Create User
curl --request POST \
  --url https://api.tradearies.dev/v1/users \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "email": "<string>",
  "password": "<string>",
  "country": "<string>"
}'
{
  "id": 123,
  "email": "<string>",
  "country": "<string>",
  "auth": {
    "access_token": "<string>",
    "refresh_token": "<string>",
    "role": "<string>"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
email
string
required

Must be a valid email address

password
string
required

Must be a strong password

Minimum length: 8
country
string
required

Must be a valid 3-letter country code

Required string length: 3

Response

User created successfully

id
integer
email
string
country
string
auth
object
created_at
string<date-time>
updated_at
string<date-time>
I