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

NameInTypeRequiredWhat it is
projectquerystringNo
limitqueryintegerNo
cursorquerystringNoThe next_cursor of the page before. Valid for 24 hours.

Answer

200. A page of service grants, newest first.

200
{
  "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
}
FieldTypeAlwaysWhat it is
dataServiceGrant[]Yes
next_cursorstring | nullYes

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

ClientCall
TypeScriptpod.serviceGrants.list()
Pythonpod.service_grants.list()