Endpoint
POST https://app.sling.com.ng/api/v1/add-contacts
| Header | Value |
|---|
Accept | application/json |
Authorization | Bearer {API_TOKEN} |
Content-Type | application/json |
Body parameters
Contact objects to create.Show contact object properties
Group ID or group identifier to assign this contact. Leave empty or use 0 for standalone.
Optional identifier for the contact.
Description for the contact.
Optional fallback group ID or group identifier to assign all contacts to.
Example payload
{
"contacts": [
{
"name": "John Doe",
"email": "[email protected]",
"phone": "1234567891",
"group_id": "lagos-customers",
"identifier": "john-doe",
"description": "VIP customer"
},
{
"name": "Jane Smith",
"email": "[email protected]",
"phone": "0987654321",
"group_id": 0,
"identifier": "jane-smith",
"description": "Standalone contact"
}
]
}
Response
Success Response
Contacts endpoints return status: "success" when the operation completes.
{
"status": "success",
"contacts_count": 2
}