O Auth Client Create
Create an OAuth client owned by the authenticated account. Member-created clients are third-party explicit-scope clients. The requested allowed scopes must be a subset of the authenticated account's current permissions.
Create an OAuth client owned by the authenticated account.
Member-created clients are third-party explicit-scope clients. The requested allowed scopes must be a subset of the authenticated account's current permissions.
browserstoryden-session<token>application/json- body
name*stringtype*OAuthClientType"public""confidential"redirect_uris?array<>allowed_scopes*array<string>allowed_grants*array<string>pkce_required*booleanOAuth client and one-time client secret.
application/json- response
client*client_secret?stringcurl -X POST 'https://example.com/api/auth/oauth/clients' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "type": "public", "allowed_scopes": [ "string" ], "allowed_grants": [ "string" ], "pkce_required": true}'{ "client": { "id": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "account_id": "string", "registration_approved_by_account_id": "string", "dcr_iat_id": "string", "client_id": "string", "name": "string", "type": "public", "scope_policy": "explicit", "redirect_uris": [ "http://example.com" ], "allowed_scopes": [ "string" ], "allowed_grants": [ "string" ] }, "client_secret": "string"}O Auth Authorise Consent Submit POST
Approve or deny a pending OAuth authorisation code request for the currently signed-in account. On approval this creates a short-lived authorisation code and returns the client redirect URI containing `code` and optional `state`. On denial the returned redirect URI contains `error=access_denied`. Storyden recomputes the granted scope at approval time from current account permissions and client policy. Accepts either a browser session or a personal access key.
O Auth Client Delete DELETE
Delete an OAuth client created by the authenticated account. This prevents new OAuth flows for the client and removes associated pending OAuth records and refresh tokens, preventing existing grants from being renewed. Existing JWT access tokens remain valid until expiry.