---
title: "Open a draft"
method: POST
path: "/api/v2/votes/{code}/open"
tags: ["Votes (v2)"]
---

# Open a draft

`POST /api/v2/votes/{code}/open`

## Request

- Base URL: `https://www.endlesstravelplans.com`
- URL: `https://www.endlesstravelplans.com/api/v2/votes/{code}/open`
- Auth: HTTP bearer

Shares the caller's unshared draft (the Share step): the vote takes ballots from now and the document
carries the share link and the analytics events for the client to send.

## Response `200`

- object
  - `code` string
  - `state` string
  - `share_url` string
  - `events` object[]
    - `name` string
    - `properties` object
      - `tool` string

## Other responses

- `401`: unauthenticated: No valid bearer token was sent.
- `409`: already open or closed
- `422`: validation_failed: The request body failed validation; field messages are in `errors`.
- `429`: rate_limited: A throttle or a per-account allowance refused the request; `retry_after` or `remaining` may be present.
- `500`

---

[API](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api.md) · [All operations](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api/llms.txt) · [OpenAPI document](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api/revisions/ae82ed3e4a8f?raw)
