> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vsyble.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit messages for approval

Submit selected draft revisions for campaign approval.

**Tool:** `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.

> [tab] MCP
>
> ```json theme={null}
> {
>   "name": "campaign_write",
>   "arguments": {
>     "method": "submit_messages",
>     "campaignId": "11111111-1111-4111-8111-111111111111",
>     "campaignRevision": 3,
>     "items": [
>       {
>         "draftId": "11111111-1111-4111-8111-111111111111",
>         "revision": 1
>       }
>     ]
>   }
> }
> ```

> [tab] REST
>
> ```bash theme={null}
> 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. |

For MCP, add `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.

> [accordion] Response schema
>
> ```json theme={null}
> {
>   "$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
> }
> ```

[Download input schema](https://docs.vsyble.com/schemas/submit_messages.input.json) · [Download MCP response schema](https://docs.vsyble.com/schemas/submit_messages.output.json)

See [permissions](https://docs.vsyble.com/security/permissions.md), [errors and recovery](https://docs.vsyble.com/api/errors.md), and [sending approval](https://docs.vsyble.com/security/sending.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.