Skip to main content
POST
/
api
/
v1
/
oauth-apps
Create OAuth app
curl --request POST \
  --url https://api.example.com/api/v1/oauth-apps \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "redirect_uris": [
    "<string>"
  ],
  "scopes": [
    "<string>"
  ]
}
'
{
  "app": {
    "client_id": "<string>",
    "client_secret_hint": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "id": "<string>",
    "is_active": true,
    "name": "<string>",
    "organization_id": "<string>",
    "redirect_uris": [
      "<string>"
    ],
    "scopes": [
      "<string>"
    ],
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "client_secret": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
redirect_uris
string[]
required
scopes
string[] | null

Response

OAuth app created

Result of creating an OAuth app (includes the plain-text secret)

app
object
required

An OAuth application registered by a platform

client_secret
string
required