campaign_write · Method: submit_messages
Hosted OAuth MCP, local MCP, and REST API.
Submit only the exact draft revisions you reviewed. Submission is a review request; it does not itself prove approval or delivery.
Example
All IDs, addresses and revisions below are illustrative. Replace them with values read from your workspace.- MCP
- REST
{
"name": "campaign_write",
"arguments": {
"method": "submit_messages",
"campaignId": "11111111-1111-4111-8111-111111111111",
"campaignRevision": 3,
"items": [
{
"draftId": "11111111-1111-4111-8111-111111111111",
"revision": 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": "submit",
"campaignId": "11111111-1111-4111-8111-111111111111",
"campaignRevision": 3,
"items": [
{
"draftId": "11111111-1111-4111-8111-111111111111",
"revision": 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. |
items | object[] | Required | Minimum items: 1. Maximum items: 100. |
items[].draftId | string | Required | Format: uuid. |
items[].revision | integer | Required | Minimum: 1. Maximum: 2147483647. |
method: submit_messages alongside these fields. For REST, use action: submit 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": {
"submission": {
"type": "object",
"properties": {
"id": {
"type": [
"string",
"null"
]
},
"campaign_id": {
"type": [
"string",
"null"
]
},
"status": {
"type": [
"string",
"null"
]
},
"feedback": {
"type": [
"string",
"null"
]
},
"submitted_at": {
"type": [
"string",
"null"
]
},
"reviewed_at": {
"type": [
"string",
"null"
]
},
"campaign_revision": {
"type": [
"number",
"null"
]
},
"message_count": {
"type": [
"number",
"null"
]
},
"items": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"draftId": {
"type": [
"string",
"null"
]
},
"messageId": {
"type": [
"string",
"null"
]
},
"revision": {
"type": [
"number",
"null"
]
},
"step": {
"type": [
"number",
"null"
]
},
"snapshot": {
"type": "object",
"properties": {
"draft_id": {
"type": [
"string",
"null"
]
},
"id": {
"type": [
"string",
"null"
]
},
"subject": {
"type": [
"string",
"null"
]
},
"body": {
"type": [
"string",
"null"
]
},
"to": {
"type": [
"string",
"null"
]
},
"cc": {
"type": [
"string",
"null"
]
},
"bcc": {
"type": [
"string",
"null"
]
},
"recipient_email": {
"type": [
"string",
"null"
]
},
"enrollment_id": {
"type": [
"string",
"null"
]
},
"revision": {
"type": [
"number",
"null"
]
},
"step": {
"type": [
"number",
"null"
]
},
"attachment_ids": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}