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"
}
Creates a new user account
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"
}
User created successfully
The response is of type object
.
Was this page helpful?