ConsistlyAPI
OAuth applications

Register a new OAuth application

Issues a `client_id` and a `client_secret`. The token exchange endpoint is not yet available — registrations created today will become usable when the authorization-code grant ships in a later release.

POST
/oauth_applications
AuthorizationBearer <token>

Bearer API key in the form sk_live_…, sk_test_…, or pk_live_…. Keys are issued from the Consistly dashboard and carry product-prefixed scopes.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/oauth_applications" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "redirect_uris": [      "http://example.com"    ],    "requested_scopes": [      "platform:read"    ]  }'
{  "id": "string",  "object": "oauth_application",  "organization": "string",  "name": "string",  "description": "string",  "client_id": "string",  "client_secret_last_four": "string",  "redirect_uris": [    "http://example.com"  ],  "requested_scopes": [    "string"  ],  "status": "active",  "livemode": true,  "metadata": {    "property1": "string",    "property2": "string"  },  "created_by": "string",  "created": "2019-08-24T14:15:22Z",  "updated": "2019-08-24T14:15:22Z",  "client_secret": "string"}