Revoke active pact
import requests
url = "https://api.example.com/api/v1/pacts/{pact_id}/revoke"
response = requests.post(url)
print(response.text)curl --request POST \
--url https://api.example.com/api/v1/pacts/{pact_id}/revoke{
"result": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operator_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"intent": "<string>",
"spec": {
"policies": [
{
"name": "<string>",
"type": "transfer",
"rules": {},
"priority": 0,
"is_active": true
}
],
"completion_conditions": [
{
"type": "time_elapsed",
"threshold": "<string>"
}
],
"execution_plan": "<string>"
},
"status": "pending_approval",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"operator": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"type": "human",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"metadata": {},
"is_temporary": false,
"owner_principal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"onboarding_session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"original_intent": "<string>",
"approval_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"api_key": "<string>",
"activated_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"progress_tx_count": 0,
"progress_usd_spent": "0",
"is_default": false,
"effective_policies": [
{}
],
"recipe_slugs": [
"<string>"
],
"recent_txs": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"operation_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"request_id": "<string>"
}
]
},
"success": true,
"suggestion": "",
"message": "",
"meta": {
"total": 123,
"offset": 123,
"limit": 123,
"has_more": true,
"after": "<string>",
"before": "<string>"
}
}{
"success": false,
"error": {
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}
}Pacts
Revoke active pact
Revoke an active pact. Only the wallet owner can revoke. Revoking the pact also revokes the associated delegation and invalidates the pact-scoped API key.
POST
/
api
/
v1
/
pacts
/
{pact_id}
/
revoke
Revoke active pact
import requests
url = "https://api.example.com/api/v1/pacts/{pact_id}/revoke"
response = requests.post(url)
print(response.text)curl --request POST \
--url https://api.example.com/api/v1/pacts/{pact_id}/revoke{
"result": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operator_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"intent": "<string>",
"spec": {
"policies": [
{
"name": "<string>",
"type": "transfer",
"rules": {},
"priority": 0,
"is_active": true
}
],
"completion_conditions": [
{
"type": "time_elapsed",
"threshold": "<string>"
}
],
"execution_plan": "<string>"
},
"status": "pending_approval",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"operator": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"type": "human",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"metadata": {},
"is_temporary": false,
"owner_principal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"onboarding_session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"original_intent": "<string>",
"approval_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"api_key": "<string>",
"activated_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"progress_tx_count": 0,
"progress_usd_spent": "0",
"is_default": false,
"effective_policies": [
{}
],
"recipe_slugs": [
"<string>"
],
"recent_txs": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"operation_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"request_id": "<string>"
}
]
},
"success": true,
"suggestion": "",
"message": "",
"meta": {
"total": 123,
"offset": 123,
"limit": 123,
"has_more": true,
"after": "<string>",
"before": "<string>"
}
}{
"success": false,
"error": {
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}
}Headers
Path Parameters
The UUID of the active pact to revoke, as returned by the submit or list endpoints.
Response
Successful Response
Public pact detail response without delegation internals.
Show child attributes
Show child attributes
Pagination metadata for list responses.
Supports both legacy offset-based and cursor-based pagination.
Cursor fields (has_more, after, before) are populated for
cursor-paginated endpoints. Legacy fields (offset, limit) are
populated when the caller uses the deprecated offset parameter.
Show child attributes
Show child attributes