Skip to main content
POST
/
api
/
v1
/
ghl
/
calls
/
data
Save Call Data
curl --request POST \
  --url https://api.ravan.ai/api/v1/ghl/calls/data \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "contact_id": "<string>",
  "org_id": "<string>",
  "transcript": "<string>",
  "summary": "<string>",
  "recording_url": "<string>",
  "duration_sec": 123,
  "tags": [
    "<string>"
  ],
  "custom_fields": {}
}
'
{
  "success": true,
  "message": "<string>",
  "data": {}
}

Authorizations

X-Api-Key
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

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

Response

success
boolean
Whether the request succeeded.
message
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