Skip to content
Skip to Content
Coder Docs

Log in user

POST
/api/v2/users/login

Request Body

Login request

application/json
  1. body
email*string
Formatemail
password*string

Response Body

Created

application/json
  1. response
session_token*string

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X POST \	"$CODER_URL/api/v2/users/login" \	-H "Content-Type: application/json" \	-d '{  "email": "[email protected]",  "password": "string"}'
Example Response201
{  "session_token": "string"}