Skip to content

Sign in

POST
/api/v1/auth/login
curl --request POST \
--url https://app.monitorly.cloud/api/v1/auth/login \
--header 'Content-Type: application/json' \
--data '{ "email": "example", "password": "example" }'

Signs in with email and password and sets the session cookie. An account with two-factor sign-in gets a pending session for the second step, Sign in with a code.

  • None
Media typeapplication/json
object
email
required
string
password
required
string

Example generated

{
"email": "example",
"password": "example"
}

Signed in, or a second step is needed.

Media typeapplication/json
object
session
One of:
object
user
required
object
displayName
required
string
email
required
string
emailVerified
required

The email was confirmed by the link from the sign-up email (accounts made by the CLI or an invite are confirmed). Unconfirmed accounts can sign in but change nothing in a workspace.

boolean
hasPassword

The account has a password (one made by Google or GitHub has none until a reset link sets it). Always sent; optional in the schema because it came after the first clients (2026-11-15).

boolean
id
required
string format: uuid
identities

The Google and GitHub accounts linked for sign-in. Always sent, like hasPassword.

Array<object>
object
createdAt
required
string
email

The provider’s confirmed address at the last sign-in.

string | null
provider
required

google or github.

string
installationOwner
required
boolean
termsAcceptedAt
string | null
termsRequired

A Google or GitHub sign-in made this account and nobody accepted the Terms yet: the dashboard asks first (POST /me/terms). Always sent.

boolean
termsVersion

The version of the Terms and Privacy Policy the account accepted, and when (null for accounts made before 2026-11-17, which are not asked). Always sent, like hasPassword.

string | null
totpEnabled
required
boolean
workspaces
required
Array<object>
object
id
required
string format: uuid
name
required
string
role
required
string
Allowed values: member admin owner
totpRequired
required

The password was right and the account has TOTP: send the code to /api/v1/auth/login/totp.

boolean

Example

{
"session": {
"user": {
"id": "ID"
},
"workspaces": [
{
"id": "ID",
"role": "member"
}
]
}
}

Bad Request.

  • request.malformed: the body or a parameter is not of the expected shape
  • auth.credentials_conflict: the request carries both a session cookie and a token
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Unauthorized.

  • token.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
  • auth.invalid_credentials: wrong email or password
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Forbidden.

  • request.origin_mismatch, request.header_required: a changing request with a session comes from another site or lacks X-Monitorly-Request: 1
  • auth.account_unavailable: the account cannot sign in: it is blocked or was deleted. A deleted account can be restored by support within 30 days
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Payload Too Large.

  • request.too_large: the body is larger than 256 KiB
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Unprocessable Entity.

  • field.required, field.too_long, field.invalid: a field breaks a rule; errors points at it
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Too Many Requests.

  • auth.rate_limited: too many failed attempts; Retry-After in seconds
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}
Retry-After
integer
>= 1

Seconds to wait before trying again.