List approval requests

Waiting Asks oldest first, or answered and ended ones newest first.

GET/v1/asks

Waiting Asks oldest first, or answered and ended ones newest first. The same question from many sandboxes under one policy is one Ask, with the sandboxes listed. A person named as an approver is shown at most 10 waiting Asks at once, oldest first, and none while they have given 30 answers in the last hour; approver says so.

A key with the permissions:read scope.

Request

curl "https://api.pod.mapier.ai/v1/asks?project=example" \
  -H "Authorization: Bearer $POD_API_KEY"

Parameters

NameInTypeRequiredWhat it is
projectquerystringYesThe project the call is about. Every route is scoped to one.
Pod-OrganisationheaderstringNoThe organization, for a person who belongs to several. An API key's organization is its own, and a different one here is forbidden.
statequery"waiting" | "answered"Nowaiting, or answered for those answered or expired.
kindquery"permission" | "spend"Nopermission or spend; absent for both.
limitqueryintegerNo
cursorquerystringNoThe next_cursor of the page before. Valid for 24 hours.

Answer

200. A page of Asks.

200
{
  "data": [
    {
      "id": "example",
      "kind": "permission",
      "spend": null,
      "state": "waiting",
      "opened_at": "2026-11-23T12:00:00.000Z",
      "expires_at": "2026-11-23T12:00:00.000Z",
      "sandboxes": ["example"],
      "end_user": null,
      "policy": "example",
      "rule": "example",
      "request": {
        "action": "read",
        "method": null,
        "address": "example",
        "bytes": null,
        "content_type": null,
        "tool": null
      },
      "claimed_reason": null,
      "allows": {
        "allow_once": "example",
        "allow_for_time": "example",
        "deny": "example"
      },
      "policy_cap_s": null,
      "answer": null,
      "grants": [
        {
          "sandbox": "example",
          "state": "waiting_to_apply"
        }
      ]
    }
  ],
  "next_cursor": null,
  "approver": null
}
FieldTypeAlwaysWhat it is
dataAsk[]Yes
next_cursorstring | nullYes
approverAskApproverView | nullNoFor a person named as an approver listing waiting Asks; null for anyone else.

Errors

The refusals this call is known for: invalid, unauthorized, 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.