List draft campaigns
Return a list of draft campaigns from your tenant. You may restrict the list of draft campaigns to those associated with a specific data template.
Request
- Base URLhttps://app.amperity.com/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
A supported version of the Amperity API. You may use the api-version request header instead of the api_version request parameter.
Set this value to true to include a total count of all results. Default value: false. Obtaining the total count of all results can be an expensive operation when there is a high number of pages in the results set.
The maximum number of records to include in a single page of results.
An opaque token that is used to paginate results. Omit the next_token property to return the first page. Use the cursor value for next_token that was returned in a response to view the next page of results. The value cannot be empty.
Use this parameter to restrict the list of campaigns that are returned to only campaigns that are configured to use a specific data template. To find a data template's ID, open the Destinations page, open the menu in the row for the data template, and select Copy ID. A data template ID looks like ptg-2QLLqXBEq.
Headers
The ID for the tenant to which a request will be sent.
A supported version of the Amperity API.
Response
List of draft campaigns
Example response
{
"data": [
{
"id": "cc-21HCWon6Y",
"name": "Holiday Campaign Draft"
}
],
"next_token": "ZVEy1iwsKBs9a6H"
}Changes
No recorded changes to this operation across all 1 revision of this API.