API Reference
Auth
Sign-in, refresh and session flows (session only).
/api/v1/console/auth/activateRedeem an invitation code, set the password it unlocks, and come back signed in
Anonymous of necessity: the invitee holds no token and no password, so the six emailed digits are the only credential that could authenticate this call.
- Auth
- No credential needed.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"email": "string",
"code": "string",
"password": "string",
"deviceId": "string",
"deviceName": "string"
}| email string | — |
| code string | The six digits from the invitation email, and nothing else — see the validator. |
| password string | The password being set. Held to the same `PasswordPolicy` as every other creation path, because this is a creation path — the placeholder it replaces was never a password. |
| deviceId string | A stable device identifier, so an offline device's session can be recognised. |
| deviceName string | Optional, at most 100 characters: a label for the device in the session list. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/auth/activate" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"email": "string",
"code": "string",
"password": "string",
"deviceId": "string",
"deviceName": "string"
}'Request body (JSON)
Headers
/api/v1/console/auth/change-email/cancel JWTAbandon the pending change; both codes stop working at once
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"requestId": "00000000-0000-0000-0000-000000000000"
}| requestId string (uuid) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/auth/change-email/cancel" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"requestId": "00000000-0000-0000-0000-000000000000"
}'Request body (JSON)
Headers
/api/v1/console/auth/change-email/resend JWTMail a fresh code to the old or the new address
Throttled per address.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"requestId": "00000000-0000-0000-0000-000000000000",
"target": "string"
}| requestId string (uuid) | — |
| target string | `old` or `new` — see `EmailChangeTargets`. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/auth/change-email/resend" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"requestId": "00000000-0000-0000-0000-000000000000",
"target": "string"
}'Request body (JSON)
Headers
/api/v1/console/auth/change-email/start JWTCreate start
Begin changing one's own sign-in address: checks the current password, then mails a code to the current address and one to the new address. The answer is the same whether or not the new address is free.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"newEmail": "string",
"currentPassword": "string"
}| newEmail string | — |
| currentPassword string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/auth/change-email/start" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"newEmail": "string",
"currentPassword": "string"
}'Request body (JSON)
Headers
/api/v1/console/auth/change-email/verify JWTRedeem both codes together and move the address
Signs out every session, this one included — the change-password policy.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"requestId": "00000000-0000-0000-0000-000000000000",
"oldCode": "string",
"newCode": "string"
}| requestId string (uuid) | — |
| oldCode string | The code mailed to the current (old) address. |
| newCode string | The code mailed to the requested (new) address. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/auth/change-email/verify" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"requestId": "00000000-0000-0000-0000-000000000000",
"oldCode": "string",
"newCode": "string"
}'Request body (JSON)
Headers
/api/v1/console/auth/change-password JWTChange one's own password
Invalidates every other session.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"currentPassword": "string",
"newPassword": "string"
}| currentPassword string | — |
| newPassword string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/auth/change-password" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"currentPassword": "string",
"newPassword": "string"
}'Request body (JSON)
Headers
/api/v1/console/auth/loginSign in
- Auth
- No credential needed.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"email": "string",
"password": "string",
"branchId": "00000000-0000-0000-0000-000000000000",
"deviceId": "string",
"deviceName": "string"
}| email string | — |
| password string | — |
| branchId string (uuid) | Optional. The branch to make active on sign-in; ignored when the user is not a member of it. A preference, never a grant. |
| deviceId string | A stable device identifier, so an offline device's session can be recognised. |
| deviceName string | Optional, at most 100 characters: a label for the device (`"Galaxy Tab A7"`) shown in the owner's session list. Platform tier; not in the SRS (staff-app contract §3.3). |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/auth/login" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"email": "string",
"password": "string",
"branchId": "00000000-0000-0000-0000-000000000000",
"deviceId": "string",
"deviceName": "string"
}'Request body (JSON)
Headers
/api/v1/console/auth/logoutSign out
With a live access token and the refresh token in the body: this device only (its session is revoked; staff-app contract). With a live access token and no body, a cookie-sourced token, or `{ "everywhere": true }`: every device (the session version is bumped and every refresh token revoked). Anonymous is allowed so that a client whose access token has lapsed can still end its session: it presents the refresh token (body or cookie) and that session's family is revoked. The refresh cookie, when on, is always cleared.
- Auth
- No credential needed.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"refreshToken": "string",
"everywhere": false
}| refreshToken string | — |
| everywhere boolean | True: end every session of this account, whatever else the body carries. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/auth/logout" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"refreshToken": "string",
"everywhere": false
}'Request body (JSON)
Headers
/api/v1/console/auth/me JWTThe authoritative answer to "who am I and what may I do"
The dashboard calls it after sign-in and after any role change, because the token deliberately does not carry the capability list.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/auth/me" \
-H "X-Api-Key: <YOUR_API_KEY>"Headers
/api/v1/console/auth/password/forgotAsk for a password-reset code
Anonymous of necessity — the caller has lost the password — and answers identically whether or not the address has an account.
- Auth
- No credential needed.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"email": "string"
}| email string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/auth/password/forgot" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"email": "string"
}'Request body (JSON)
Headers
/api/v1/console/auth/password/resetRedeem a password-reset code and set a new password
Signs out every session.
- Auth
- No credential needed.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"email": "string",
"code": "string",
"password": "string"
}| email string | — |
| code string | The six digits from the reset email. |
| password string | The new password, held to the same `PasswordPolicy` as every other path. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/auth/password/reset" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"email": "string",
"code": "string",
"password": "string"
}'Request body (JSON)
Headers
/api/v1/console/auth/refreshExchange a refresh token for a new pair
The presented token is consumed: it works once, and a second presentation revokes the whole session (reuse detection). With the refresh cookie on, the token may come from the cookie instead of the body, and then the request's Origin must be an allowed one.
- Auth
- No credential needed.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"refreshToken": "string"
}| refreshToken string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/auth/refresh" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"refreshToken": "string"
}'Request body (JSON)
Headers
/api/v1/console/auth/register/startBegin public self-registration
Creates nothing — it parks the signup and emails a code, so that typing a stranger's address cannot put a company in their name.
- Auth
- No credential needed.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"organizationName": "string",
"branchName": "string",
"baseCurrencyCode": "string",
"ownerName": "string",
"email": "string"
}| organizationName string | — |
| branchName string | — |
| baseCurrencyCode string | The first branch's <b>functional</b> currency. Defaulted rather than required, because an install of Panoptes in Iraq has one answer and asking a stranger for it on the first screen of a signup is friction that buys nothing. Whether the code names an active currency row is still decided during provisioning, which is the only place that catalogue is known — spelling the field exactly as `CreateInitialOwnerRequest` does is what makes that one validation error land on the right control on either form. |
| ownerName string | — |
| email string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/auth/register/start" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"organizationName": "string",
"branchName": "string",
"baseCurrencyCode": "string",
"ownerName": "string",
"email": "string"
}'Request body (JSON)
Headers
/api/v1/console/auth/register/verifyCreate verify
Finish public self-registration: redeem the code, provision the tenant, return the new owner signed in on it.
- Auth
- No credential needed.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"email": "string",
"code": "string",
"password": "string",
"deviceId": "string",
"deviceName": "string"
}| email string | — |
| code string | The six digits from the confirmation email. |
| password string | The new owner's password. Hashed during provisioning and never stored or logged. |
| deviceId string | A stable device identifier, so an offline device's session can be recognised. |
| deviceName string | Optional, at most 100 characters: a label for the device in the session list. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/auth/register/verify" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"email": "string",
"code": "string",
"password": "string",
"deviceId": "string",
"deviceName": "string"
}'Request body (JSON)
Headers
/api/v1/console/auth/switch-branch JWTSwitch the active branch
A preference, not a power change: it rejects a branch the user is not a member of and does not require a new token.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"branchId": "00000000-0000-0000-0000-000000000000"
}| branchId string (uuid) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/auth/switch-branch" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"branchId": "00000000-0000-0000-0000-000000000000"
}'Request body (JSON)
Headers
/api/v1/console/auth/verification/resendAsk for another code, for either onboarding flow
Capped per client IP per hour (Panoptes.Api.Hosting.CodeSendRateLimitAttribute), with a sixty-second floor per address in the verification service — a public resend without both is a mail cannon.
- Auth
- No credential needed.
- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Request body
{
"email": "string",
"purpose": "string"
}| email string | — |
| purpose string | One of `VerificationPurposes`. An unknown value is refused at the boundary. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/auth/verification/resend" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"email": "string",
"purpose": "string"
}'Request body (JSON)
Headers