Skip to content
Anlyon
Esc
↑↓navigate↵open⌘Jpreview

Get current plan details

Retrieve details about your current pricing plan

GET/api/v2/billing/plan
Authorization
AuthorizationBearer token (Anlyon API key) · headerrequired

Workspace API key sent as Authorization: Bearer <key>.

or
better-auth.session_tokenAPI key · cookierequired

Browser session used by dashboard-only operations.

Header parameters
X-Request-Idstring

Optional caller correlation ID. Unsafe or oversized values are replaced.

max length 128
Responses
200

Provider-safe plan, limits, pricing, and subscription state returned.

successbooleanrequired
Allowed:true
dataobjectrequired
Show properties
accessBillingAccess

How this workspace is served right now. Server-controlled and shared by enforcement, the console, and public pricing.

Show properties
modestringrequired
Allowed:early_betastandard
betaAllowancesApplybooleanrequired
paidPlansAvailablebooleanrequired

Whether a paid plan can be bought right now. Purchase endpoints return PAID_PLANS_UNAVAILABLE when false., example: false

betaAllowancesEndAtstring<date-time> | nullrequired

Only set once normal pricing is open, and only while this workspace still has beta allowances. The end date is fixed once set.

usageResetsAtstring<date-time>required

The next UTC month boundary, when monthly allowances reset.

overageBillingbooleanrequired

Early Beta Access never bills overage.

Allowed:false
automaticChargesbooleanrequired

Nothing is charged or upgraded automatically.

Allowed:false
betaAllowancesBetaAllowances

The Early Beta Access allowances, derived from the limits the API enforces. Null means the dimension has no fixed cap.

Show properties
actionExecutionsPerMonthinteger | nullrequired
durableMessagesPerMonthinteger | nullrequired
actionDefinitionsinteger | stringrequired
Show properties
One of:
integer
integer
string
string
seatsIncludingPendingInvitationsinteger | stringrequired
Show properties
One of:
integer
integer
string
string
environmentsinteger | stringrequired

Total environments a workspace may hold, of any kind.

Show properties
One of:
integer
integer
string
string
combinedStorageBytesinteger | nullrequired

Capacity in bytes. Does not reset monthly., example: 1073741824

egressBytesPerMonthinteger | nullrequired
traceRetentionDaysintegerrequired
planstringrequired

The plan id. Display names: starter Starter, production Pro, growth Team, enterprise Enterprise, free no plan.

Allowed:freestarterpaygoenterpriseproductiongrowth
displayNamestringrequired
statusBillingStatusrequired

none when the workspace has never subscribed.

Allowed:nonetrialingactivepast_duecanceledpaused
intervalstring | nullrequired
Allowed:monthyear
trialEndsAtstring<date-time> | nullrequired
currentPeriodEndstring<date-time> | nullrequired

When the paid period (or the trial) ends.

cancelAtPeriodEndbooleanrequired
graceEndsAtstring<date-time> | null

After a failed renewal, when the plan lapses unless the payment is fixed in the billing portal. Null otherwise.

trialAvailablebooleanrequired

Whether a checkout now would start the 14-day trial. One trial per workspace and per person.

providerstring | nullrequired

The billing provider. Null on a self-hosted edition.

Allowed:polar
pendingPlanstring | nullrequired

Requested period-end target. Resource creation is restricted to this plan while the change is pending., example: free

limitsBillingPlanLimitsrequired
Show properties
maxSeatsQuotaLimit
Show properties
One of:
integer
integer
string
string
maxActionsQuotaLimit
Show properties
One of:
integer
integer
string
string
maxMonthlyActionInvokesQuotaLimit

Governed actions per UTC month the plan includes. The enforced allowance, with usagePolicy.actionInvokes.

Show properties
One of:
integer
integer
string
string
auditRetentionMonthsQuotaLimit

Months the plan keeps audit records before they are deleted. unlimited where the deployment sets no plan retention.

Show properties
One of:
integer
integer
string
string
maxEnvironmentsQuotaLimit
Show properties
One of:
integer
integer
string
string
traceRetentionDaysinteger
traceArchivalboolean
usagePolicyBillingUsagePolicies
Show properties
actionInvokesBillingUsagePolicy
Show properties
One of:
object
kindstringrequired
Allowed:hard-cap
capUnitsintegerrequired
min 0
object
kindstringrequired
Allowed:included-with-grace
includedUnitsintegerrequired
min 0
graceCapUnitsintegerrequired
min 0
object
kindstringrequired
Allowed:payment-required
object
kindstringrequired
Allowed:unlimited
messagesBillingUsagePolicy
storageBillingUsagePolicy
bandwidthBillingUsagePolicy
maxMessagesPerDayQuotaLimitrequired
Show properties
One of:
integer
integer
string
string
maxMonthlyMessagesQuotaLimitrequired
Show properties
One of:
integer
integer
string
string
maxMonthlyBandwidthintegerrequired

Bytes.

min 0
maxRetriesintegerrequired
min 0
maxMessageSizeintegerrequired

Bytes.

min 0
maxHttpTimeoutintegerrequired

Milliseconds.

min 0
rateLimitobjectrequired
Show properties
requestsPerMinuteQuotaLimitrequired
Show properties
One of:
integer
integer
string
string
requestsPerHourQuotaLimitrequired

API requests per UTC clock hour for the workspace, enforced with the minute limit.

Show properties
One of:
integer
integer
string
string
maxBatchSizeintegerrequired
min 1
maxConcurrentDeliveriesQuotaLimitrequired
Show properties
One of:
integer
integer
string
string
analyticsRetentionDaysQuotaLimitrequired
Show properties
One of:
integer
integer
string
string
logRetentionDaysQuotaLimitrequired
Show properties
One of:
integer
integer
string
string
maxMonthlyAssistantReviewsQuotaLimit

Anlyon Vigil (Beta) reviews per UTC month. A hard cap; at the cap approvals are reviewed without a suggestion.

Show properties
One of:
integer
integer
string
string
maxDailyAssistantAutoApprovalsQuotaLimit

Approvals Anlyon Vigil may make per UTC day. A hard cap; at the cap requests go to a person.

Show properties
One of:
integer
integer
string
string
maxApprovalPoliciesPerEnvironmentQuotaLimit

Approval policies one environment may hold.

Show properties
One of:
integer
integer
string
string
maxMonthlyConditionDraftsinteger

Plain-English policy condition drafts per workspace per UTC month. Complimentary during the beta.

min 0
functionRunsFunctionRunLimits

Hosted function runs a plan allows. A run's own action calls count as governed actions, not here.

Show properties
runsPerMonthQuotaLimitrequired

Runs started in a UTC month.

concurrentRunsQuotaLimitrequired

Runs going at the same time across the workspace.

runStartsPerMinuteQuotaLimitrequired

Runs started in any 60 seconds.

featuresBillingPublicFeaturesrequired
Show properties
protectedProductionboolean
controlledPromotionboolean
customHeadersbooleanrequired
webhooksbooleanrequired
eventsbooleanrequired
actionsbooleanrequired
approvalsbooleanrequired
budgetsbooleanrequired
analyticsbooleanrequired
prioritySupportbooleanrequired
slabooleanrequired
dedicatedSupportbooleanrequired
teamFeaturesboolean

SSO, SCIM directory sync, audit streaming, secret stores and roles per environment: Team and Enterprise.

pricingBillingRawPricingrequired

Machine-readable pricing values in cents unless the field says otherwise.

Show properties
monthlyFeenumberrequired
min 0
yearlyFeenumber

A year paid up front

min 0
perMessageCostnumberrequired
min 0
includedMessagesintegerrequired
min 0
bandwidthOverageCostnumberrequired
min 0
perEventPublishCostnumberrequired
min 0
perActionInvokeCostnumberrequired
min 0
featuresBillingPublicFeaturesrequired
Show properties
protectedProductionboolean
controlledPromotionboolean
customHeadersbooleanrequired
webhooksbooleanrequired
eventsbooleanrequired
actionsbooleanrequired
approvalsbooleanrequired
budgetsbooleanrequired
analyticsbooleanrequired
prioritySupportbooleanrequired
slabooleanrequired
dedicatedSupportbooleanrequired
teamFeaturesboolean

SSO, SCIM directory sync, audit streaming, secret stores and roles per environment: Team and Enterprise.

pricingBillingDisplayPricingrequired
Show properties
monthlyFeenumberrequired

Major currency units.

min 0
perMessageCostnumberrequired

Cents per message, retained for backward compatibility.

min 0
includedMessagesintegerrequired
min 0
bandwidthOverageCostnumberrequired

Major currency units per GB.

min 0
includedBandwidthstringrequired

Human-readable byte count., example: 50 GB

subscriptionBillingSubscriptionSummaryrequired

Provider-safe subscription state; the billing provider's identifiers are never returned.

Show properties
statusBillingStatusrequired

none when the workspace has never subscribed.

Allowed:nonetrialingactivepast_duecanceledpaused
isCustomerConfiguredbooleanrequired
hasSubscriptionbooleanrequired
trialEndsAtstring<date-time> | nullrequired
401

Unauthorized - Invalid or missing API key

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
fixErrorFix

How to get past this error, for a person or an agent. Present on refusals with a known next step, such as a missing scope or role, a plan or billing limit, a halted environment, or a missing secret, connected account, OAuth app or end-user header. Absent when there is no fix to give. Kept in production responses, unlike details.

Show properties
summarystringrequired

One sentence that says what to do.

commandstring

An exact anlyon CLI command that fixes it. Absent when no command does.

urlstring<uri>

An absolute console link where a person fixes it.

docsstring<uri>

A docs page that explains it.

403

Authenticated credential lacks the required scope or workspace access.

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
fixErrorFix

How to get past this error, for a person or an agent. Present on refusals with a known next step, such as a missing scope or role, a plan or billing limit, a halted environment, or a missing secret, connected account, OAuth app or end-user header. Absent when there is no fix to give. Kept in production responses, unlike details.

Show properties
summarystringrequired

One sentence that says what to do.

commandstring

An exact anlyon CLI command that fixes it. Absent when no command does.

urlstring<uri>

An absolute console link where a person fixes it.

docsstring<uri>

A docs page that explains it.

404

Not Found - Resource does not exist

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
fixErrorFix

How to get past this error, for a person or an agent. Present on refusals with a known next step, such as a missing scope or role, a plan or billing limit, a halted environment, or a missing secret, connected account, OAuth app or end-user header. Absent when there is no fix to give. Kept in production responses, unlike details.

Show properties
summarystringrequired

One sentence that says what to do.

commandstring

An exact anlyon CLI command that fixes it. Absent when no command does.

urlstring<uri>

An absolute console link where a person fixes it.

docsstring<uri>

A docs page that explains it.

429

Too Many Requests - Rate limit exceeded. A workspace's API requests are limited per minute and per UTC clock hour by plan; Retry-After says when to try again, and an hourly refusal names the limit and when the count resets. Successful responses carry the same limits in X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (the minute) and X-RateLimit-Limit-Hour, X-RateLimit-Remaining-Hour, X-RateLimit-Reset-Hour (the hour).

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
fixErrorFix

How to get past this error, for a person or an agent. Present on refusals with a known next step, such as a missing scope or role, a plan or billing limit, a halted environment, or a missing secret, connected account, OAuth app or end-user header. Absent when there is no fix to give. Kept in production responses, unlike details.

Show properties
summarystringrequired

One sentence that says what to do.

commandstring

An exact anlyon CLI command that fixes it. Absent when no command does.

urlstring<uri>

An absolute console link where a person fixes it.

docsstring<uri>

A docs page that explains it.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://api.anlyon.com/api/v2/billing/plan' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "success": true,
  "data": {
    "access": {
      "mode": "early_beta",
      "betaAllowancesApply": true,
      "paidPlansAvailable": true,
      "betaAllowancesEndAt": "2019-08-24T14:15:22Z",
      "usageResetsAt": "2019-08-24T14:15:22Z",
      "overageBilling": false,
      "automaticCharges": false
    },
    "betaAllowances": {
      "actionExecutionsPerMonth": 10000,
      "durableMessagesPerMonth": 25000,
      "actionDefinitions": 10,
      "seatsIncludingPendingInvitations": 3,
      "environments": 3,
      "combinedStorageBytes": 0,
      "egressBytesPerMonth": 53687091200,
      "traceRetentionDays": 14
    },
    "plan": "production",
    "displayName": "Pro",
    "status": "none",
    "interval": "month",
    "trialEndsAt": "2019-08-24T14:15:22Z",
    "currentPeriodEnd": "2019-08-24T14:15:22Z",
    "cancelAtPeriodEnd": true,
    "graceEndsAt": "2019-08-24T14:15:22Z",
    "trialAvailable": true,
    "provider": "polar",
    "pendingPlan": "string",
    "limits": {
      "maxSeats": 0,
      "maxActions": 0,
      "maxMonthlyActionInvokes": 0,
      "auditRetentionMonths": 0,
      "maxEnvironments": 0,
      "traceRetentionDays": 0,
      "traceArchival": true,
      "usagePolicy": {
        "actionInvokes": {
          "kind": "hard-cap",
          "capUnits": 0
        },
        "messages": {
          "kind": "hard-cap",
          "capUnits": 0
        },
        "storage": {
          "kind": "hard-cap",
          "capUnits": 0
        },
        "bandwidth": {
          "kind": "hard-cap",
          "capUnits": 0
        }
      },
      "maxMessagesPerDay": 0,
      "maxMonthlyMessages": 0,
      "maxMonthlyBandwidth": 0,
      "maxRetries": 0,
      "maxMessageSize": 0,
      "maxHttpTimeout": 0,
      "rateLimit": {
        "requestsPerMinute": 0,
        "requestsPerHour": 0
      },
      "maxBatchSize": 1,
      "maxConcurrentDeliveries": 0,
      "analyticsRetentionDays": 0,
      "logRetentionDays": 0,
      "maxMonthlyAssistantReviews": 0,
      "maxDailyAssistantAutoApprovals": 0,
      "maxApprovalPoliciesPerEnvironment": 0,
      "maxMonthlyConditionDrafts": 0,
      "functionRuns": {
        "runsPerMonth": 0,
        "concurrentRuns": 0,
        "runStartsPerMinute": 0
      },
      "features": {
        "protectedProduction": true,
        "controlledPromotion": true,
        "customHeaders": true,
        "webhooks": true,
        "events": true,
        "actions": true,
        "approvals": true,
        "budgets": true,
        "analytics": true,
        "prioritySupport": true,
        "sla": true,
        "dedicatedSupport": true,
        "teamFeatures": true
      },
      "pricing": {
        "monthlyFee": 0,
        "yearlyFee": 0,
        "perMessageCost": 0,
        "includedMessages": 0,
        "bandwidthOverageCost": 0,
        "perEventPublishCost": 0,
        "perActionInvokeCost": 0
      }
    },
    "features": {
      "protectedProduction": true,
      "controlledPromotion": true,
      "customHeaders": true,
      "webhooks": true,
      "events": true,
      "actions": true,
      "approvals": true,
      "budgets": true,
      "analytics": true,
      "prioritySupport": true,
      "sla": true,
      "dedicatedSupport": true,
      "teamFeatures": true
    },
    "pricing": {
      "monthlyFee": 0,
      "perMessageCost": 0,
      "includedMessages": 0,
      "bandwidthOverageCost": 0,
      "includedBandwidth": "string"
    },
    "subscription": {
      "status": "none",
      "isCustomerConfigured": true,
      "hasSubscription": true,
      "trialEndsAt": "2019-08-24T14:15:22Z"
    }
  }
}

Was this page helpful?