Body Required
-
email_address string
Client's email address
-
password string
Client's password (at least 8 characters long)
-
first_name string
Client's first name
-
last_name string
Client's last name
-
patronymic string
Client's patronymic/middle name
-
phone_number string
Client's phone number
-
profile_picture_url string
Link to client's profile picture, typically uploaded using POST /profile-picture
POST
/client/register
curl \
-X POST http://63.141.232.244:25540/v0/client/register \
-H "Content-Type: application/json" \
-d '{"email_address":"Og0rB@example.com","password":"1234567890","first_name":"Иван","last_name":"Иванов","patronymic":"Иванович","phone_number":"79174236278","profile_picture_url":"https://example.com/profile_picture.jpg"}'
Request examples
{
"email_address": "Og0rB@example.com",
"password": "1234567890",
"first_name": "Иван",
"last_name": "Иванов",
"patronymic": "Иванович",
"phone_number": "79174236278",
"profile_picture_url": "https://example.com/profile_picture.jpg"
}
Response examples (200)
{
"success": true,
"session": {
"jwt": "jE92mGiq2S.e2s1.da239-Z983ns",
"revoked": false,
"created_at": "2024-10-10T18:36:47Z",
"expires_at": "2024-11-10T18:36:47Z",
"session_id": 1
},
"client": {
"client_id": 1,
"last_name": "Иванов",
"created_at": "2024-10-10T18:36:47Z",
"first_name": "Иван",
"patronymic": "Иванович",
"phone_number": "79174236278",
"email_address": "Og0rB@example.com",
"profile_picture_url": "https://example.com/profile_picture.jpg"
}
}
Response examples (400)
{
"success": false,
"error": [
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"client_id"
],
"message": "Required"
}
]
}
Response examples (429)
{
"success": false,
"error": "Too many requests, please try again later"
}