API Reference

Auth

Sign-in, refresh and session flows (session only).

16 endpoints· Auth: JWT
post/api/v1/console/auth/activate

Redeem 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

application/json
{
  "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

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/auth/change-email/cancel JWT

Abandon 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

application/json
{
  "requestId": "00000000-0000-0000-0000-000000000000"
}
requestId
string (uuid)
—

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
post/api/v1/console/auth/change-email/resend JWT

Mail 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

application/json
{
  "requestId": "00000000-0000-0000-0000-000000000000",
  "target": "string"
}
requestId
string (uuid)
—
target
string
`old` or `new` — see `EmailChangeTargets`.

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
post/api/v1/console/auth/change-email/start JWT

Create 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

application/json
{
  "newEmail": "string",
  "currentPassword": "string"
}
newEmail
string
—
currentPassword
string
—

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
post/api/v1/console/auth/change-email/verify JWT

Redeem 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

application/json
{
  "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

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
post/api/v1/console/auth/change-password JWT

Change 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

application/json
{
  "currentPassword": "string",
  "newPassword": "string"
}
currentPassword
string
—
newPassword
string
—

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
post/api/v1/console/auth/login

Sign in

Auth
No credential needed.
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.

Request body

application/json
{
  "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

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/auth/logout

Sign 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

application/json
{
  "refreshToken": "string",
  "everywhere": false
}
refreshToken
string
—
everywhere
boolean
True: end every session of this account, whatever else the body carries.

Responses

200Success
cURL
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
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/auth/me JWT

The 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

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/auth/me" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
post/api/v1/console/auth/password/forgot

Ask 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

application/json
{
  "email": "string"
}
email
string
—

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/auth/password/reset

Redeem 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

application/json
{
  "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

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/auth/refresh

Exchange 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

application/json
{
  "refreshToken": "string"
}
refreshToken
string
—

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/auth/register/start

Begin 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

application/json
{
  "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

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/auth/register/verify

Create 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

application/json
{
  "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

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/auth/switch-branch JWT

Switch 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

application/json
{
  "branchId": "00000000-0000-0000-0000-000000000000"
}
branchId
string (uuid)
—

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
post/api/v1/console/auth/verification/resend

Ask 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

application/json
{
  "email": "string",
  "purpose": "string"
}
email
string
—
purpose
string
One of `VerificationPurposes`. An unknown value is refused at the boundary.

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu