Create a contact
POST /contacts
POST /contacts
Operation
POST
/contacts
Creates a contact for an advertiser. Admin users only. The submitted advertiser must resolve to a HiEnergy advertiser, and the contact is created only on that HiEnergy advertiser record.
Operation ID:
createContact
·
Tags: Contacts
Parameters
This operation does not define any parameters.
Request Body
Required: Yes
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"contact": {
"type": "object",
"properties": {
"advertiser_id": {
"type": "integer",
"description": "Advertiser id that must resolve to the HiEnergy advertiser record that will own the contact"
},
"email": {
"type": "string",
"format": "email"
},
"name": {
"type": "string"
},
"given_name": {
"type": "string"
},
"family_name": {
"type": "string"
},
"phone": {
"type": "string"
},
"job_title": {
"type": "string"
},
"source": {
"type": "string"
},
"status": {
"type": "string"
},
"linkedin_profile_url": {
"type": "string",
"format": "uri"
}
},
"required": [
"advertiser_id",
"email"
]
}
},
"required": [
"contact"
]
}
}
}
}
Responses
Content Types
application/json
{
"description": "Contact created",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/Contact"
}
},
"required": [
"data"
]
}
}
}
}
{
"$ref": "#/components/responses/Unauthorized"
}
{
"$ref": "#/components/responses/Forbidden"
}
{
"$ref": "#/components/responses/NotFound"
}
API Playground
The in-page tester only supports GET. For POST, use the sample curl below or the dedicated resource docs (e.g. Contacts, Link Builder).
Sign in to enable live testing with your API key.
| Action | Method | Endpoint | Description |
|---|---|---|---|
| Create a contact | POST |
/api/v1/contacts |
OpenAPI operationId: createContact. |
Example request (replace YOUR_API_KEY or sign in above):
curl -X POST "https://app.hienergy.ai/api/v1/contacts" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Accept: application/json"
-H "Content-Type: application/json" \
-d '{}'