Skip to content

Drafts, emails and templates

API reference for VIPOutreach outreach drafts, scheduling and sending, sent emails and reusable templates.

A draft is a written email that waits for review. Approving it schedules it, and the sender's mailbox sends it in its sending hours. Emails are the scheduled, sent and failed ones, and templates are the reusable texts for any project.

Every draft has a revision. You send the current revision when you approve or change a draft, so nobody approves a text that someone else changed in the meantime.

Each operation below shows its REST route under https://app.vipoutreach.com/api/v1, the command for the terminal and the MCP tool where they exist. The command's flags are listed with it; IDs in the route come first, in order. Fields that hold an object go in a JSON file passed with --input.

Templates

List outreach templates

GET /api/v1/templates

Read only

List team library outreach templates.

ID
template.list
CLI
vipoutreach template list --include-archived --search --sort
MCP
vipoutreach_run_operation with template.list
Access
outreach_templates:read
Field In Type What it is
page query integer Page number, starting at 1. Default: 1. At least 1.
per_page query integer Results per page (1-100). Default: 25. From 1 to 100.
q query string Search text. Up to 255 characters. Can be null.
sort --sort query string Sort order; a leading "-" sorts descending. One of: created_at, -created_at, updated_at, -updated_at, name, -name. Default: "-created_at".
include_archived --include-archived query boolean Include archived items. Default: false.

* required

Show an outreach template

GET /api/v1/templates/{template_id}

Read only

Show one team library outreach template.

ID
template.show
CLI
vipoutreach template show <template-id>
MCP
vipoutreach_run_operation with template.show
Access
outreach_templates:read
Field In Type What it is
template_id * path string Outreach template public ID.

* required

Create an outreach template

POST /api/v1/templates

Create a team library outreach template.

ID
template.create
CLI
vipoutreach template create --body-html --body-mode --body-text --lock-exact-text --name --subject-template --template-language
MCP
vipoutreach_run_operation with template.create
Access
outreach_templates:write
Field In Type What it is
name * --name body string Name. Up to 120 characters.
subject_template * --subject-template body string Email subject. Variables like {{contact.first_name}} are filled per prospect. Up to 500 characters.
lock_exact_text --lock-exact-text body boolean Keep the template text exactly; AI fills only {{ai:subject}} and {{ai:hook}}.
template_language --template-language body string Language of the locked template and its AI slots. Default en.
body_mode * --body-mode body string Whether the body is plain text or rich HTML. One of: plain, rich.
body_text --body-text body string Email body as plain text. Variables like {{contact.first_name}} are filled per prospect. Can be null.
body_html --body-html body string Email body as HTML (when the body mode is rich). Variables like {{contact.first_name}} are filled per prospect. Can be null.

* required

Update an outreach template

PATCH /api/v1/templates/{template_id}

Partially update a team library outreach template.

ID
template.update
CLI
vipoutreach template update <template-id> --body-html --body-mode --body-text --lock-exact-text --name --subject-template --template-language
MCP
vipoutreach_run_operation with template.update
Access
outreach_templates:write
Field In Type What it is
template_id * path string Outreach template public ID.
name --name body string Name. Up to 120 characters.
subject_template --subject-template body string Email subject. Variables like {{contact.first_name}} are filled per prospect. Up to 500 characters.
lock_exact_text --lock-exact-text body boolean Keep the template text exactly; AI fills only {{ai:subject}} and {{ai:hook}}.
template_language --template-language body string Language of the locked template and its AI slots. Default en.
body_mode --body-mode body string Whether the body is plain text or rich HTML. One of: plain, rich.
body_text --body-text body string Email body as plain text. Variables like {{contact.first_name}} are filled per prospect. Can be null.
body_html --body-html body string Email body as HTML (when the body mode is rich). Variables like {{contact.first_name}} are filled per prospect. Can be null.

* required

Archive an outreach template

POST /api/v1/templates/{template_id}/archive

Archive a team library outreach template when its visible usage permits the change.

ID
template.archive
CLI
vipoutreach template archive <template-id>
MCP
vipoutreach_run_operation with template.archive
Access
outreach_templates:write
Field In Type What it is
template_id * path string Outreach template public ID.

* required

Restore an outreach template

POST /api/v1/templates/{template_id}/restore

Restore an archived team library outreach template when its visible usage permits the change.

ID
template.restore
CLI
vipoutreach template restore <template-id>
MCP
vipoutreach_run_operation with template.restore
Access
outreach_templates:write
Field In Type What it is
template_id * path string Outreach template public ID.

* required

Preview an outreach template

POST /api/v1/templates/{template_id}/preview

Read only

Render an outreach template preview with sample data.

ID
template.preview
CLI
vipoutreach template preview <template-id>
MCP
vipoutreach_run_operation with template.preview
Access
outreach_templates:read
Field In Type What it is
template_id * path string Outreach template public ID.

* required

Show outreach template usage

GET /api/v1/templates/{template_id}/usage

Read only

Show campaigns in the effective project reach that use an outreach template.

ID
template.usage
CLI
vipoutreach template usage <template-id>
MCP
vipoutreach_run_operation with template.usage
Access
outreach_templates:read
Field In Type What it is
template_id * path string Outreach template public ID.

* required

Write a library template field with AI

POST /api/v1/templates/{template_id}/ai-write

Spends credits Needs a retry key Runs in the background

Preview or start AI writing for one library template subject or body field. Generated content is untrusted draft text.

ID
template.ai_write
CLI
vipoutreach template ai-write <template-id> --interval --preview --target --timeout --wait
MCP
vipoutreach_run_operation with template.ai_write
Access
outreach_templates:write, outreach_spend:write
Field In Type What it is
template_id * path string Template public ID.
preview --preview body boolean Set to true to see what would happen and what it costs, without changing anything or spending credits. Default: false.
target * --target body string What it applies to (see the allowed values). One of: subject, body.

* required

Drafts

Create outreach drafts

POST /api/v1/campaigns/{campaign_id}/drafts

Create up to 100 review drafts for ready prospects in one campaign. Use prospect_ids for an explicit filtered set or all_ready to take the first ready batch. This only creates drafts and never sends email.

ID
draft.create
CLI
vipoutreach draft create <campaign-id> --all-ready --prospect-ids --write-anyway
MCP
vipoutreach_run_operation with draft.create
Access
outreach_executions:write
Field In Type What it is
campaign_id * path string Campaign public ID.
prospect_ids --prospect-ids body array of string Prospect public IDs to filter to Ready.
all_ready --all-ready body boolean Create drafts for the first 100 Ready prospects.
write_anyway --write-anyway body boolean Override the re-contact warning using the same audit path as the web workflow. Default: false.

* required

List outreach review drafts

GET /api/v1/campaigns/{campaign_id}/drafts

Read only

List review-queue drafts for a campaign. Drafts are reviewable preparation only and never approval to send; content previews require delegated Mail content access.

ID
draft.list
CLI
vipoutreach draft list <campaign-id> --field-page --field-per-page
MCP
vipoutreach_draft_list
Access
outreach_executions:read
Field In Type What it is
campaign_id * path string Campaign public ID.
page query integer Page number, starting at 1. Default: 1. At least 1.
per_page query integer Results per page (1-100). Default: 50. From 1 to 100.

* required

Show an outreach draft

GET /api/v1/drafts/{draft_id}

Read only

Show one review-queue draft. Drafts are reviewable preparation only and never approval to send; subject and body require delegated Mail content access.

ID
draft.show
CLI
vipoutreach draft show <draft-id>
MCP
vipoutreach_draft_show
Access
outreach_executions:read
Field In Type What it is
draft_id * path string Outreach draft public ID.

* required

Approve and schedule one reviewed draft

POST /api/v1/drafts/{draft_id}/approve

Spends credits

Explicit human approval may schedule a draft whose quality check failed. Requires the current draft revision and follow-up approval when applicable. Fresh recipient verification is reused freely; new verification spends credits only with outreach_spend:write, otherwise scheduling waits.

ID
draft.approve
CLI
vipoutreach draft approve <draft-id> --follow-up-approval-revision --revision
MCP
vipoutreach_run_operation with draft.approve
Access
outreach_send:write, api:mail:drafts:read
Field In Type What it is
draft_id * path string Outreach draft public ID.
revision * --revision body string Current Mail draft revision. Up to 64 characters.
follow_up_approval_revision --follow-up-approval-revision body string The current follow-up approval revision shown with the draft. Can be null.

* required

Update an outreach draft

PATCH /api/v1/drafts/{draft_id}

Edit subject, body, and staged attachments for a review-queue draft. Drafts are reviewable preparation only and never approval to send; recipients cannot be changed, and the current Mail draft revision is required.

ID
draft.update
CLI
vipoutreach draft update <draft-id> --body-html --body-mode --body-text --remove-attachment-refs --revision --subject
MCP
vipoutreach_draft_update
Access
outreach_executions:write, api:mail:drafts:write
Field In Type What it is
draft_id * path string Outreach draft public ID.
revision * --revision body string Current Mail draft revision. Up to 64 characters.
subject --subject body string Replacement subject. Omit to leave unchanged. Can be null.
body_mode --body-mode body string Replacement body mode. Omit to leave unchanged. One of: plain, rich.
body_text --body-text body string Replacement plain text body. Omit to leave unchanged. Can be null.
body_html --body-html body string Replacement rich HTML body when rich compose is enabled. Can be null.
add_attachments body array of object Attachments to stage, each with filename, content_base64, and optional disposition.
remove_attachment_refs --remove-attachment-refs body array of string Staged attachment refs to remove.

* required

Discard an outreach draft

DELETE /api/v1/drafts/{draft_id}

Can't be undone

Discard a review-queue draft after checking the current Mail draft revision. Drafts are reviewable preparation only and never approval to send; scheduled sends must be canceled first.

ID
draft.discard
CLI
vipoutreach draft discard <draft-id> --revision
MCP
vipoutreach_run_operation with draft.discard
Access
outreach_executions:write
Field In Type What it is
draft_id * path string Outreach draft public ID.
revision * --revision body string Current Mail draft revision. Up to 64 characters.

* required

Write an outreach draft with AI

POST /api/v1/drafts/{draft_id}/ai-write

Spends credits Needs a retry key Runs in the background

Start a Mail AI draft-compose preview from a reviewed outreach angle for this review-queue draft. This can spend credits and does not send email.

ID
draft.ai_write
CLI
vipoutreach draft ai-write <draft-id> --angle-operation-id --interval --revision --timeout --wait
MCP
vipoutreach_run_operation with draft.ai_write
Access
outreach_executions:read, outreach_spend:write, api:mail:ai:write
Field In Type What it is
draft_id * path string Outreach draft public ID.
angle_operation_id * --angle-operation-id body string Succeeded outreach angle operation public ID.
revision * --revision body string Current Mail draft revision. Up to 64 characters.
idempotency_key body string Retry key when calling as a tool argument; HTTP callers may use the Idempotency-Key header.

* required

Apply an AI draft preview

POST /api/v1/drafts/{draft_id}/ai-apply

Apply a succeeded Mail AI draft-compose preview to the same review-queue draft. This is free and never sends email.

ID
draft.ai_apply
CLI
vipoutreach draft ai-apply <draft-id> --body-html --operation-id --revision
MCP
vipoutreach_run_operation with draft.ai_apply
Access
outreach_executions:write, api:mail:drafts:write
Field In Type What it is
draft_id * path string Outreach draft public ID.
operation_id * --operation-id body string Mail AI draft-compose operation public ID.
revision * --revision body string Current Mail draft revision. Up to 64 characters.
body_html --body-html body string Current rich-editor HTML after applying the preview client-side; required when replacing a rich draft body. Can be null.

* required

Emails

Schedule outreach emails

POST /api/v1/emails/schedule

Spends credits Sends email Needs a retry key

Preview or schedule review drafts for sending. Scheduling requires a retry key and outreach send authority; it does not require inbox write access. New recipient verification requires outreach_spend:write and costs up to 2 credits; fresh results are reused without spending.

ID
email.schedule
CLI
vipoutreach email schedule --campaign-id --draft-ids --preview --preview-revision
MCP
vipoutreach_email_schedule
Access
outreach_executions:write, outreach_send:write
Field In Type What it is
campaign_id * --campaign-id body string Campaign public ID.
draft_ids --draft-ids body array of string Review draft public IDs. Omit to take the first 100 review drafts.
preview --preview body boolean Preview only. No scheduling or provider work is started. Default: false.
preview_revision --preview-revision body string Preview revision to protect against changed drafts before scheduling. Up to 64 characters. Can be null.
idempotency_key body string Retry key when calling as a tool argument; HTTP callers may use the Idempotency-Key header.

* required

List outreach emails

GET /api/v1/emails

Read only

List scheduled, sending, sent, blocked, and failed outreach emails for a campaign.

ID
email.list
CLI
vipoutreach email list --campaign-id --field-page --field-per-page --search --state
MCP
vipoutreach_email_list
Access
outreach_executions:read
Field In Type What it is
campaign_id --campaign-id query string Campaign public ID.
state --state query string Optional email state filter. One of: scheduled, sending, sent, blocked, failed. Can be null.
q query string Recipient search text. Can be null.
page query integer Page number, starting at 1. Default: 1. At least 1.
per_page query integer Results per page (1-100). Default: 50. From 1 to 100.

* required

Show an outreach email

GET /api/v1/emails/{email_id}

Read only

Show one scheduled or sent outreach email. Message content requires delegated Mail content access.

ID
email.show
CLI
vipoutreach email show <email-id>
MCP
vipoutreach_run_operation with email.show
Access
outreach_executions:read
Field In Type What it is
email_id * path string Outreach email public ID.

* required

Cancel a scheduled outreach email

POST /api/v1/emails/{email_id}/cancel

Return a scheduled outreach email to Review and clear stored scheduling authority.

ID
email.cancel
CLI
vipoutreach email cancel <email-id>
MCP
vipoutreach_run_operation with email.cancel
Access
outreach_executions:write
Field In Type What it is
email_id * path string Outreach email public ID.

* required

Retry a blocked or failed outreach email

POST /api/v1/emails/{email_id}/retry

Spends credits Sends email Needs a retry key

Retry a blocked or failed outreach email when its Mail draft is still resendable. Requires a retry key and current send authority.

ID
email.retry
CLI
vipoutreach email retry <email-id>
MCP
vipoutreach_run_operation with email.retry
Access
outreach_executions:write, outreach_send:write
Field In Type What it is
email_id * path string Outreach email public ID.
idempotency_key body string Retry key when calling as a tool argument; HTTP callers may use the Idempotency-Key header.

* required

Mark an outreach reply as opted out

POST /api/v1/emails/{email_id}/mark-opt-out

Record a manual opt-out for a sent outreach email.

ID
email.mark_opt_out
CLI
vipoutreach email mark-opt-out <email-id>
MCP
vipoutreach_run_operation with email.mark_opt_out
Access
outreach_prospects:write, api:mail:content:read
Field In Type What it is
email_id * path string Outreach email public ID.

* required

Mark an outreach email as complaint

POST /api/v1/emails/{email_id}/mark-complaint

Record complaint suppression evidence for a sent outreach email.

ID
email.mark_complaint
CLI
vipoutreach email mark-complaint <email-id>
MCP
vipoutreach_run_operation with email.mark_complaint
Access
outreach_executions:write, api:mail:content:read
Field In Type What it is
email_id * path string Outreach email public ID.

* required