List platform credentials

View .md

List the platform app credentials saved in Dravo.


Each credential set shows the redirect_uri you must register in the platform developer console, the scopes Dravo will request, and the allowlisted allowed_return_urls. Secrets are never returned.

GET/v1/oauth-apps
API key (dra_…) or dashboard JWT

List saved platform credentials. Includes the redirect_uri to register, scopes Dravo will request, and allowed_return_urls.

Authorizationstringheaderrequired

Bearer token. Use a Dravo API key (`dra_…`) or a dashboard JWT.

platformstringquery

Filter by platform.

idstring

OAuth app id.

platformstring

Platform this app authenticates.

namestring

Label you gave this app.

client_idstringoptional

Your platform app client id.

redirect_uristring

Backend callback to register on your platform app.

scopesstring[]

Scopes Dravo will request.

allowed_return_urlsstring[]

Allowlisted return URLs for the Connect flow.

const response = await fetch("https://api.dravo.dev/v1/oauth-apps", {  method: "GET",  headers: {  "Authorization": "Bearer " + process.env.DRAVO_API_KEY,}});const data = await response.json();console.log(data);
[  {    "id": "oa_1",    "platform": "x",    "name": "My X App",    "client_id": "…",    "redirect_uri": "https://api.dravo.dev/v1/oauth/x/callback",    "scopes": [      "tweet.write",      "tweet.read",      "users.read",      "offline.access",      "media.write"    ],    "allowed_return_urls": [      "https://app.acme.com/connect"    ]  }]