List the scope presets for a new key

Ready-made scope sets for a new key: `read_only`, `full_sandbox`, `ci` and `admin`.

GET/v1/scope-presets

Ready-made scope sets for a new key: read_only, full_sandbox, ci and admin. A preset only fills in scopes on createKey; the key keeps its scopes, never the preset's name.

A key with the members:read scope.

Request

curl "https://api.pod.mapier.ai/v1/scope-presets" \
  -H "Authorization: Bearer $POD_API_KEY"

Answer

200. The presets.

200
{
  "data": [
    {
      "name": "read_only",
      "title": "example",
      "description": "example",
      "scopes": ["sandboxes:read"]
    }
  ],
  "next_cursor": null
}
FieldTypeAlwaysWhat it is
dataScopePreset[]Yes
next_cursornullYes

Errors

The refusals this call is known for: forbidden. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.

In the SDKs

ClientCall
TypeScriptpod.keys.presets()
Pythonpod.keys.presets()