Skip to content

Mint a token with the password

POST
/session/password.json
curl --request POST \
--url https://your-board.mudda.today/session/password.json \
--header 'Content-Type: application/json' \
--data '{ "email_address": "you@example.com", "password": "correct horse battery staple", "label": "claude", "scopes": [ "read", "write" ] }'

Signs in with the owner’s email and password and mints a token, valid for 90 days. label names it (default json-sign-in); a label holds one live token, so give every client its own. scopes (a string or list) defaults to read write. The credentials may also be wrapped in session. Rate limited to 10 attempts every 3 minutes per IP.

Media typeapplication/json
object
email_address
required
string format: email
password
required
string
label
string
default: json-sign-in
scopes
One of:
string

Example

{
"email_address": "you@example.com",
"password": "correct horse battery staple",
"label": "claude",
"scopes": [
"read",
"write"
]
}

The new token.

Media typeapplication/json
object
session_token
required
string
scopes
required
Array<string>
Allowed values: read write delete

Example

{
"session_token": "eyJfcmFpbHMiOnsi…",
"scopes": [
"read",
"write"
]
}

No credential, or a revoked or expired token.

Media typeapplication/json

Every failure’s envelope. request_id matches the X-Request-Id header.

object
errors
required

Messages keyed by field; base when no field is to blame.

object
key
additional properties
Array<string>
request_id
string

Example

{
"errors": {
"base": [
"Unauthorized"
]
},
"request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"
}

Validation failed, a query parameter isn’t recognised, or a filter value is outside its list.

Media typeapplication/json

Every failure’s envelope. request_id matches the X-Request-Id header.

object
errors
required

Messages keyed by field; base when no field is to blame.

object
key
additional properties
Array<string>
request_id
string

Example

{
"errors": {
"due_on": [
"can't be blank in Todo or Doing"
]
},
"request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"
}

Too many sign-in attempts (10 in 3 minutes); try again later.

Media typeapplication/json

Every failure’s envelope. request_id matches the X-Request-Id header.

object
errors
required

Messages keyed by field; base when no field is to blame.

object
key
additional properties
Array<string>
request_id
string

Example

{
"errors": {
"base": [
"Try again later."
]
},
"request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"
}