import requests
url = "https://api.example.com/api/v1/pacts"
response = requests.get(url)
print(response.text)curl --request GET \
--url https://api.example.com/api/v1/pacts{
"result": {
"pacts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"intent": "<string>",
"status": "pending_approval",
"wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"original_intent": "<string>",
"is_default": false,
"recipe_slugs": [
"<string>"
],
"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"
},
"remaining": {
"tx_count_remaining": 123,
"usd_remaining": "<string>",
"time_remaining_seconds": 123
}
}
]
},
"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": {}
}
]
}
}List pacts
List pacts visible to the authenticated principal. Agents see pacts they submitted; humans see pacts on wallets they own. Use query parameters to filter by status or wallet.
import requests
url = "https://api.example.com/api/v1/pacts"
response = requests.get(url)
print(response.text)curl --request GET \
--url https://api.example.com/api/v1/pacts{
"result": {
"pacts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"intent": "<string>",
"status": "pending_approval",
"wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"original_intent": "<string>",
"is_default": false,
"recipe_slugs": [
"<string>"
],
"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"
},
"remaining": {
"tx_count_remaining": 123,
"usd_remaining": "<string>",
"time_remaining_seconds": 123
}
}
]
},
"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
Query Parameters
Filter results to pacts with this status. Allowed values: PENDING_APPROVAL, ACTIVE, COMPLETED, REVOKED, WITHDRAWN, REJECTED.
pending_approval, active, rejected, completed, expired, revoked, withdrawn Filter results to pacts associated with this wallet. Pass the UUID of the wallet as returned by the wallets API.
A cursor for forward pagination. Pass the after value from a previous response to retrieve the next page.
A cursor for backward pagination. Pass the before value from a previous response to retrieve the preceding page.
Deprecated. Use after/before cursors instead.
0 <= x <= 9223372036854776000The maximum number of items to return. Range: [1, 100].
1 <= x <= 100Include default pacts (is_default=true) in results. Excluded by default.
Response
Successful Response
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