Set Post-Call Outcome
Set custom call outcome fields for a call using the public frontend API.
PATCH
Set post call outcome
Documentation Index
Fetch the complete documentation index at: https://docs.phonely.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This API allows you to set post call outcome fields for calls by either:- Call ID:
PATCH /api/calls/{agent_id}/{call_id} - Phone Number:
PATCH /api/calls/{agent_id}/{e164_number}?preference=first|last
Authentication
- API Key:
X-Authorizationheader (for batch jobs)
Example 1: Update by Call ID
Using API Key
Example 2: Update by Phone Number (Last Touch - Default)
Example 3: Update by Phone Number (First Touch)
Example 4: Partial Update (Only Outcome)
Notes
- Phone Number Format: Phone numbers must be in E.164 format (e.g.,
+14155551234). The+sign can be included directly in the URL path. - Preference Parameter:
first: Updates the earliest call with the given phone numberlast: Updates the most recent call (default)
- Partial Updates: You can provide any combination of the three fields:
custom_call_outcome(string)custom_call_outcome_value(number)custom_call_metadata(object)
Authorizations
Path Parameters
The ID of the agent
The ID of the call or the E.164 phone number
Query Parameters
first: first time that someone called in, last: latest call from someone
Available options:
first, last Body
application/json
Previous
Agent DocumentsList, upload, and delete agent knowledge-base documents through the frontend API.
Next
Set post call outcome

