Run in Apidog
Endpoint to authenticate user into a specific channel (login). Authentication can be done with email and password directly from your users (by using the channel token) or with API key you can specify a specific user ID to build a session.
Request Add parameter in header Authorization
Example: Authorization: ********************
Body Params application/x-www-form-urlencoded
Request samples curl --location --request POST '/sessions' \
--header 'channel: <string>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization;' \
--data-urlencode 'email=jackblack@mail.com' \
--data-urlencode 'password=daDFg3432r34' \
--data-urlencode 'user_id=423432' \
--data-urlencode 'expiration=60' \
--data-urlencode 'client_user_id=custom_id_1234'
Responses application/json Generate Code
{
"status" : "<string>" ,
"auth_token" : "<string>" ,
"redirect" : "<string>" ,
"email" : "<string>" ,
"id" : "<string>"
}
Modified at 2024-09-04 17:30:47