API Reference
OAuth Clients
Register OAuth clients (session only).
/api/v1/console/developers/oauth-clients JWTThe 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_apimust 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
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/developers/oauth-clients" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/developers/oauth-clients JWTRegister 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_apimust be on the branch's plan, or the call answers 403.
Request body
{
"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
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"
]
}'Request body (JSON)
Headers
/api/v1/console/developers/oauth-clients/{id}/revoke JWTRetire 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_apimust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | Required. A credential retirement with no stated reason is unreadable a year later, which is when it is read. |
Responses
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"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/developers/oauth-connections JWTGet 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_apimust be on the branch's plan, or the call answers 403.
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/developers/oauth-connections" \
-H "X-Api-Key: <YOUR_API_KEY>"Headers
/api/v1/console/developers/oauth-connections/revoke JWTDisconnect 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_apimust be on the branch's plan, or the call answers 403.
Request body
{
"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
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"
}'Request body (JSON)
Headers
/api/v1/console/oauth/connections JWTThe 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
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/oauth/connections" \
-H "X-Api-Key: <YOUR_API_KEY>"Headers
/api/v1/console/oauth/connections/revoke JWTDisconnect 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
{
"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
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"
}'Request body (JSON)
Headers
/api/v1/console/oauth/consent JWTApprove 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
{
"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
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"
}'Request body (JSON)
Headers