Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.
Cancel, resume, close

Close a subscription

Builds the transaction that closes the authorisation of a cancelled or stopped subscription whose end has passed, or at once of one stopped with stop_reason authority_closed. closable on the subscription says whether it can close now, and closable_from from when. The subscription's own wallet signs and sends it, and gets its rent back. Then you confirm.
POSThttps://api.mesub.io/v1/subscriptions/{id}/close
POSTClose a subscription
https://api.mesub.io/v1/subscriptions/{id}/close

Calls are real. They go to https://api.mesub.io and act on the project the key belongs to.

Authorization

The key stays in this browser and is sent only to the API. It is not stored or logged by the docs.

Path

Fill id to send.

cURL
curl -X POST "https://api.mesub.io/v1/subscriptions/{id}/close" \
  -H "Authorization: Bearer $MESUB_API_KEY"
Response

Send the request to see the status, the headers and the body.

Limit: 60 calls a minute per API key.Guide: Manage from your server.

Headers

Mesub-Versionenum<string>

The version of this contract the call is written against. Without it, the call is served as the first version, 2026-10-02. Any other value is refused with 400 unsupported_version.

One of2026-10-02

Request example
curl -X POST "https://api.mesub.io/v1/subscriptions/cmg1x0abc0001/close" \ -H "Authorization: Bearer $MESUB_API_KEY"
Response example
{ "transaction": "gAIBBg0Xq3ZkT9yLmR4vP7wJ8sN2aHcVbE5uYtKfDgQxWz1oMiCj6rA0lSnUhBdXe2GqFpYv7mNcTz4RwK8sLjH5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQIDBAUGBwgJCgsM", "last_valid_block_height": "301245678", "transaction_expires_at": "2026-01-01T00:00:33.000Z" }