contacts

Manage Contacts

5 minutes integration Skill: intermediate

Contacts Management API

Synchronize customer details, apply grouping tags, and store custom metadata parameters to coordinate campaigns. Custom fields are reactive and can be queried directly inside the Bot Flow Builder logic nodes.


1. Create or Update Contact

Create a new contact card or update an existing contact dynamically if the phone number already exists.

Endpoint

POST /v1/contacts

Payload Parameters

ParameterTypeRequiredDescription
phonestringYesDestination mobile number, formatted with country code prefix (e.g. 918856879188, no spaces or symbols).
first_namestringNoCustomer's first name.
last_namestringNoCustomer's last name.
emailstringNoValid email address.
tagsarrayNoList of grouping labels (e.g. ["VIP", "Lead"]).
custom_fieldsobjectNoKey-value dictionary containing custom attributes (e.g. {"shopify_id": "cust_29813a"}).

2. Retrieve Contacts List

Fetch segmented lists of synced contacts, complete with pagination support.

Endpoint

GET /v1/contacts

Query Parameters

ParameterTypeRequiredDescription
limitintegerNoNumber of records to return (Default: 20, Max: 100).
offsetintegerNoNumber of records to skip (for paging).
tagstringNoFilter contacts matching a specific tag parameter.

Response (200 OK)

{
  "success": true,
  "contacts": [
    {
      "id": "cnt_918856879188",
      "phone": "918856879188",
      "first_name": "Priya",
      "last_name": "Sharma",
      "email": "priya@example.com",
      "tags": ["Lead"],
      "created_at": "2026-06-02T08:00:00Z"
    }
  ],
  "pagination": {
    "total": 1,
    "limit": 20,
    "offset": 0
  }
}

Related Doc Resources

Integration Playground
# Create a new customer contact entry
curl -X POST "https://api.aisoule.com/v1/contacts" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "918856879188",
    "first_name": "Priya",
    "last_name": "Sharma",
    "email": "priya@example.com",
    "tags": ["Lead", "High-Priority"],
    "custom_fields": {
      "shopify_id": "cust_29813a",
      "acquisition_source": "AdWords"
    }
  }'
Replace `YOUR_API_KEY` in the headers with your real dashboard secrets token!