Bursts API
This article provides sample API calls to manipulate Bursts.
/api/burst: Retrieve, create, send, and delete Bursts.
Prerequisites:
- Set up API access, verify that you have API access, and obtain a token via the get_token call OR
- Generate Personal API Token
Table of contents:
1. Access Admin > System > API Toolkit
2. Configure Bursts
2.1. Retrieve Bursts
- GET request to
/api/burstretrieves all Bursts. - GET request to
/api/burst/id/<ID>retrieves the specified Burst.
- Item: burst
- Method: GET
- Optionally, enter Burst ID to get only the specified Burst's info.
- Enter an API Token.
- [Run request]
Example Response
For GET /api/burst:
{
"bursts": [
{
"id": 1,
"name": "Daily Report Digest",
"schedule_name": "Every Day at 7 am",
"subject_template": "[Name] for [Today]",
"notification_schedule_id": 2,
"digest_template_id": 9,
"url": "https://docs.metricinsights.com/notification/burst/1"
},
{
"id": 6,
"name": "Weekly Report Digest",
"schedule_name": "Weekly",
"subject_template": "[Name] for [Today]",
"notification_schedule_id": 4,
"digest_template_id": null,
"url": "https://docs.metricinsights.com/notification/burst/6"
}
]
}
For GET /api/burst/id/<ID>:
{
"burst": {
"id": 253,
"name": "Rob Test Burst",
"schedule_name": "On Fri at 12:00",
"subject_template": "[Name] for [Today]",
"notification_schedule_id": 3,
"digest_template_id": 8,
"url": "https://docs.metricinsights.com/notification/burst/253"
}
}
Fields Description
| Parameter Name | Value Type | Description |
|---|---|---|
bursts | array | Array with all Bursts data. |
id | integer | Burst ID. |
name | string | Burst name. |
schedule_name | string | Name of the Notification Schedule on which the Burst is sent. |
subject_template | string | The template of Email Subject Line. |
notification_schedule_id | integer | The ID of the notification Schedule on which the Burst is sent. |
digest_template_id | integer | The ID of the Burst’s Email Template. |
url | string | Burst Editor URL. |
2.2. Create New Burst
- POST request to
/api/burstwith body{"name": "<name>", "subject_template": "<template>", "notification_schedule_id": <ID>, "digest_template_id": <ID>}creates a new Burst.
- Item: burst
- Method: POST
- Select JSON request and provide the parameters:
- name: New Burst Name.
- subject_template: Template of Email Subject Line.
- notification_schedule_id: ID of the Notification Schedule.
- digest_template_id: ID of the Email Template.
- Enter an API Token.
- [Run request]
2.3. Send Burst
- PUT request to
/api/burst/id/<ID>with body{"call": "send", "send_to": "all"}sends a specified burst Burst.
- Item: burst
- Method: PUT
- Enter the ID of the Burst that needs to be sent.
- Actions: Send
- Select JSON request and provide the parameters:
- call: "send"
- send_to:
"me": Send only to the User who executes the API call."all": Send to everyone on the recipient list.
- Enter an API Token.
- [Run request]
2.4. Delete Burst
- DELETE request to
/api/burst/id/<ID>deletes a specified Burst.
- Item: burst
- Method: DELETE
- Enter the ID of the Burst that needs to be deleted.
- Enter an API Token.
- [Run request]



