POST
/v1/users/{user}/impersonate
curl \
--request POST 'https://classmanager.test/v1/users/usr_123123123/impersonate'
Response examples (200)
{
"user": {
"id": "usr_123123123123",
"firstname": "John",
"lastname": "Doe",
"email": "new Email(john@example.com)",
"phone": "+1 (123) xxx-xxxx",
"emailVerifiedAt": "2023-11-08 14:05:51"
},
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9"
}
Response examples (404)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}