Skip to main content
POST
/
contacts
Create contact
curl --request POST \
  --url https://api.getpg.ai/public-api/v1/contacts \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "first_name": "Sarah",
  "last_name": "Connor",
  "email": "[email protected]",
  "job_title": "Director of Sales",
  "company": "Future Tech Inc"
}
'
{
  "error": "Validation error",
  "details": [
    "Missing required field: \"last_name\"",
    "Missing required field: \"email\""
  ]
}

Authorizations

x-api-key
string
header
required

Your PG:AI API key. Generate one from Settings → API Keys in the PG:AI dashboard.

Body

application/json
first_name
string
required
last_name
string
required
email
string<email>
required
job_title
string
company
string
linkedin_url
string<uri>
phone
string
location
string

Response

Contact created successfully