Skip to main content

Endpoint

POST https://app.sling.com.ng/api/v1/add-contacts

Headers

HeaderValue
Acceptapplication/json
AuthorizationBearer {API_TOKEN}
Content-Typeapplication/json

Body parameters

contacts
array
required
Contact objects to create.
group_id
string
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
}