curl --request GET \
--url https://api.example.com/api/v1/contracts/{contract_id}{
"contract_id": "<string>",
"status": "<string>",
"created_at": "<string>",
"expires_at": "<string>",
"total_amount": 123,
"currency": "<string>",
"parties": [
{}
],
"contract_hash": "<string>"
}Retrieve a contract by its unique identifier
curl --request GET \
--url https://api.example.com/api/v1/contracts/{contract_id}{
"contract_id": "<string>",
"status": "<string>",
"created_at": "<string>",
"expires_at": "<string>",
"total_amount": 123,
"currency": "<string>",
"parties": [
{}
],
"contract_hash": "<string>"
}pending: Awaiting signaturesconfirmed: All parties have signedactive: Contract is in effectcompleted: Contract has been fulfilledcancelled: Contract was cancelledphone_number: Party’s phone numberrole: Party’s role (buyer, seller, etc.)name: Party’s namecurl -X GET https://api.voicepact.com/api/v1/contracts/AGRI-2026-001234 \
-H "Content-Type: application/json"
{
"contract_id": "AGRI-2026-001234",
"status": "confirmed",
"created_at": "2026-03-06T10:30:00Z",
"expires_at": "2026-04-06T10:30:00Z",
"total_amount": 25000,
"currency": "KES",
"parties": [
{
"phone_number": "+254712345678",
"role": "buyer",
"name": "John Kamau"
},
{
"phone_number": "+254787654321",
"role": "seller",
"name": "Mary Wanjiru"
}
],
"contract_hash": "a7f8d9e2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0"
}
{
"detail": "Contract not found"
}
{
"detail": "Failed to retrieve contract"
}