Preview a campaign's messages
GET
/api/v1/outreach/campaigns/{id}/preview
const url = 'https://digize.com/api/v1/outreach/campaigns/example/preview?contactId=example';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://digize.com/api/v1/outreach/campaigns/example/preview?contactId=example' \ --header 'x-api-key: <x-api-key>'What each of the campaign’s connection notes, messages and emails would say to one prospect, their merge tags filled from what’s known of them now (with their video’s link, or a sample of it before their page is made), and the item their run would start with.
Needs the outreach:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”contactId
required
string
Responses
Section titled “Responses”Done
Media typeapplication/json
object
accountId
required
string | null
item
required
The item their run would start with.
object
key
additional properties
videoSample
required
The video’s link is a sample: their page isn’t made yet.
boolean
previews
required
Array<object>
object
stepId
required
string
kind
required
string
when
required
string
text
required
string
subject
required
string | null
empty
required
Merge tags that came out empty for them.
Array<string>
Example
{ "previews": [ { "kind": "invite" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}