account api
create api keys at account. send Authorization: Bearer YOUR_KEY. browser requests use secure session cookies. mutations require an origin header matching the application origin; command-line clients must include it too. data belongs to the authenticated account. invalid credentials return 401; account outages return 503.
curl -H 'Authorization: Bearer YOUR_KEY' https://account.dorianmarie.com/api/identity
| method | path | purpose |
|---|---|---|
| get | /api | public application metadata |
| get | /api/identity | authenticated identity |
| get | /api/me | current browser account |
| get | /api/passkeys | list registered passkeys |
| get | /api/preferences | read account preferences |
| post | /api/preferences | update preferences: language, theme, timeFormat (24h/12h), weightUnit (kg/lb), temperatureUnit (celsius/fahrenheit) |
| get | /api/keys | list api key names and ids |
| post | /api/keys | create project-scoped key with {name,project,permission:read|write,days:1|7|30|90,confirmation}; token shown once |
| post | /api/keys/revoke | revoke owned key with {id} |
| post | /api/auth/confirm/password | confirm current password with {action,password}; returns a single-use confirmation for password, passkey, key, or revoke-all |
| post | /api/auth/confirm/passkey/options | begin existing-passkey confirmation with {action} |
| post | /api/auth/confirm/passkey | confirm existing passkey with {action,challengeId,credential} |
| post | /api/auth/password | change password with {password,confirmation}; revoke other sessions and api keys |
| post | /api/security/revoke-all | revoke sessions, keys, and passkeys with {confirmation} |
passkeys, settings, and key management require an account browser session; api keys cannot create further keys or change credentials.