Skip to content

Create Contact

POST /external/v1/contacts

Creates a new contact in your account.

Authentication

Requires contacts:write permission.

Request Body

FieldTypeRequiredDescription
namestringYesFull name of the contact
emailstringNoEmail address
phonestringNoPhone number with country code
companystringNoCompany name
positionstringNoJob title/position
linkedin_urlstringNoLinkedIn profile URL
sourcestringNoLead source (default: "other")
tagsarrayNoArray of tag strings
custom_fieldsobjectNoCustom field key-value pairs

Request

bash
curl --request POST \
  --url "https://app.getraze.com/external/v1/contacts" \
  --header "Content-Type: application/json" \
  --header "X-API-Key: YOUR_API_KEY" \
  --data '{
    "name": "Jane Smith",
    "email": "jane@company.com",
    "phone": "+5511988888888",
    "company": "Tech Corp",
    "position": "CTO",
    "tags": ["hot-lead", "tech"]
  }'
javascript
const axios = require('axios');

const response = await axios.post(
  'https://app.getraze.com/external/v1/contacts',
  {
    name: 'Jane Smith',
    email: 'jane@company.com',
    phone: '+5511988888888',
    company: 'Tech Corp',
    position: 'CTO',
    tags: ['hot-lead', 'tech']
  },
  {
    headers: {
      'X-API-Key': 'YOUR_API_KEY',
      'Content-Type': 'application/json'
    }
  }
);

console.log(response.data);
python
import requests

response = requests.post(
    'https://app.getraze.com/external/v1/contacts',
    headers={
        'X-API-Key': 'YOUR_API_KEY',
        'Content-Type': 'application/json'
    },
    json={
        'name': 'Jane Smith',
        'email': 'jane@company.com',
        'phone': '+5511988888888',
        'company': 'Tech Corp',
        'position': 'CTO',
        'tags': ['hot-lead', 'tech']
    }
)

print(response.json())

Response

json
{
  "success": true,
  "data": {
    "id": "cnt_xyz789abc123",
    "name": "Jane Smith",
    "email": "jane@company.com",
    "phone": "+5511988888888",
    "company": "Tech Corp",
    "position": "CTO",
    "source": "other",
    "tags": ["hot-lead", "tech"],
    "custom_fields": {},
    "created_at": "2024-01-25T09:00:00Z",
    "updated_at": "2024-01-25T09:00:00Z"
  }
}

Errors

StatusCodeDescription
400VALIDATION_ERRORRequired fields missing or invalid
400INVALID_EMAILEmail format is invalid
409ALREADY_EXISTSContact with this email already exists

GetRaze - AI-Powered Lead Generation