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.
{
"data": [
{
"name": "read_only",
"title": "example",
"description": "example",
"scopes": ["sandboxes:read"]
}
],
"next_cursor": null
}| Field | Type | Always | What it is |
|---|---|---|---|
data | ScopePreset[] | Yes | |
next_cursor | null | Yes |
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
| Client | Call |
|---|---|
| TypeScript | pod.keys.presets() |
| Python | pod.keys.presets() |