Contacts API
These are the Contacts endpoints of the Keila API.
For Keila Cloud, the base URL is https://app.keila.io.
All endpoints, unless stated differently, require Bearer authentication.
A contact is a potential recipient for your emails: contacts are comprised of an email address along with an optional first and last name and arbitrary custom data.
/api/v1/contacts Index contacts
Retrieve contacts from your project with support for pagination and filtering.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| paginate | query | object | Pagination | |
| filter | query | string | Contact query as JSON string.
Example: "{\"email\":{\"$like\":\"%keila.io\"}}" |
Responses
200 Contact index response
- data object[]
- data object
Custom data fields
Example:
{"city":"Munich","interests":["chess","books"]} - email string
Example:
"jane.doe@example.com" - external_id string
Example:
"abc-123" - first_name string
Example:
"Jane" - id string
Contact ID
Example:
"c_12345" - inserted_at string
Example:
"2026-11-04T12:44:26.961275Z" - last_name string
Example:
"Doe" - status "active" | "unsubscribed" | "unreachable"
Example:
"active" - updated_at string
Example:
"2026-11-04T12:44:26.961288Z"
-
- meta object
/api/v1/contacts Create Contact
Request body
- data object
- data object
Custom data fields
Example:
{"city":"Munich","interests":["chess","books"]} - email string required
Example:
"jane.doe@example.com" - external_id string
Example:
"abc-123" - first_name string
Example:
"Jane" - last_name string
Example:
"Doe" - status "active" | "unsubscribed" | "unreachable"
Example:
"active"
-
Responses
200 Contact response
- data object
- data object
Custom data fields
Example:
{"city":"Munich","interests":["chess","books"]} - email string
Example:
"jane.doe@example.com" - external_id string
Example:
"abc-123" - first_name string
Example:
"Jane" - id string
Contact ID
Example:
"c_12345" - inserted_at string
Example:
"2026-11-04T12:44:26.961275Z" - last_name string
Example:
"Doe" - status "active" | "unsubscribed" | "unreachable"
Example:
"active" - updated_at string
Example:
"2026-11-04T12:44:26.961288Z"
-
/api/v1/contacts/{id} Retrieve Contact
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | yes | Contact ID (or email or external ID) |
| id_type | query | string | Specify this parameter if you want to use a Contact’s email or external_id to retrieve/update existing Contacts. |
Responses
200 Contact response
- data object
- data object
Custom data fields
Example:
{"city":"Munich","interests":["chess","books"]} - email string
Example:
"jane.doe@example.com" - external_id string
Example:
"abc-123" - first_name string
Example:
"Jane" - id string
Contact ID
Example:
"c_12345" - inserted_at string
Example:
"2026-11-04T12:44:26.961275Z" - last_name string
Example:
"Doe" - status "active" | "unsubscribed" | "unreachable"
Example:
"active" - updated_at string
Example:
"2026-11-04T12:44:26.961288Z"
-
/api/v1/contacts/{id} Update Contact
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | yes | Contact ID (or email or external ID) |
| id_type | query | string | Specify this parameter if you want to use a Contact’s email or external_id to retrieve/update existing Contacts. |
Request body
- data object
- data object
Custom data fields
Example:
{"city":"Munich","interests":["chess","books"]} - email string
Example:
"jane.doe@example.com" - external_id string
Example:
"abc-123" - first_name string
Example:
"Jane" - last_name string
Example:
"Doe" - status "active" | "unsubscribed" | "unreachable"
Example:
"active"
-
Responses
200 Contact response
- data object
- data object
Custom data fields
Example:
{"city":"Munich","interests":["chess","books"]} - email string
Example:
"jane.doe@example.com" - external_id string
Example:
"abc-123" - first_name string
Example:
"Jane" - id string
Contact ID
Example:
"c_12345" - inserted_at string
Example:
"2026-11-04T12:44:26.961275Z" - last_name string
Example:
"Doe" - status "active" | "unsubscribed" | "unreachable"
Example:
"active" - updated_at string
Example:
"2026-11-04T12:44:26.961288Z"
-
/api/v1/contacts/{id} Update Contact
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | yes | Contact ID (or email or external ID) |
| id_type | query | string | Specify this parameter if you want to use a Contact’s email or external_id to retrieve/update existing Contacts. |
Request body
- data object
- data object
Custom data fields
Example:
{"city":"Munich","interests":["chess","books"]} - email string
Example:
"jane.doe@example.com" - external_id string
Example:
"abc-123" - first_name string
Example:
"Jane" - last_name string
Example:
"Doe" - status "active" | "unsubscribed" | "unreachable"
Example:
"active"
-
Responses
200 Contact response
- data object
- data object
Custom data fields
Example:
{"city":"Munich","interests":["chess","books"]} - email string
Example:
"jane.doe@example.com" - external_id string
Example:
"abc-123" - first_name string
Example:
"Jane" - id string
Contact ID
Example:
"c_12345" - inserted_at string
Example:
"2026-11-04T12:44:26.961275Z" - last_name string
Example:
"Doe" - status "active" | "unsubscribed" | "unreachable"
Example:
"active" - updated_at string
Example:
"2026-11-04T12:44:26.961288Z"
-
/api/v1/contacts/{id} Delete Contact
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | yes | Contact ID (or email or external ID) |
| id_type | query | string | Specify this parameter if you want to use a Contact’s email or external_id to retrieve/update existing Contacts. |
Responses
204 Contact was deleted successfully or didn’t exist.
/api/v1/contacts/{id}/data Replace Contact data
Replace just the data field of a Contact with the provided data object.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | yes | Contact ID (or email or external ID) |
| id_type | query | string | Specify this parameter if you want to use a Contact’s email or external_id to retrieve/update existing Contacts. |
Request body
- data object
Custom data fields
Example:
{"city":"Munich","interests":["chess","books"]}
Responses
200 Contact response
- data object
- data object
Custom data fields
Example:
{"city":"Munich","interests":["chess","books"]} - email string
Example:
"jane.doe@example.com" - external_id string
Example:
"abc-123" - first_name string
Example:
"Jane" - id string
Contact ID
Example:
"c_12345" - inserted_at string
Example:
"2026-11-04T12:44:26.961275Z" - last_name string
Example:
"Doe" - status "active" | "unsubscribed" | "unreachable"
Example:
"active" - updated_at string
Example:
"2026-11-04T12:44:26.961288Z"
-
/api/v1/contacts/{id}/data Update Contact data
Update just the data field of a Contact. The existing JSON object is merged in a shallow merge with the provided data object.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | yes | Contact ID (or email or external ID) |
| id_type | query | string | Specify this parameter if you want to use a Contact’s email or external_id to retrieve/update existing Contacts. |
Request body
- data object
Custom data fields
Example:
{"city":"Munich","interests":["chess","books"]}
Responses
200 Contact response
- data object
- data object
Custom data fields
Example:
{"city":"Munich","interests":["chess","books"]} - email string
Example:
"jane.doe@example.com" - external_id string
Example:
"abc-123" - first_name string
Example:
"Jane" - id string
Contact ID
Example:
"c_12345" - inserted_at string
Example:
"2026-11-04T12:44:26.961275Z" - last_name string
Example:
"Doe" - status "active" | "unsubscribed" | "unreachable"
Example:
"active" - updated_at string
Example:
"2026-11-04T12:44:26.961288Z"
-