List the person's community memberships
Scope: memberships.read.
GET
/v1/me/membershipsAuthorization
AuthorizationBearer token (API Key) · headerrequiredAPI Key for programmatic access (format: insy_xxxxx)
Responses
200Successful response
successbooleanrequiredWhether the request was successful
errorCodestringrequiredThe error code returned by the request
Allowed:
not_foundbad_requestalready_existsunauthorizedforbiddeninternal_server_errorservice_unavailabletimeoutconflictprecondition_failedunprocessable_entitytoo_many_requestsmessagestringrequiredThe message returned by the request
dataV1MembershipObject[]Show propertiesHide properties
Array of
V1MembershipObjectcommunityV1NamedSlugObjectrequiredShow propertiesHide properties
namestringrequiredslugstringrequiredactivebooleanrequiredvalidUntilstring<date> | nullrequiredplanV1MembershipPlanObject | anyrequiredShow propertiesHide properties
Any of:
V1MembershipPlanObject
namestringrequiredpriceV1MoneyObject | anyrequiredShow propertiesHide properties
Any of:
V1MoneyObject
amountCentsnumberrequiredMinor units (cents).
currencystring | nullrequiredany
anyintervalstring | nullrequiredany
anypaymentMethodstring | nullrequiredjoinedTelegrambooleanrequiredsubscriptionStatusstring | nullrequiredStripe subscription status, for a subscription.
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
Request
curl -X GET "https://api.insy.io/v1/me/memberships" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.insy.io/v1/me/memberships", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"https://api.insy.io/v1/me/memberships",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"success": true,
"errorCode": "not_found",
"message": "Success",
"data": [
{
"community": {
"name": "string",
"slug": "string"
},
"active": true,
"validUntil": "2019-08-24",
"plan": {
"name": "string",
"price": {
"amountCents": 0,
"currency": "PLN"
},
"interval": "month"
},
"paymentMethod": "string",
"joinedTelegram": true,
"subscriptionStatus": "string"
}
]
}Invalid input (`errorCode: bad_request`, `reason: invalid_input`).
Missing, invalid or expired access token or API key.
The token lacks the operation's scope (`reason: insufficient_scope`).
Per-account rate limit (120/min, 3000/h, shared with `/mcp`); see `Retry-After`.