Documentation Index
Fetch the complete documentation index at: https://docs.brilo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Contact Service
The Contact Service allows you to manage contacts in your workspace. You can create, read, update, and delete contacts.
Create a new contact in your workspace.
Request Body
| Field | Type | Required | Description |
|---|
| first_name | string | No | Contact’s first name |
| last_name | string | No | Contact’s last name |
| phone | string | Yes | Contact’s phone number in E.164 format (e.g., +1234567890) |
| email | string | No | Contact’s email address |
| additional_notes | string | No | Additional notes about the contact |
Example Request
{
"first_name": "John",
"last_name": "Doe",
"phone": "+1234567890",
"email": "john@example.com",
"additional_notes": "VIP customer"
}
Response
{
"status": 201,
"data": {
"id": "contact-123",
"created_at": "2024-03-20T10:00:00Z",
"first_name": "John",
"last_name": "Doe",
"phone": "+1234567890",
"email": "john@example.com",
"additional_notes": "VIP customer",
"status": "active",
"updated_at": "2024-03-20T10:00:00Z",
"workspace_id": "workspace-123"
}
}
Retrieve a specific contact by ID.
Parameters
| Parameter | Type | Required | Description |
|---|
| id | string | Yes | The ID of the contact to retrieve |
Response
{
"id": "contact-123",
"created_at": "2024-03-20T10:00:00Z",
"first_name": "John",
"last_name": "Doe",
"phone": "+1234567890",
"email": "john@example.com",
"additional_notes": "VIP customer",
"status": "active",
"updated_at": "2024-03-20T10:00:00Z",
"workspace_id": "workspace-123",
"campaign_id": "campaign-123"
}
Update an existing contact.
Parameters
| Parameter | Type | Required | Description |
|---|
| id | string | Yes | The ID of the contact to update |
Request Body
| Field | Type | Required | Description |
|---|
| first_name | string | No | Contact’s first name |
| last_name | string | No | Contact’s last name |
| phone | string | No | Contact’s phone number in E.164 format |
| email | string | No | Contact’s email address |
| additional_notes | string | No | Additional notes about the contact |
Example Request
{
"first_name": "John",
"last_name": "Smith",
"phone": "+1987654321",
"email": "john.smith@example.com",
"additional_notes": "Updated VIP customer"
}
Response
{
"status": 200,
"data": {
"id": "contact-123",
"created_at": "2024-03-20T10:00:00Z",
"first_name": "John",
"last_name": "Smith",
"phone": "+1987654321",
"email": "john.smith@example.com",
"additional_notes": "Updated VIP customer",
"status": "active",
"updated_at": "2024-03-20T11:00:00Z",
"workspace_id": "workspace-123"
}
}
Delete a contact from your workspace.
Parameters
| Parameter | Type | Required | Description |
|---|
| id | string | Yes | The ID of the contact to delete |
Response
{
"status": 200,
"message": "Contact deleted successfully"
}