curl --request POST \
--url https://api.getsly.ai/v1/v1/ap2/mandates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scope": {
"max_per_tx": "<string>",
"max_per_day": "<string>",
"max_per_month": "<string>",
"currency": "<string>",
"allowed_merchant_categories": [
"<string>"
],
"allowed_merchants": [
"<string>"
],
"blocked_merchants": [
"<string>"
]
},
"expires_at": "2023-11-07T05:31:56Z",
"metadata": {}
}
'{
"data": {
"id": "<string>",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "active",
"mandate_jwt": "<string>",
"scope": {
"max_per_tx": "<string>",
"max_per_day": "<string>",
"max_per_month": "<string>",
"currency": "<string>",
"allowed_merchant_categories": [
"<string>"
],
"allowed_merchants": [
"<string>"
],
"blocked_merchants": [
"<string>"
]
},
"expires_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"metadata": {}
}
}Issue a signed mandate authorizing an agent to spend within a scope. Returns mandate_jwt — present on every execution.
curl --request POST \
--url https://api.getsly.ai/v1/v1/ap2/mandates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scope": {
"max_per_tx": "<string>",
"max_per_day": "<string>",
"max_per_month": "<string>",
"currency": "<string>",
"allowed_merchant_categories": [
"<string>"
],
"allowed_merchants": [
"<string>"
],
"blocked_merchants": [
"<string>"
]
},
"expires_at": "2023-11-07T05:31:56Z",
"metadata": {}
}
'{
"data": {
"id": "<string>",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "active",
"mandate_jwt": "<string>",
"scope": {
"max_per_tx": "<string>",
"max_per_day": "<string>",
"max_per_month": "<string>",
"currency": "<string>",
"allowed_merchant_categories": [
"<string>"
],
"allowed_merchants": [
"<string>"
],
"blocked_merchants": [
"<string>"
]
},
"expires_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"metadata": {}
}
}API key (pk_test_* or pk_live_), JWT session, agent token (agent_), Ed25519 session (sess_), or portal token (portal_).
Mandate created
Show child attributes