Send a version by email

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://docs.storydoc.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Storydoc API MCP server": {
    "url": "https://docs.storydoc.com/mcp"
  }
}

Close
POST /v2/versions/{versionId}/send

Emails a link to a version, on behalf of a team member (senderEmail), the way sending it from the editor does: the email carries the member's name and replies go to them.

  • The version must be published: it has a live link that hasn't expired.
  • The sender must be a team member with edit access to the version. Viewer and commenter seats can't send.
  • An API key created by a team member sends only as that member, unless they are an administrator. An organization-wide API token created by an administrator can send as anyone in the organization.
  • Every recipient, and every reminder, counts against the sender's email allowance. quota in the response is what is left of it after this send.
  • Available to every workspace.
  • The API key's own limits apply first: a version the key can't open (a key limited to another story, or a version in a folder the key's creator can't open) answers 404.

Path parameters

  • versionId string Required

    The ID of the version to send

application/json

Body Required

  • senderEmail string(email) Required

    The team member the email comes from. They need edit access to the version, and the send counts against their email allowance. An API key created by a team member can name only that member, unless they are an administrator.

  • emails array[string(email)] Required

    Recipients: up to 50 different addresses. An address listed twice (in any case) gets one email.

    At least 1 element.

  • message string

    A note shown in the email. The server trims it and cuts it to 1000 characters.

  • reminder object

    Reminder emails to each recipient every everyDays days, at most 3, while the link is live. A version with an Accept button stops reminding a recipient once it is accepted. Leave out for no reminders. Not on every plan.

    Hide reminder attribute Show reminder attribute object
    • everyDays integer Required

      Minimum value is 1, maximum value is 30.

Responses

  • 200 application/json

    Sent

    Hide response attributes Show response attributes object
    • sendId string Required

      This send's ID

    • sent array[string(email)] Required

      The addresses the email went out to, lower-cased. One that failed is left out and not counted against the allowance.

    • quota object | null Required

      The sender's email allowance after this send. null in the rare case it couldn't be read; the emails were still sent.

      Hide quota attributes Show quota attributes object | null
      • per string

        The allowance's period (UTC)

        Values are month or day.

      • limit integer

        Emails per period

      • used integer
      • remaining integer
  • 400 application/json

    Invalid request, or an API key that is no longer valid

    Hide response attribute Show response attribute object
    • error string
  • 403 application/json

    Authentication failed, the key can't send as this sender, the sender can't send this version, or the account can't send right now

    Hide response attribute Show response attribute object
    • error string
  • 404 application/json

    Version not found, out of the API key's reach, or email sending isn't enabled for the workspace

    Hide response attribute Show response attribute object
    • error string
  • 409 application/json

    The version has no live link

    Hide response attribute Show response attribute object
    • error string
  • 429 application/json

    Too many requests: the API's own limit for this endpoint, or the sender's hourly email limit

    Hide headers attributes Show headers attributes
    • x-rate-limit-counter integer

      Current request count

    • x-rate-limit-maximum integer

      Maximum allowed requests

    Hide response attribute Show response attribute object
    • error string
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • error string
    • errorId string
  • 502 application/json

    No email could be sent; nothing counted against the allowance

    Hide response attribute Show response attribute object
    • error string
POST /v2/versions/{versionId}/send
curl \
 --request POST 'https://api.storydoc.com/v2/versions/61b1f40a3a86b7a96d0d8ccc/send' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{
  "senderEmail": "john.doe@company.com",
  "emails": [
    "jane@client.com",
    "sam@client.com"
  ],
  "message": "Here is the proposal we discussed.",
  "reminder": {
    "everyDays": 3
  }
}'
Request example
{
  "senderEmail": "john.doe@company.com",
  "emails": [
    "jane@client.com",
    "sam@client.com"
  ],
  "message": "Here is the proposal we discussed.",
  "reminder": {
    "everyDays": 3
  }
}
Response examples (200)
{
  "sendId": "6740c1f2a3b4c5d6e7f80912",
  "sent": [
    "jane@client.com",
    "sam@client.com"
  ],
  "quota": {
    "per": "month",
    "limit": 50,
    "used": 2,
    "remaining": 48
  }
}
Response examples (400)
{
  "error": "Missing senderEmail in request body"
}
{
  "error": "senderEmail must be a valid email address"
}
{
  "error": "senderEmail email@domain.com not found in this organization"
}
{
  "error": "Add at least one recipient"
}
{
  "error": "Invalid email address: jane@client"
}
{
  "error": "You can send to up to 50 recipients at a time"
}
{
  "error": "Reminders can repeat every 1 to 30 days"
}
{
  "error": "Invalid tokenId."
}
{
  "error": "Token has been revoked"
}
{
  "error": "Token is not active"
}
Response examples (403)
{
  "error": "Missing authorization token"
}
{
  "error": "Access denied"
}
{
  "error": "Token is outdated."
}
{
  "error": "The member who created this API key is no longer in the organization."
}
{
  "error": "Viewers and Commenters can't create API keys"
}
{
  "error": "An API key can only send as the person who created it"
}
{
  "error": "senderEmail email@domain.com doesn't have edit access to this version"
}
{
  "error": "Not enough email sends remaining"
}
{
  "error": "Not enough email sends remaining today"
}
{
  "error": "Upgrade your plan to send automatic reminders"
}
{
  "error": "Verify your email before sending"
}
Response examples (404)
{
  "error": "Version not found"
}
Response examples (409)
{
  "error": "Publish the version before sending it"
}
{
  "error": "This version has expired"
}
Response examples (429)
{
  "error": "Too many requests"
}
{
  "error": "Too many emails sent. Try again later."
}
Response examples (500)
{
  "error": "Error occured",
  "errorId": "550e8400-e29b-41d4-a716-446655440000"
}
Response examples (502)
{
  "error": "Couldn't send the email. Try again."
}