OpenPermit Docs
ReferenceApi

Get mandate

GET
/api/v1/mandates/{id}

Authorization

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/mandates/string"
{  "mandateId": "string",  "status": "draft",  "policy": {    "subject": {      "subjectId": "string",      "organizationId": "string",      "type": "user"    },    "agent": {      "agentId": "string",      "name": "string",      "environment": "development",      "runtimeAttestation": {        "property1": null,        "property2": null      }    },    "paymentPath": "offchain",    "enforcementMode": "onchainEnforced",    "payer": {      "payerId": "string",      "type": "wallet",      "address": "string",      "custodyProvider": "string"    },    "delegate": {      "delegateId": "string",      "type": "sessionKey",      "publicKey": "string",      "expiresAt": "string"    },    "paymentMethods": [      "x402"    ],    "assets": [      "string"    ],    "chains": [],    "maxPerPayment": "string",    "windowBudget": {      "amount": "string",      "asset": "string",      "windowSeconds": 1    },    "totalBudget": "string",    "expiresAt": "string",    "allowedSellers": [],    "allowedResources": [],    "blockedResources": [],    "minimumAssuranceLevel": "softwareApproved",    "metadataPolicy": {      "redactPrompts": true,      "redactHeaders": [],      "storeRawChallenge": false    },    "riskPolicy": {      "denyUnknownSellers": true,      "denyUnknownResources": false    },    "onchainFeePolicy": {      "feeRecipient": "string",      "maxOpenPermitFeePerPayment": "0",      "maxOpenPermitFeeBps": 0    }  },  "approvalProofs": [],  "approvalMethod": "passkey",  "assuranceLevel": "softwareApproved",  "revocationNonce": "string",  "createdAt": "string",  "updatedAt": "string",  "activatedAt": "string",  "pausedAt": "string",  "revokedAt": "string"}
{  "type": "about:blank",  "title": "string",  "status": 0,  "detail": "string",  "instance": "string",  "requestId": "string",  "code": "string",  "errors": [    {      "detail": "string",      "pointer": "string"    }  ]}
{  "type": "about:blank",  "title": "string",  "status": 0,  "detail": "string",  "instance": "string",  "requestId": "string",  "code": "string"}
{  "type": "about:blank",  "title": "string",  "status": 0,  "detail": "string",  "instance": "string",  "requestId": "string",  "code": "string"}
{  "type": "about:blank",  "title": "string",  "status": 0,  "detail": "string",  "instance": "string",  "requestId": "string",  "code": "string"}
{  "type": "about:blank",  "title": "string",  "status": 0,  "detail": "string",  "instance": "string",  "requestId": "string",  "code": "string"}
{  "type": "about:blank",  "title": "string",  "status": 0,  "detail": "string",  "instance": "string",  "requestId": "string",  "code": "string"}