API Reference

OAuth Clients

Register OAuth clients (session only).

8 endpoints· Auth: JWT
get/api/v1/console/developers/oauth-clients JWT

The branch's registered clients

Capability
manage_api_keys
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.
Plan feature
public_api must be on the branch's plan, or the call answers 403.

Query parameters

IncludeRevoked
boolean
Include retired clients. A tombstoned client authorizes nothing either way; this only decides whether the console can still see that it existed.
Page
integer (int32)
—
PerPage
integer (int32)
—
Search
string
Free-text filter. Its meaning is per-resource and documented on the endpoint.
Skip
integer (int32)
Rows to skip, derived — never sent by the caller on this surface.
Sort
string
A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order.
Dir
string
`asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort.

Responses

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

Query parameters

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/developers/oauth-clients JWT

Register a client.,

The response carries the client secret once. Only its bcrypt hash is stored, so there is no endpoint that can show it again — not for the owner, not for support. A partner that loses it registers a new client, which is the intended cost of not keeping a readable copy of a credential.

Capability
manage_api_keys
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.
Plan feature
public_api must be on the branch's plan, or the call answers 403.

Request body

application/json
{
  "name": "string",
  "redirectUris": [
    "string"
  ],
  "scopes": [
    "string"
  ]
}
name
string
Shown on the consent screen. This is the name a user decides to trust, so it is the one string in the registration that a human will actually read.
redirectUris
string[]
The exact redirect URIs this client may receive an authorization code at (FR-API-067). <br>Matched byte for byte at authorize time. Each must be absolute and `https`, with one carve-out for `http://localhost` and `http://127.0.0.1` so a partner can develop against the install without registering a public hostname.
scopes
string[]
The `ApiScopes` this client may ever be consented for. Unknown members are refused rather than dropped, so a typo cannot silently narrow a partner's integration.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/developers/oauth-clients" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "redirectUris": [
    "string"
  ],
  "scopes": [
    "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/developers/oauth-clients/{id}/revoke JWT

Retire a client and revoke every token it holds

Not a delete: a tombstone with a required reason, so the registration stays readable during the incident review that usually prompts the click.

Capability
manage_api_keys
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.
Plan feature
public_api must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "reason": "string"
}
reason
string
Required. A credential retirement with no stated reason is unreadable a year later, which is when it is read.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/developers/oauth-clients/{id}/revoke" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "reason": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

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
get/api/v1/console/developers/oauth-connections JWT

Get oauth-connections

Every live OAuth grant on the branch — registered clients and self-registered AI connectors alike — per user, with the consented scopes.,.

Capability
manage_api_keys
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.
Plan feature
public_api must be on the branch's plan, or the call answers 403.

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/developers/oauth-connections" \
  -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/developers/oauth-connections/revoke JWT

Disconnect one app from one user of the branch: every live token is revoked, audited

Capability
manage_api_keys
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.
Plan feature
public_api must be on the branch's plan, or the call answers 403.

Request body

application/json
{
  "clientId": "string",
  "userId": "00000000-0000-0000-0000-000000000000",
  "reason": "string"
}
clientId
string
—
userId
string (uuid)
—
reason
string
Why — recorded on the audit row. Required, at most 500 characters.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/developers/oauth-connections/revoke" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "clientId": "string",
  "userId": "00000000-0000-0000-0000-000000000000",
  "reason": "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
get/api/v1/console/oauth/connections JWT

The caller's own connected apps

No capability, for the reason consent has none: the grants are the user's own delegation, so seeing and withdrawing them is the user's own authority.

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/oauth/connections" \
  -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/oauth/connections/revoke JWT

Disconnect one of the caller's own apps

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

Request body

application/json
{
  "clientId": "string",
  "userId": "00000000-0000-0000-0000-000000000000",
  "reason": "string"
}
clientId
string
—
userId
string (uuid)
—
reason
string
Why — recorded on the audit row. Required, at most 500 characters.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/oauth/connections/revoke" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "clientId": "string",
  "userId": "00000000-0000-0000-0000-000000000000",
  "reason": "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/oauth/consent JWT

Approve a consent and mint the authorization code.,

No `[HasCapability]`, deliberately. gates this on "an authenticated in-app session", not on a capability, and that is the correct rule: consenting is an act of the user's own authority — the resulting token can do exactly what its user's role can do and no more — so any signed-in member of the client's branch may approve one, and a capability check here would only decide who is allowed to delegate powers they already hold. The pipeline still refuses an unauthenticated caller, and the service refuses a machine credential and any user who is not a member of the client's branch.

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

Request body

application/json
{
  "clientId": "string",
  "redirectUri": "string",
  "scope": "string",
  "state": "string",
  "codeChallenge": "string",
  "codeChallengeMethod": "string"
}
clientId
string
—
redirectUri
string
—
scope
string
The scopes as they were requested. Re-intersected server-side, never trusted.
state
string
—
codeChallenge
string
—
codeChallengeMethod
string
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/oauth/consent" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "clientId": "string",
  "redirectUri": "string",
  "scope": "string",
  "state": "string",
  "codeChallenge": "string",
  "codeChallengeMethod": "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