import requests
url = "https://api.example.com/api/v1/pacts/{pact_id}/events"
response = requests.get(url)
print(response.text)curl --request GET \
--url https://api.example.com/api/v1/pacts/{pact_id}/events{
"result": {
"events": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_type": "submitted",
"created_at": "2023-11-07T05:31:56Z",
"metadata": {}
}
]
},
"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 pact events
Retrieve the full lifecycle event history for the specified pact. Events are returned in chronological order. Use after or before cursor parameters for cursor-based pagination, or the deprecated offset parameter for offset-based pagination.
import requests
url = "https://api.example.com/api/v1/pacts/{pact_id}/events"
response = requests.get(url)
print(response.text)curl --request GET \
--url https://api.example.com/api/v1/pacts/{pact_id}/events{
"result": {
"events": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_type": "submitted",
"created_at": "2023-11-07T05:31:56Z",
"metadata": {}
}
]
},
"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 pact whose event history to retrieve, as returned by the submit or list endpoints.
Query Parameters
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, 200].
1 <= x <= 200Response
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