Skip to main content
POST
/
api
/
public
/
contacts
Create or update contacts
curl --request POST \
  --url https://astrasend-mocha.vercel.app/api/public/contacts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contacts": [
    {
      "phone": "+15551234567",
      "first_name": "Jo",
      "source": "acme.com"
    }
  ],
  "list": "API leads"
}
'
{
  "ok": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json
contacts
object[]
list
string
list_id
string

Response

Success

ok
boolean
Example:

true