Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Login

Password-based login

post

Starts a session given a username/password and puts it into a cookie.

Body

Bundles a username/password for authentication purposes.

usernamestringRequired
passwordstring · passwordRequired
redirection_tokenstringOptional
Responses
200

Happy response.

application/json

Contains the response for successful login.

redir_tostringOptional

Optionally contains a relative URL (path, query) where to redirect to. One application of this property is resuming an OAuth2 authorization flow.

post/api/v1/login
POST /api/v1/login HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 68

{
  "username": "text",
  "password": "password",
  "redirection_token": "text"
}
{
  "redir_to": "text"
}

Last updated

Was this helpful?