Skip to main content
PATCH
/
api
/
public
/
contacts
/
{id}
Update a contact
curl --request PATCH \
  --url https://astrasend-mocha.vercel.app/api/public/contacts/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "first_name": "<string>",
  "last_name": "<string>",
  "source": "<string>",
  "custom_fields": {}
}
'
{
  "ok": true
}

Authorizations

Authorization
string
header
required

Your API key (as_live_…), created under Settings → API keys.

Path Parameters

id
string
required

Body

application/json
first_name
string
last_name
string
source
string
custom_fields
object

Response

Success

ok
boolean
Example:

true