---
title: "Record a Share/Export"
method: POST
path: "/api/v1/share-export/record"
tags: ["Share / Export"]
---

# Record a Share/Export

`POST /api/v1/share-export/record`

## Request

- Base URL: `https://www.endlesstravelplans.com`
- URL: `https://www.endlesstravelplans.com/api/v1/share-export/record`
- Auth: HTTP bearer

Records a share/export action against the user's monthly quota. The server
is the source of truth: if the user has hit their free monthly limit, the
action is NOT counted and the limit info is returned with remaining: 0.
Otherwise the counter is incremented and the fresh quota info is returned.

## Request body

- object
  - `tool` string, nullable: Optional tool identifier for analytics.

## Response `200`

- union
  - object
    - `limit` integer
    - `used` integer
    - `remaining` integer
    - `resets_at` string
    - `is_pro` boolean
  - object
    - `error` string
    - `message` string
    - `limit` integer
    - `used` integer
    - `remaining` integer
    - `resets_at` string
    - `is_pro` boolean
  - object: Recorded shape (tests/Fixtures/api-shapes/share-export-record.json)
    - `is_pro` boolean
    - `limit` integer
    - `remaining` integer
    - `resets_at` string
    - `used` integer

## Other responses

- `401`: unauthenticated: No valid bearer token was sent.
- `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`: server_error: Unhandled failure; quote `request_id` to support.

---

[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)
