> For the complete documentation index, see [llms.txt](https://docs.storydoc.com/llms.txt)

# Send a version by email

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



## Servers
- Production API server: https://api.storydoc.com (Production API server)


## Authentication methods
- Bearer auth


## Parameters

### Path parameters

- **versionId** (string)
  The ID of the version to send



### Body: application/json (object)

- **senderEmail** (string(email))
  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)])
  Recipients: up to 50 different addresses. An address listed twice (in any case) gets one email.

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



## Responses
### 200
Sent

#### Body: application/json (object)
- **sendId** (string)
  This send's ID

- **sent** (array[string(email)])
  The addresses the email went out to, lower-cased. One that failed is left out and not counted against the allowance.

- **quota** (object | null)
  The sender's email allowance after this send. null in the rare case it couldn't be read; the emails were still sent.


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

#### Body: application/json (object)
- **error** (string)


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

#### Body: application/json (object)
- **error** (string)


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

#### Body: application/json (object)
- **error** (string)


### 409
The version has no live link

#### Body: application/json (object)
- **error** (string)


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

- **x-rate-limit-counter** (integer)
  Current request count

- **x-rate-limit-maximum** (integer)
  Maximum allowed requests


#### Body: application/json (object)
- **error** (string)


### 500
Internal server error

#### Body: application/json (object)
- **error** (string)

- **errorId** (string)


### 502
No email could be sent; nothing counted against the allowance

#### Body: application/json (object)
- **error** (string)



[Powered by Bump.sh](https://bump.sh)
