Register
POST
/api/v1/auth/register
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/auth/register' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Yusril A. P.",
"email": "yusriladr.37@gmail.com",
"phone_number": "08123456789",
"password": "rahasia123!"
}'
Response Response Example
{
"status_code": 200,
"data": {
"id": "3a09f5fc-0878-4d07-9a97-0feb4ff4c9bb",
"name": "yusril-adr",
"email": "yusriladr.37@gmail.com",
"phone_number": "08123456789",
"created_at": "2025-02-07T09:16:35.207Z",
"updated_at": "2025-02-07T02:16:35.290Z",
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjNhMDlmNWZjLTA4NzgtNGQwNy05YTk3LTBmZWI0ZmY0YzliYiIsImlhdCI6MTczODkyMDE1MiwiZXhwIjoxNzM5MDA2NTUyfQ.SZv0tnbEDhd8c1wBf2aA6uV2iosWIzFj-Zpm3hcvO5Y",
"access_token_expired_at": "2025-02-08T09:22:32.270Z",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjNhMDlmNWZjLTA4NzgtNGQwNy05YTk3LTBmZWI0ZmY0YzliYiIsImlhdCI6MTczODkyMDE1MiwiZXhwIjoxNzM5NTI0OTUyfQ.Nl8P_o613YdqDeadIcDwbiKx-jRomebTFawvVcTtTK0",
"refresh_token_expired_at": "2025-02-14T09:22:32.272Z"
},
"message": "Register User successfully"
}
Request
Body Params application/json
Responses
Modified at 2025-03-25 08:04:04