Skip to main content

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

Body

    email stringrequired

    Email user

    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

Response Headers

    Schema

      status stringrequired
      auth_token stringrequired
      redirect stringrequired
      email stringrequired
      id stringrequired
    Loading...