Skip to content

Reference

API: App keys

Markdown version

MethodPathWhat it doesScope
POST/v1/app-keys/authorizeApprove an app's request for a key (the consent screen, web app only): returns where to send the browser back, with a one-time code (web app only)gateway:write
POST/v1/auth/keysExchange an approved code and its PKCE verifier for the user's key (once, within 10 minutes) (no sign-in)—

Examples

POST /v1/auth/keys

Exchange an approved code and its PKCE verifier for the user's key (once, within 10 minutes). No sign-in, so it sends no key.

curl -s -X POST "https://manage.restolayer.com/v1/auth/keys" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://manage.restolayer.com/v1/auth/keys`, {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

Request and response schemas: https://www.restolayer.com/openapi.json. All resources: API reference.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.