Skip to content
English

Exchange a link for a session

POST/v1/auth/login-link/consume

For the adapt-mail.com sign-in page only: POST with Origin: https://adapt-mail.com. Returns session_id and HttpOnly cookies. Reused or expired link: HTTP 410.

Authentication and access · Errors and retries

Request

Terminal window
curl -X POST 'https://adapt-mail.com/v1/auth/login-link/consume' \
-H 'Origin: https://adapt-mail.com' \
-c cookies.txt \
-H 'Content-Type: application/json' \
--data '{"token":"<token>"}'

Request body · application/json

object

tokenNecessarily

string

pattern: "^[A-Za-z0-9_-]{43}$"

Unknown fields are not accepted.

Responses

200 Successful response

application/json

object

mailbox_idNecessarily
Option 1

integer

Option 2

null

session_idNecessarily

string

Unknown fields are not accepted.

403 Request error

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Array elements

object

404 Request error

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Array elements

object

409 Request error

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Array elements

object

410 Request error

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Array elements

object

422 Request error

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Array elements

object

429 Request error

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Array elements

object

503 Request error

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Array elements

object