Skip to main content
POST
Save Call Data

Authorizations

string
required
Your Agni API key used to authenticate the request. Pass it in the X-Api-Key header. Find or rotate it from your Ravan AI account settings.

Body

string
required
The unique contact ID. Use the id returned by the Contact API.
string
required
The organization ID that owns the resource. Use the organization ID from your Agni account.
string
The full call transcript text.
string
A concise summary of the call or interaction.
string
The URL of the call recording. Use a publicly accessible URL if this is supplied by an external system.
integer
The call duration in seconds.
string[]
A list of tags used to categorize or filter the contact.
object
Custom contact fields as key-value pairs. Use this for data that does not fit the standard contact fields.

Response

boolean
Whether the request succeeded.
string
Human-readable status message.

Authorizations

X-Api-Key
string
header
required

Body

application/json
contact_id
string
required

GHL contact ID

org_id
string
required

Organization ID

transcript
string

Call transcript

summary
string

Call summary

recording_url
string

Recording URL

duration_sec
integer

Call duration in seconds

tags
string[]

Tags

custom_fields
object

Custom fields

Response

200 - application/json

Successful response

success
boolean
message
string
data
object | null