> ## 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.

# Create drafts from contacts

Create draft placeholders for selected CRM contacts. Returns each contact's draft ID and revision in input order, including an existing draft it reused; pass them to enroll\_drafts as draftId and draftRevision.

**Tool:** `campaign_write` · **Method:** `create_drafts_from_contacts`

Hosted OAuth MCP, local MCP, and REST API.

The result follows input order. Inspect status and reason for each contact. An existing available draft can be returned with reason: draft\_exists. Pass each usable draftId and revision to enroll\_drafts as draftId and draftRevision.

## 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": "create_drafts_from_contacts",
>     "personRecordIds": [
>       "11111111-1111-4111-8111-111111111111"
>     ]
>   }
> }
> ```

> [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": "draftsFromContacts",
>   "personRecordIds": [
>     "11111111-1111-4111-8111-111111111111"
>   ]
> }'
> ```

## Inputs

| Field | Type | Requirement | Details |
| - | - | - | - |
| `organizationId` | string | Optional | Workspace ID. Omit to use your current workspace. Format: uuid. |
| `personRecordIds` | string\[] | Required | Minimum items: 1. Maximum items: 100. |

For MCP, add `method: create_drafts_from_contacts` alongside these fields. For REST, use `action: draftsFromContacts` 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": {
>     "created": {
>       "type": [
>         "number",
>         "null"
>       ]
>     },
>     "skipped": {
>       "type": [
>         "number",
>         "null"
>       ]
>     },
>     "drafts": {
>       "anyOf": [
>         {
>           "type": "array",
>           "items": {
>             "type": "object",
>             "properties": {
>               "personRecordId": {
>                 "type": "string",
>                 "format": "uuid",
>                 "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
>               },
>               "status": {
>                 "type": "string",
>                 "enum": [
>                   "created",
>                   "skipped"
>                 ]
>               },
>               "reason": {
>                 "anyOf": [
>                   {
>                     "type": "string",
>                     "enum": [
>                       "draft_exists",
>                       "no_email",
>                       "contact_unavailable"
>                     ]
>                   },
>                   {
>                     "type": "null"
>                   }
>                 ]
>               },
>               "draftId": {
>                 "anyOf": [
>                   {
>                     "type": "string",
>                     "format": "uuid",
>                     "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
>                   },
>                   {
>                     "type": "null"
>                   }
>                 ]
>               },
>               "revision": {
>                 "anyOf": [
>                   {
>                     "type": "integer",
>                     "exclusiveMinimum": 0,
>                     "maximum": 9007199254740991
>                   },
>                   {
>                     "type": "null"
>                   }
>                 ]
>               },
>               "recipientEmail": {
>                 "type": [
>                   "string",
>                   "null"
>                 ]
>               }
>             },
>             "required": [
>               "personRecordId",
>               "status",
>               "reason",
>               "draftId",
>               "revision",
>               "recipientEmail"
>             ],
>             "additionalProperties": false
>           }
>         },
>         {
>           "type": "null"
>         }
>       ]
>     }
>   },
>   "additionalProperties": false
> }
> ```

[Download input schema](https://docs.vsyble.com/schemas/create_drafts_from_contacts.input.json) · [Download MCP response schema](https://docs.vsyble.com/schemas/create_drafts_from_contacts.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.