latestOpenAPI 3.1.02026-08-20118232229.3 KB

0e42b0fb26d9

Create session

Create a new session and return it.

post/session

Request body

$schemastring uri

A URL to the JSON Schema for this object.

codestring

One-time password verification code for two-factor authentication. If the user has two-factor authentication enabled, this code is required to log in.

passwordstring required
usernamestring required

Example request

{
  "$schema": "https://api.tower.dev/v1/schemas/CreateSessionParams.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

Example response

{
  "$schema": "https://api.tower.dev/v1/schemas/CreateSessionResponse.json"
}