Decide many requests in one call (OpenID AuthZEN)

AuthZEN's access evaluations: up to 100 evaluations (a limit of ours), answered in order.

POST/v1/authzen/access/v1/evaluations

Not available yet Pod's API does not answer this call yet.

AuthZEN's access evaluations: up to 100 evaluations (a limit of ours), answered in order. A subject, action, resource or context at the top level is the default for every evaluation that leaves it out. options.evaluations_semantic is execute_all (the default), deny_on_first_deny (stop after the first false) or permit_on_first_permit (stop after the first true); a call that stops answers only the evaluations up to and including that one. An evaluation that cannot be read, or whose subject Pod cannot decide for, answers decision: false with context.error; the others are still decided. A body that is not the shape at all is invalid. With no evaluations, the call is one evaluation and answers as evaluateAccess does.

A key with the permissions:read scope.

Request

curl -X POST "https://api.pod.mapier.ai/v1/authzen/access/v1/evaluations?project=example" \
  -H "Authorization: Bearer $POD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"subject":{"type":"sandbox","id":"example"}}'

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.
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.
X-Request-IDheaderstringNoAuthZEN's request identifier. The answer carries the same value back.

Body

FieldTypeRequiredWhat it is
subjectAuthzenSubjectNoWhose table decides.
actionAuthzenActionNo
resourceAuthzenResourceNo
contextAuthzenContextNoPod decides at the time of the call with the stored table and reads no context; send none, or {}.
evaluationsAuthzenEvaluationItem[]No
optionsobjectNo

Answer

200. The decisions, in the order asked; or one decision, for a call with no evaluations.

200
{
  "evaluations": [
    {
      "decision": false,
      "context": {
        "verdict": "allow",
        "rule": null,
        "reason_admin": {
          "en": null
        },
        "read": false,
        "log_only": false,
        "baseline": false,
        "cut_off": false,
        "grant": null,
        "grant_id": null,
        "grant_once": false,
        "grants": null,
        "policy": null,
        "policy_version": null
      }
    }
  ]
}

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.