GET
/
organizations
/
{organization}
/
oauth-applications
/
{application_id}
Get an OAuth application
curl --request GET \
  --url https://api.planetscale.com/v1/organizations/{organization}/oauth-applications/{application_id} \
  --header 'Authorization: <api-key>'
{
  "id": "<string>",
  "name": "<string>",
  "redirect_uri": "<string>",
  "domain": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "scopes": [
    "<string>"
  ],
  "avatar": "<string>",
  "client_id": "<string>",
  "tokens": 123
}

Authorizations

Authorization
string
header
required

Path Parameters

organization
string
required

The name of the organization the OAuth application belongs to

application_id
string
required

The ID of the OAuth application

Response

Returns information abuot an OAuth application

id
string
required

The ID of the app

name
string
required

The name of the app

redirect_uri
string
required

The redirect URI of the OAuth application

domain
string
required

The domain of the OAuth application. Used for verification of a valid redirect uri

created_at
string
required

When the OAuth application was created

updated_at
string
required

When the OAuth application was last updated

scopes
string[]
required

The scopes that the OAuth application requires on a user account

avatar
string
required

The image source for the OAuth application's avatar

client_id
string
required

The OAuth application's unique client id

tokens
number
required

The number of tokens issued by the OAuth application