Get an approval

Whether the person has decided. Poll it after a 202 approval_required; when status is approved, send the request again with the Approval-Id header.

GET
/api/v1/approvals/{approvalId}
AuthorizationBearer <token>

API key in the Authorization header: Authorization: Bearer wv_live_…. Keys are created on the API keys page in the app, shown once, and scoped to your workspace. A key acts for the person who created it: each call needs the operation's scope (x-wv-scope) and is limited to what that person's role allows now. X-Api-Key: wv_live_… is accepted as a fallback for tools that can't set Authorization.

In: header

Path Parameters

approvalId*string
Formatuuid

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "status": "pending",
  "risk": "confirm",
  "operation": "string",
  "method": "string",
  "path": "string",
  "summary": "string",
  "reach": {
    "kind": "endpoint",
    "targetId": "cbca1126-180e-4334-9df8-cf82289d378b",
    "targetName": "string",
    "classes": [
      "routing"
    ],
    "live": true,
    "asks": true,
    "differences": [
      {
        "field": "string",
        "class": "routing",
        "before": "string",
        "after": "string"
      }
    ],
    "links": [
      {
        "kind": "string",
        "total": 0,
        "liveTotal": 0,
        "items": [
          {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "name": "string",
            "live": true
          }
        ]
      }
    ],
    "endpoints": {
      "total": 0,
      "liveTotal": 0,
      "items": [
        {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "name": "string",
          "live": true,
          "arrivals24h": 0
        }
      ]
    },
    "arrivals24h": 0,
    "alertEvents": [
      "string"
    ],
    "routineNotices": true,
    "newDestination": "string",
    "text": "string",
    "fingerprint": "string"
  },
  "createdAt": "2019-08-24T14:15:22Z",
  "expiresAt": "2019-08-24T14:15:22Z",
  "decidedAt": "2019-08-24T14:15:22Z",
  "decidedVia": "passkey",
  "usedAt": "2019-08-24T14:15:22Z",
  "approveUrl": "http://example.com"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "traceId": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "traceId": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "traceId": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "traceId": "string"
}

On this page