curl --request POST \
--url https://api-message.nativehub.live/api/v1/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Alice Johnson",
"phone": "+8801712345678",
"email": "[email protected]",
"tags": {
"segment": "premium",
"region": "dhaka"
}
}
'{
"id": "c9d0e1f2-a3b4-5678-cd90-123456789012",
"tenant_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"name": "Alice Johnson",
"phone": "+8801712345678",
"email": "[email protected]",
"tags": {
"segment": "premium",
"region": "dhaka"
},
"created_at": "2026-02-01T09:00:00Z",
"updated_at": "2026-02-10T11:30:00Z"
}Create a new contact
curl --request POST \
--url https://api-message.nativehub.live/api/v1/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Alice Johnson",
"phone": "+8801712345678",
"email": "[email protected]",
"tags": {
"segment": "premium",
"region": "dhaka"
}
}
'{
"id": "c9d0e1f2-a3b4-5678-cd90-123456789012",
"tenant_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"name": "Alice Johnson",
"phone": "+8801712345678",
"email": "[email protected]",
"tags": {
"segment": "premium",
"region": "dhaka"
},
"created_at": "2026-02-01T09:00:00Z",
"updated_at": "2026-02-10T11:30:00Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.