curl --request POST \
--url https://app.kapso.ai/api/v1/whatsapp_contacts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"contact": {
"wa_id": "1234567890",
"profile_name": "John Doe",
"customer_id": "customer-456def",
"metadata": {
"source": "website",
"tags": [
"lead",
"priority"
]
}
}
}'
{
"data": {
"id": "contact-789ghi",
"wa_id": "1234567890",
"profile_name": "John Doe",
"customer_id": "customer-456def",
"metadata": {
"source": "website",
"tags": [
"lead",
"priority"
]
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
Create a new WhatsApp contact for the project
curl --request POST \
--url https://app.kapso.ai/api/v1/whatsapp_contacts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"contact": {
"wa_id": "1234567890",
"profile_name": "John Doe",
"customer_id": "customer-456def",
"metadata": {
"source": "website",
"tags": [
"lead",
"priority"
]
}
}
}'
{
"data": {
"id": "contact-789ghi",
"wa_id": "1234567890",
"profile_name": "John Doe",
"customer_id": "customer-456def",
"metadata": {
"source": "website",
"tags": [
"lead",
"priority"
]
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
API key required for all endpoints
Contact created successfully
The response is of type object
.
Was this page helpful?