List service grants
The connected services of the organization's projects, revoked ones included, newest first.
GET/v1/service-grants
The connected services of the organization's projects, revoked ones included, newest first. A key sees only its own project's grants of its own mode. Never answers a secret.
A key with the keys:write scope.
Request
curl "https://api.pod.mapier.ai/v1/service-grants" \
-H "Authorization: Bearer $POD_API_KEY"Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
project | query | string | No | |
limit | query | integer | No | |
cursor | query | string | No | The next_cursor of the page before. Valid for 24 hours. |
Answer
200. A page of service grants, newest first.
{
"data": [
{
"id": "sgr_3ahrz6dmv29gqy5ckt18fp",
"project": "prj_3ahrz6dmv29gqy5ckt18fp",
"service": "pod-ci",
"mode": "test",
"key": "key_3ahrz6dmv29gqy5ckt18fp",
"billing_mark": "example",
"scopes": ["sandboxes:read"],
"granted_by": "example",
"created_at": "2026-11-23T12:00:00.000Z",
"revoked_at": null
}
],
"next_cursor": null
}| Field | Type | Always | What it is |
|---|---|---|---|
data | ServiceGrant[] | Yes | |
next_cursor | string | null | Yes |
Errors
The refusals this call is known for: invalid, 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.serviceGrants.list() |
| Python | pod.service_grants.list() |