curl --request GET \
--url http://localhost:8000/api/v1/users/{user_id} \
--header 'Authorization: Bearer <token>'{
"id": 123,
"email": "[email protected]",
"profile": {
"first_name": "<string>",
"last_name": "<string>",
"phone_number": "<string>"
},
"is_google_recaptcha_response_valid": true
}Get a user by ID.
curl --request GET \
--url http://localhost:8000/api/v1/users/{user_id} \
--header 'Authorization: Bearer <token>'{
"id": 123,
"email": "[email protected]",
"profile": {
"first_name": "<string>",
"last_name": "<string>",
"phone_number": "<string>"
},
"is_google_recaptcha_response_valid": true
}The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response
The schema for a user.