Generate session
POST/sessions
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
Header Parameters
channel stringrequired
Example: <string>
Content-Type stringrequired
Example: application/x-www-form-urlencoded
Accept stringrequired
Example: application/json
- application/x-www-form-urlencoded
Body
password stringrequired
Seconds of validity for the token
Example:
daDFg3432r34
user_id string
Id of user to generate session
Example:
423432
expiration string
Validity of session in seconds
Example:
60
client_user_id string
Pass a custom id
Example:
custom_id_1234
Responses
- 200
- 400
- 404
Response Headers
- application/json
- Schema
- Example (from schema)
- 1
Schema
status stringrequired
auth_token stringrequired
redirect stringrequired
email stringrequired
id stringrequired
{
"status": "string",
"auth_token": "string",
"redirect": "string",
"email": "string",
"id": "string"
}
OK
{
"status": "<string>",
"auth_token": "<string>",
"redirect": "<string>",
"email": "<string>",
"id": "<string>"
}
Response Headers
- */*
- Schema
- Example (from schema)
- 1
Schema
object
{}
Bad Request
<string>
Response Headers
- */*
- Schema
- Example (from schema)
- 1
Schema
object
{}
Not Found
<string>
Loading...