Skip to content

Preview a campaign's messages

GET
/api/v1/outreach/campaigns/{id}/preview
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.

id
required
string
>= 1 characters <= 64 characters
contactId
required
string
>= 1 characters <= 64 characters

Done

Media typeapplication/json
object
accountId
required
string | null
item
required

The item their run would start with.

object
key
additional properties
video
required
Any of:
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
Allowed values: invite message email
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}