Authentication

post

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

Authorizations
Body

Bundles a username/password for authentication purposes.

usernamestringRequired
passwordstringRequired
Responses
post
POST /api/v1/login HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 37

{
  "username": "text",
  "password": "text"
}
204

Happy response. A set-cookie header will be present.

No content

Last updated

Was this helpful?