Platform API reference

Platform API · Oauth-Authorization-Server

get/v1/oauth/register/{client_id}Auth

Read a client registration (RFC 7592)

Requires `Authorization: Bearer <registration_access_token>`. The token addresses exactly one registration; presenting it for a different `client_id` fails.

Path parameters

client_id*string

The `client_id` to read.

Response · 200

client_id*string

Example: "pcft_cli_2f5c..."

client_id_issued_at*number

Unix seconds at which the client_id was issued.

client_secret_expires_at*number

0 — the client secret does not expire on its own.

Example: 0

registration_client_uri*string

Endpoint the registration access token is used against.

redirect_uris*array
client_name*string
grant_types*array
response_types*array
token_endpoint_auth_method*string
scope*string
is_verified*boolean

Always false for a dynamically registered client. The consent screen shows this to the human.

Example: false

Example

Request

GET https://api.platform-auth.productcraft.co/v1/oauth/register/{client_id}
Authorization: Bearer YOUR_TOKEN

Response

{
  "client_id": "pcft_cli_2f5c...",
  "client_id_issued_at": 0,
  "client_secret_expires_at": 0,
  "registration_client_uri": "string",
  "redirect_uris": [
    "string"
  ],
  "client_name": "string",
  "grant_types": [
    "string"
  ],
  "response_types": [
    "string"
  ],
  "token_endpoint_auth_method": "string",
  "scope": "string",
  "is_verified": false
}