campaign_write · Method: enroll_drafts
Hosted OAuth MCP, local MCP, and REST API.
Use the campaign’s current revision and the selected drafts’ current revisions. Enrollment can run verification and fit scoring. It does not approve sending.
Example
All IDs, addresses and revisions below are illustrative. Replace them with values read from your workspace.- MCP
- REST
{
"name": "campaign_write",
"arguments": {
"method": "enroll_drafts",
"campaignId": "11111111-1111-4111-8111-111111111111",
"campaignRevision": 3,
"drafts": [
{
"draftId": "11111111-1111-4111-8111-111111111111",
"draftRevision": 1
}
]
}
}
curl https://api.vsyble.com/v1/outreach \
--request POST \
--header "Content-Type: application/json" \
--header "X-Vsyble-Api-Key: $VSYBLE_API_KEY" \
--data '{
"action": "enrollMany",
"campaignId": "11111111-1111-4111-8111-111111111111",
"campaignRevision": 3,
"drafts": [
{
"draftId": "11111111-1111-4111-8111-111111111111",
"draftRevision": 1
}
]
}'
Inputs
| Field | Type | Requirement | Details |
|---|---|---|---|
organizationId | string | Optional | Workspace ID. Omit to use your current workspace. Format: uuid. |
campaignId | string | Required | Format: uuid. |
campaignRevision | integer | Required | Minimum: 1. Maximum: 2147483647. |
drafts | object[] | Required | Minimum items: 1. Maximum items: 100. |
drafts[].draftId | string | Required | Format: uuid. |
drafts[].draftRevision | integer | Required | Minimum: 1. Maximum: 2147483647. |
method: enroll_drafts alongside these fields. For REST, use action: enrollMany instead of method.
Fields inside an optional object are required only when that object is provided. Do not send fields from a different method.
Result
MCP returns the following projected schema as structured content and JSON text. The REST response may contain additional fields; do not rely on undocumented fields.Response schema
Response schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"enrolled": {
"type": [
"number",
"null"
]
},
"results": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"draftId": {
"type": [
"string",
"null"
]
},
"enrollmentId": {
"type": [
"string",
"null"
]
},
"status": {
"type": [
"string",
"null"
]
},
"code": {
"type": [
"string",
"null"
]
},
"enrollment": {
"type": "object",
"properties": {
"id": {
"type": [
"string",
"null"
]
},
"recipient_email": {
"type": [
"string",
"null"
]
},
"person_record_id": {
"type": [
"string",
"null"
]
},
"status": {
"type": [
"string",
"null"
]
},
"verification": {
"type": [
"string",
"null"
]
},
"last_reply_at": {
"type": [
"string",
"null"
]
},
"last_sent_at": {
"type": [
"string",
"null"
]
},
"pause_until": {
"type": [
"string",
"null"
]
},
"campaign_revision": {
"type": [
"number",
"null"
]
},
"person": {
"anyOf": [
{
"type": "object",
"properties": {
"full_name": {
"type": [
"string",
"null"
]
},
"job_title": {
"type": [
"string",
"null"
]
},
"company_name": {
"type": [
"string",
"null"
]
},
"company_domain": {
"type": [
"string",
"null"
]
},
"linkedin_url": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"recipient_verification": {
"anyOf": [
{
"type": "object",
"properties": {
"verdict": {
"type": [
"string",
"null"
]
},
"reason": {
"type": [
"string",
"null"
]
},
"checkedAt": {
"type": [
"string",
"null"
]
},
"expiresAt": {
"type": [
"string",
"null"
]
},
"isFresh": {
"type": [
"boolean",
"null"
]
},
"role": {
"type": [
"boolean",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"messages": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": [
"string",
"null"
]
},
"draft_id": {
"type": [
"string",
"null"
]
},
"status": {
"type": [
"string",
"null"
]
},
"block_reason": {
"type": [
"string",
"null"
]
},
"due_at": {
"type": [
"string",
"null"
]
},
"sent_at": {
"type": [
"string",
"null"
]
},
"step": {
"type": [
"number",
"null"
]
},
"draft_revision": {
"type": [
"number",
"null"
]
},
"requires_admin_approval": {
"type": [
"boolean",
"null"
]
},
"delivery_failure": {
"anyOf": [
{
"type": "object",
"properties": {
"failedAt": {
"type": [
"string",
"null"
]
},
"reason": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}