Access plans of a community the person manages
Name, price, billing period, whether on sale, trial days and the number of active and all-time members of each plan. At most 20.
Scope: communities.read.
GET
/v1/communities/{slug}/plansAuthorization
AuthorizationBearer token (API Key) · headerrequiredAPI Key for programmatic access (format: insy_xxxxx)
Path parameters
slugstringrequiredResponses
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
dataV1AccessPlansObjectShow propertiesHide properties
communityV1CommunityRefObjectrequiredShow propertiesHide properties
namestringrequiredslugstringrequiredplansV1AccessPlanObject[]requiredAt most 20.
Show propertiesHide properties
Array of
V1AccessPlanObjectnamestringrequiredpriceV1MoneyObjectrequiredShow propertiesHide properties
amountCentsnumberrequiredMinor units (cents).
currencystring | nullrequiredpaymentModestringrequiredone_time or recurring.
intervalstring | nullrequiredintervalCountnumber | nullrequiredactivebooleanrequiredOn sale.
trialDaysnumber | nullrequiredactiveMembersnumberrequiredtotalMembersnumberrequiredEvery membership ever bought on the plan.
truncatedbooleanrequired400Invalid 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 GET "https://api.insy.io/v1/communities/string/plans" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.insy.io/v1/communities/string/plans", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"https://api.insy.io/v1/communities/string/plans",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"success": true,
"errorCode": "not_found",
"message": "Success",
"data": {
"community": {
"name": "string",
"slug": "string"
},
"plans": [
{
"name": "string",
"price": {
"amountCents": 0,
"currency": "PLN"
},
"paymentMode": "recurring",
"interval": "month",
"intervalCount": 0,
"active": true,
"trialDays": 0,
"activeMembers": 0,
"totalMembers": 0
}
],
"truncated": true
}
}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`.