Skip to main content
GET
/
organizations
/
{organization}
/
oauth-applications
List OAuth applications
curl --request GET \
  --url https://api.planetscale.com/v1/organizations/{organization}/oauth-applications \
  --header 'Authorization: Bearer <token>'
{
  "current_page": 123,
  "next_page": 123,
  "next_page_url": "<string>",
  "prev_page": 123,
  "prev_page_url": "<string>",
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "redirect_uri": "<string>",
      "domain": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>",
      "scopes": [
        "<string>"
      ],
      "avatar": "<string>",
      "client_id": "<string>",
      "tokens": 123,
      "dcr": true,
      "scopes_by_resource": {},
      "all_scopes_by_resource": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

organization
string
required

The name of the organization the OAuth applications belong to

Query Parameters

page
integer
default:1

If provided, specifies the page offset of returned results

per_page
integer
default:25

If provided, specifies the number of returned results

Response

Returns a list of the organization's oauth applications

current_page
integer
required

The current page number

next_page
integer
required

The next page number

next_page_url
string
required

The next page of results

prev_page
integer
required

The previous page number

prev_page_url
string
required

The previous page of results

data
object[]
required