Skip to main content
PATCH
/
api
/
v1
/
contacts
/
{id}
Update Contact
curl --request PATCH \
  --url https://api.ravan.ai/api/v1/contacts/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "first_name": "<string>",
  "last_name": "<string>",
  "email": "<string>",
  "phone": "<string>",
  "company": "<string>",
  "metadata": {}
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": "<string>",
    "first_name": "<string>",
    "last_name": "<string>",
    "email": "<string>",
    "phone": "<string>",
    "company": "<string>",
    "metadata": {},
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

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.

Path Parameters

id
string
required
The unique ID of the resource in the path. Use the ID returned by the related create or list endpoint.

Body

first_name
string
The contact first name.
last_name
string
The contact last name.
email
string
The contact email address. Use a valid email format such as alex@example.com.
phone
string
The contact phone number in E.164 format. Example: +14157774444.
company
string
The contact company or organization name.
metadata
object
Custom key-value data to attach to the resource. Use this for IDs or attributes from your own systems.

Response

success
boolean
Whether the request succeeded.
message
string
Human-readable status message.
data
object
Updated contact object.

Authorizations

X-Api-Key
string
header
required

Path Parameters

id
string
required

Contact ID

Body

application/json
first_name
string

First name

last_name
string

Last name

email
string

Email address

phone
string

Phone number

company
string

Company name

metadata
object

Custom metadata

Response

200 - application/json

Successful response

success
boolean
message
string
data
object