Mint a token with the password
const url = 'https://your-board.mudda.today/session/password.json';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email_address":"you@example.com","password":"correct horse battery staple","label":"claude","scopes":["read","write"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example
{ "email_address": "you@example.com", "password": "correct horse battery staple", "label": "claude", "scopes": [ "read", "write" ]}Responses
Section titled “Responses”The new token.
object
Example
{ "session_token": "eyJfcmFpbHMiOnsi…", "scopes": [ "read", "write" ]}No credential, or a revoked or expired token.
Every failure’s envelope. request_id matches the X-Request-Id header.
object
Messages keyed by field; base when no field is to blame.
object
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.
Every failure’s envelope. request_id matches the X-Request-Id header.
object
Messages keyed by field; base when no field is to blame.
object
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.
Every failure’s envelope. request_id matches the X-Request-Id header.
object
Messages keyed by field; base when no field is to blame.
object
Example
{ "errors": { "base": [ "Try again later." ] }, "request_id": "5f0c1e9a-2b7d-4c1e-9a63-0e4f8d2b1c55"}