Skip to content
Insy
For developers
Esc
↑↓navigate↵open⌘Jpreview

Cancel a membership subscription

Cancels at the end of the paid period where the plan allows it; access lasts until accessUntil.

Scope: memberships.write.

POST/v1/me/memberships/{communitySlug}/cancel
Authorization
AuthorizationBearer token (API Key) · headerrequired
API Key for programmatic access (format: insy_xxxxx)
Path parameters
communitySlugstringrequired
Responses
200Successful response
successbooleanrequired
Whether the request was successful
errorCodestringrequired
The error code returned by the request
Allowed:not_foundbad_requestalready_existsunauthorizedforbiddeninternal_server_errorservice_unavailabletimeoutconflictprecondition_failedunprocessable_entitytoo_many_requests
messagestringrequired
The message returned by the request
dataV1CancellationObject
Show properties
communitystringrequired
Community name.
canceledstring | nullrequired
Allowed:immediatelyat_period_endalready_at_period_end
accessUntilstring<date> | nullrequired
Last day of access; null when access ended immediately.
400Invalid input (`errorCode: bad_request`, `reason: invalid_input`).
401Missing, invalid or expired access token or API key.
403The token lacks the operation's scope (`reason: insufficient_scope`).
429Per-account rate limit (120/min, 3000/h, shared with `/mcp`); see `Retry-After`.
Try it
Server
Authorization
Parameters
Request
curl -X POST "https://api.insy.io/v1/me/memberships/string/cancel" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "success": true,
  "errorCode": "not_found",
  "message": "Success",
  "data": {
    "community": "string",
    "canceled": "immediately",
    "accessUntil": "2019-08-24"
  }
}