Storyden
Auth

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.

POST/auth/oauth/clients
storyden-session<token>

In: cookie

Request Body

application/json

name*string
redirect_uris?array<>
allowed_scopes*array<>

Response Body

application/json

application/json

curl -X POST "https://loading/api/auth/oauth/clients" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "allowed_scopes": [      "string"    ]  }'
{
  "client": {
    "id": "cc5lnd2s1s4652adtu50",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "account_id": "cc5lnd2s1s4652adtu50",
    "client_id": "string",
    "name": "string",
    "type": "public",
    "scope_policy": "explicit",
    "redirect_uris": [
      "http://example.com"
    ],
    "allowed_scopes": [
      "string"
    ],
    "allowed_grants": [
      "string"
    ]
  },
  "client_secret": "string"
}
Empty
Empty
Empty
{
  "error": "string",
  "message": "string",
  "suggested": "string",
  "metadata": {}
}