P
PlanetScale API
Details
- URL
-
https://api.planetscale.com/v1 - Spec
- https://planetscale.com/docs/openapi.yaml
- Docs
- https://planetscale.com/docs/api/reference/getting-started-with-planetscale-api
Authentication
Authorization: <SERVICE_TOKEN_ID>:<SERVICE_TOKEN> <credential> In the PlanetScale dashboard, open Settings → Service tokens, click New service token, name it, and create it. Copy both the service token ID and the service token secret when shown; the secret is only shown once. Then grant the needed organization/database permissions on that token's settings page.
PlanetScale OAuth application (client ID + client secret) oauth2 discovered
Authorization: Bearer <credential> To create an OAuth app, log into your PlanetScale organization and open Settings → OAuth applications as described in the OAuth docs. Click Create new application, fill in the app name, domain, and redirect URI, then save it. Copy the app ID, Client ID, Redirect URL, and Client secret when shown; the client secret is only shown once. Select the access scopes your integration needs.