API reference/Get a call
API reference · v1
Get a call
Read the most recently saved state of a call.
Content reviewed · Maintained by Cleo Powered · Report a documentation issue · Verification basis
GET
/v1/calls/{call_id}Parameters
- Name
call_id- Location
- Path · required
- Description
- The UUID returned when the call was created.
- Name
Authorization- Location
- Header · required
- Description
Bearer <API_KEY>, from the same Agent Project as the call.
| Name | Location | Description |
|---|---|---|
call_id | Path · required | The UUID returned when the call was created. |
Authorization | Header · required | Bearer <API_KEY>, from the same Agent Project as the call. |
No request body or idempotency key is needed for this operation.
This reads saved state. Use Sync a call when you need to refresh progress from the calling service.
Example request
Use the call ID returned by creation. The cURL example reads it from CALL_ID.
For cURL, use Bash and set these variables in the same terminal. CALL_ID is the call UUID returned by create, not the idempotency key. The Python tab prompts for both inputs itself.
Bash setup
read -rsp "Cleo API key: " CLEO_API_KEY; echo
export CLEO_API_KEY
read -rp "Call ID returned by create: " CALL_ID
export CALL_IDcurl --fail-with-body -X GET \
"https://api.cleolabs.com/v1/calls/$CALL_ID" \
-H "Authorization: Bearer $CLEO_API_KEY" \
-H "User-Agent: CleoDocs/1.0"Response
Returns 200 OK with the call object. If the call does not exist or belongs to a different Agent Project, the API returns 404 call_not_found.