Get Campaign
Overview
This endpoint retrieves details of a specific campaign by its ID.Endpoint Details
- URL:
/campaign/{id} - Method:
GET - Authentication: Required (
API KEY)
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | UUID | Yes | The unique identifier of the campaign. |
Request Headers
| Header | Value | Description |
|---|---|---|
Authorization | Bearer <api_key> | Your API KEY |
Example Request
Response
Success Response
- Status Code:
200 OK
Error Response
- Status Code:
200 OK(with error message)
Response Fields
Thedata object represents the campaign and has the following structure:
| Field | Type | Description |
|---|---|---|
name | string | The name of the campaign. |
notes | string | Additional notes or description for the campaign. |
status | string | The current status of the campaign (e.g., active, paused). |
campaign_type | string | The type of campaign (e.g., outbound, inbound). |
contacts_list_source | array | Sources of the contacts list (e.g., web, manual). |
contacts_list_tags | array | Tags associated with the contacts list. |
contacts_list_categories | array | Categories associated with the contacts list. |
contacts_list_source_metadata | object | Metadata about the contacts list sources. |
agent_variables_contact_metadata_mapping | object | Mapping of agent variables to contact metadata. |
call_progress | integer | The progress of the campaign (e.g., percentage completed). |
call_time_of_day_from | string | The start time for calls (in HH:MM:SS format). |
call_time_of_day_to | string | The end time for calls (in HH:MM:SS format). |
number_of_call_attempts | array | Number of call attempts for each contact. |
retry_delay | array | Delay between retry attempts (in seconds). |
retry_delay_unit | array | Unit of the retry delay (e.g., seconds). |
days_of_week | array | Days of the week when the campaign is active (e.g., 1 for Monday). |
time_zone | string | The time zone for the campaign. |
created_at | string | Timestamp when the campaign was created. |
updated_at | string | Timestamp when the campaign was last updated. |
deleted_at | string | Timestamp when the campaign was deleted (if applicable). |
started_at | string | The start date of the campaign. |
ended_at | string | The end date of the campaign. |
webhook_mapping_variables | object | Variables for webhook mappings. |
webhook_mapping_variables_sources | object | Sources for webhook mapping variables. |