Schemas
ApiKeyBulkCreateOrUpdateBody
expiresOnWhen the key expires.
descriptionThe description of the api key.
keyThe API key's value. You can use this parameter to override Zuplo's default key format, but this is not recommended as you will lose our API Key Leak Detection
Zuplo.Accounts.Account
idThe id of the account
nameThe name of the account
labelThe label of the account
Zuplo.Accounts.AccountsList
Zuplo.ApiKeys.ApiKey
createdOnWhen the item was created.
updatedOnWhen the item was last updated.
idexpiresOnWhen the key expires.
descriptionThe description of the api key.
keyThe API key's value. You can use this parameter to override Zuplo's default key format, but this is not recommended as you will lose our API Key Leak Detection
Zuplo.ApiKeys.ApiKeyCreateOrUpdateBody
expiresOnWhen the key expires.
descriptionThe description of the api key.
keyThe API key's value. You can use this parameter to override Zuplo's default key format, but this is not recommended as you will lose our API Key Leak Detection
Zuplo.ApiKeys.ApiKeys
limitoffsettotalZuplo.ApiKeys.Bucket
createdOnWhen the item was created.
updatedOnWhen the item was last updated.
idname^[a-z0-9-]{5,128}$ · requiredA friendly name for the bucket.
isRetrievableWhether the API keys stored in the bucket are retrievable
descriptionA description of the bucket.
Key value pairs to associate with the bucket.
Zuplo.ApiKeys.BucketCreateBody
name^[a-z0-9-]{5,128}$ · requiredA friendly name for the bucket.
descriptionA description of the bucket.
Key value pairs to associate with the bucket.
Zuplo.ApiKeys.BucketUpdateBody
descriptionA description of the bucket.
Key value pairs to associate with the bucket.
Zuplo.ApiKeys.Buckets
limitoffsettotalZuplo.ApiKeys.Consumer
createdOnWhen the item was created.
updatedOnWhen the item was last updated.
idname^[a-z0-9-]{1,128}$ · requiredA friendly name for the consumer. This name is used as the default user.sub property in the API Key Authentication policy.
descriptionA description of the consumer.
Key value pairs to associate with the consumer.
Generic metadata associated with the consumer.
Zuplo.ApiKeys.ConsumerCreateBody
name^[a-z0-9-]{1,128}$ · requiredA friendly name for the consumer. This name is used as the default user.sub property in the API Key Authentication policy.
Email addresses of the managers to invite or a list of managers (with subs) to add to the consumer.
descriptionA description of the consumer.
Key value pairs to associate with the consumer.
Generic metadata associated with the consumer.
Zuplo.ApiKeys.ConsumerUpdateBody
descriptionA description of the consumer.
Key value pairs to associate with the consumer.
Generic metadata associated with the consumer.
Zuplo.ApiKeys.Consumers
limitoffsettotalZuplo.ApiKeys.Manager
emailThe email address of the manager
subThe sub of the manager in the identity provider
Zuplo.ApiKeys.ManagerCreateBody
emailThe email address of the manager
subThe sub of the manager in the identity provider
Zuplo.ApiKeys.Managers
limitoffsettotalZuplo.AuditLogs.ActingAs
subThe subject identifier of the user being impersonated
emailThe email address of the impersonated user (if available)
Zuplo.AuditLogs.Actor
subThe subject identifier of the actor (user ID, API key, etc.)
emailThe email address of the actor (only for user actors)
typeThe type of actor (e.g., 'user', 'consumer', 'service', 'anonymous')
connectionThe authentication connection used (e.g., 'auth0', 'google')
actingAsInformation about the user being impersonated, if any
Additional metadata about the actor
Zuplo.AuditLogs.AuditLog
actionThe action that was performed (e.g., 'account.create', 'project.delete')
Additional metadata about the action
Details about the actor who performed the action
List of resources affected by this action
Contextual information about where and how the action was performed
Information about the API route that triggered this audit event
timestampThe timestamp when the action occurred
requestIdThe unique request ID for correlation
successWhether the action was successful
errorError message if the action failed
Zuplo.AuditLogs.AuditLogsPagination
limitMaximum number of results returned
offsetNumber of results skipped
totalTotal number of results available
hasMoreWhether there are more results available
Zuplo.AuditLogs.AuditLogsResponse
Array of audit log entries
Pagination information
Zuplo.AuditLogs.Context
ipAddressThe IP address of the request
userAgentThe user agent string of the request
countryThe ISO 3166-1 alpha-2 country code (e.g., 'US', 'GB')
regionThe region/state code (e.g., 'CA' for California)
cityThe city name from which the request originated
postalCodeThe postal/ZIP code
metroCodeThe metro code (DMA code in the US)
asOrgThe Autonomous System organization (ISP name)
Zuplo.AuditLogs.Resource
typeThe type of resource (e.g., 'account', 'project', 'deployment')
idThe unique identifier of the resource
Additional metadata about the resource
Zuplo.AuditLogs.Route
sourceThe source system or API that handled the request (e.g., 'api', 'gateway')
urlThe full URL path of the request
methodThe HTTP method used for the request
Zuplo.AuditLogsV1.AuditLogEvent
specversionCloudEvents spec version, always '1.0'
idUnique event id (request id or generated)
sourceOriginating component URI
typeReverse-DNS event type (e.g. 'com.zuplo.apikey.create')
timeEvent time
bucketidBucket the event belongs to
datacontenttypeContent type of the payload, always 'application/json'
subjectThe principal the event is about (user / actor)
actorsubActor identifier (e.g. user sub)
actortypeActor type: user | service | apikey | anonymous
actoremailActor email when known
actorconnectionAuth issuer / IdP
Resources affected by this event
requestidCorrelation id matching the originating request
successWhether the action succeeded
httpmethodHTTP method of the originating request
httpurlURL path (with query) of the originating request
httpstatusHTTP status code of the response
ipaddressClient IP address
useragentClient user agent
countryISO 3166-1 alpha-2 country code
regionRegion / state code
cityCity name
Event payload
Spillover for unknown CloudEvent extensions
Zuplo.AuditLogsV1.AuditLogResource
typeResource type (e.g. 'api-key', 'account')
idResource identifier
Zuplo.AuditLogsV1.AuditLogsEventsResponse
Pagination for audit log events
Zuplo.AuditLogsV1.AuditLogsPagination
limitoffsettotalhasMoreZuplo.AuditLogsV1.AuditLogsStatsEntry
keyKey value for this bucket (e.g. event type, actor sub)
countEvent count for this key
Zuplo.AuditLogsV1.AuditLogsStatsResponse
groupByColumn that was grouped by
Zuplo.BuildLogs.BuildLogRow
A single build-log row, returned as a fixed 3-tuple of [timestamp (ISO 8601), severity, message].
Zuplo.BuildLogs.BuildLogStage
The build stage that produced a set of build logs. Wire values are kebab-case (api, dev-portal); the response groups logs under camelCase keys (api, devPortal). Mirrors tenant-api's DeploymentStageNameSchema — keep in sync when new stages are added upstream.
Zuplo.BuildLogs.BuildLogStepGroup
Zuplo.BuildLogs.BuildLogsData
Build logs for the API/gateway build stage, grouped by step.
Build logs for the Dev Portal build stage, grouped by step.
Zuplo.BuildLogs.BuildLogsResponse
Build logs grouped by stage and step.
Zuplo.ClientMtlsCaCertificates.ClientMtlsCaCertificate
idThe unique identifier for the client mTLS CA certificate.
nameThe name of the client mTLS CA certificate.
Certificate information.
createdOnWhen the item was created.
updatedOnWhen the item was last updated.
Zuplo.ClientMtlsCaCertificates.ClientMtlsCaCertificateCreateBody
nameThe name of the client mTLS CA certificate.
certificateThe PEM-encoded CA certificate.
Zuplo.ClientMtlsCaCertificates.ClientMtlsCaCertificateInfo
subjectCertificate subject.
issuerCertificate issuer.
validFromCertificate valid from date.
validToCertificate valid to date.
serialNumberCertificate serial number.
Zuplo.ClientMtlsCaCertificates.ClientMtlsCaCertificateListResponse
List of client mTLS CA certificates.
offsetOffset for pagination.
limitLimit for pagination.
Zuplo.ClientMtlsCaCertificates.ClientMtlsCaCertificateUpdateBody
nameThe name of the client mTLS CA certificate.
Zuplo.Common.ExpiresOnField
expiresOnWhen the item will expire.
Zuplo.ConsumerAnalytics.CallsDetailData
consumertimeStamptotalCallsZuplo.ConsumerAnalytics.RecentCallsData
Zuplo.ConsumerAnalytics.RequestData
consumermethodroutePathstatusCodetimeStampcitycountryZuplo.ConsumerAnalytics.StatsByStatusCode.TimeWindowFilter
Zuplo.ConsumerAnalytics.StatsByStatusCodeData
Zuplo.ConsumerAnalytics.StatsData
totalCallsconsumerZuplo.CustomDomains.CustomDomain
idThe unique identifier for the custom domain.
accountNameThe account that owns the custom domain.
projectNameThe project associated with the custom domain.
The deployments currently mapped to this hostname.
hostnameThe hostname assigned to the custom domain.
providerThe provider backing the custom domain.
Zuplo.CustomDomains.CustomDomainCreateBody
hostnameThe hostname to configure as a custom domain.
deploymentNameThe deployment to associate with the hostname.
stageThe stage to expose on the hostname.
isDefaultWhether this domain should be the default domain for the deployment.
isAliasWhether the domain should be configured as an alias.
Zuplo.CustomDomains.CustomDomainDeployment
deploymentNameThe deployment name associated with the custom domain.
branchThe branch associated with the deployment.
environmentTypeThe environment type associated with the deployment.
isDefaultWhether this deployment is the default for the hostname.
stageThe stage exposed by this custom domain mapping.
cnameThe CNAME target for this deployment.
Zuplo.CustomDomains.CustomDomainEnvironmentType
The environment type targeted by a custom domain deployment.
Zuplo.CustomDomains.CustomDomainMutationResult
deploymentNameThe deployment associated with the hostname.
hostnameThe hostname that was created or updated.
stageThe stage exposed by the hostname.
ownershipVerificationThe DNS record required to verify domain ownership, if any.
cnameThe CNAME target for the custom domain, if any.
Zuplo.CustomDomains.CustomDomainProvider
The provider backing a custom domain.
Zuplo.CustomDomains.CustomDomainStage
The stage exposed by a custom domain.
Zuplo.CustomDomains.CustomDomainUpdateBody
hostnameThe hostname to update.
deploymentNameThe deployment to associate with the hostname.
isDefaultWhether this domain should be the default domain for the deployment.
Zuplo.CustomDomains.CustomDomainsList
The custom domains returned for the account.
offsetThe number of records skipped.
limitThe maximum number of records returned.
Zuplo.CustomDomains.OwnershipVerification
nameThe DNS record name to create.
typeThe DNS record type to create.
valueThe DNS record value to create.
Zuplo.DeploymentStatus.DeploymentStatus
statusurlZuplo.Deployments.Deployment
nameThe name of the deployment. You can find this in the Zuplo Portal under Settings > Environments.
urllabelurlParametercreatedOnupdatedOnloggingIdaccountNameprojectNamestatemessagebranchNameenvironmentTypeZuplo.Deployments.DeploymentsList
Zuplo.Deploys.SourceCreateBody
accountNameThe name of the account
projectNameThe name of the project
branchNameThe name of the branch for deployment
Zuplo.Environments.Environment
nameThe name of the environment.
createdOnaccountNameprojectNamebranchNameenvironmentTypeZuplo.Environments.EnvironmentsList
Zuplo.HttpProblemDetails.BadRequestProblemResponse
typetitledetailinstanceZuplo.HttpProblemDetails.ForbiddenProblemResponse
typetitledetailinstanceZuplo.HttpProblemDetails.InternalServerErrorProblemResponse
typetitledetailinstanceZuplo.HttpProblemDetails.NotFoundProblemResponse
typetitledetailinstanceZuplo.HttpProblemDetails.UnauthorizedProblemResponse
typetitledetailinstanceZuplo.MCP.McpServerCardDocument
$schemanameversiondescriptionZuplo.MCP.McpServerCardHeaderInput
namedescriptionisRequiredisSecretplaceholderZuplo.MCP.McpServerCardRemote
typeurlsupportedProtocolVersionsZuplo.OpenApiRoute.ApiSpec
Zuplo.Projects.Project
nameThe name of the project
accountNameThe name of the account this project belongs to
Zuplo.Projects.ProjectCreateBody
nameThe name of the project
Zuplo.Projects.ProjectsList
Zuplo.RuntimeLogs.RequestLogDetail
requestIdUnique identifier for the request.
timestampISO 8601 timestamp when the request was received.
httpMethodHTTP method of the request.
httpStatusHTTP status code of the response.
routePathMatched route path on the deployment.
durationMsEnd-to-end duration of the request in milliseconds.
coloEdge colo (point of presence) that served the request.
countryISO 3166-1 alpha-2 country code of the client.
cityCity the request was made from, when derivable from the client IP.
continentContinent code (e.g. NA, EU) of the client.
clientIpIP address of the client.
asOrganizationAS organization (ISP name) for the client IP.
userSubAuthenticated user/consumer subject for the request, or (anonymous) if unauthenticated.
systemRouteNameInternal system route name (Zuplo-defined), if applicable.
zuploUserAgentUser-Agent header captured by the Zuplo runtime.
Zuplo.RuntimeLogs.RequestLogDetailResponse
The request summary and contextual fields.
All log entries emitted during the request, ordered by emit time.
Zuplo.RuntimeLogs.RequestLogEntry
logIdUnique identifier for the log entry.
timestampISO 8601 timestamp when the log entry was emitted.
severitySeverity of the log entry (debug, info, warn, error).
messagesOrdered array of message strings for the entry.
Structured attributes attached to the entry.
sourceSource that emitted the log (e.g. policy or handler name).
requestIdRequest ID this log entry belongs to.
atomicCounterMonotonically increasing counter used to preserve emit order within a single request.
Zuplo.RuntimeLogs.RequestLogSummary
requestIdUnique identifier for the request (correlation ID stamped by the gateway).
timestampISO 8601 timestamp when the request was received.
httpMethodHTTP method of the request.
httpStatusHTTP status code of the response.
routePathMatched route path on the deployment.
durationMsEnd-to-end duration of the request in milliseconds.
coloEdge colo (point of presence) that served the request.
countryISO 3166-1 alpha-2 country code of the client.
maxSeverityMaximum log severity recorded during this request, or null if no logs were emitted.
logCountTotal number of log entries recorded for this request.
Zuplo.RuntimeLogs.RequestLogsListResponse
Array of request-log summaries, ordered most recent first.
Pagination state for the result set.
Zuplo.RuntimeLogs.RequestLogsPagination
cursorOpaque cursor to pass as cursor on the next request to fetch the next page. Treat as a string the client does not introspect — the encoding is owned by tenant-api and can change. null when there is no further page.
hasMoreWhether more results are available beyond this page.
Zuplo.Tunnels.Tunnel
tunnelIdname^[a-zA-Z0-9-]{3,24}$ · requiredA friendly name for the tunnel.
tokenSet your TUNNEL_TOKEN to this value to connect to the tunnel.
Zuplo.Tunnels.TunnelList
limitoffsettotalZuplo.Tunnels.TunnelListItem
idname^[a-zA-Z0-9-]{3,24}$ · requiredA friendly name for the tunnel.
Zuplo.Tunnels.TunnelTeardownOperation
idstatusmessagedetailsZuplo.Tunnels.TunneledServiceConfiguration
name^[a-zA-Z0-9-]{3,24}$ · requiredA friendly name for the service. This name needs to be unique across all your tunneled services. Changing this will invalidate existing services with the name.
endpointThe URL of the service that the tunnel will forward to, e.g, http://localhost:3000
A list of projects that should have access to this tunneled service under the service://name URL scheme.
Zuplo.Tunnels.TunneledServicesConfiguration
versionThe version of this configuration format.
A list of services that the tunnel will connect to.
Zuplo.Tunnels.TunneledServicesProvisioningOperation
idstatusmessagedetailsZuplo.Variables.Variable
branchcreatedOnWhen the item was created.
updatedOnWhen the item was last updated.
nameThe name of the variable. Must be named in SCREAMING_SNAKE_CASE.
isSecretWhether the variable is a secret.
valueThe value of the variable.
Zuplo.Variables.VariableCreateBody
nameThe name of the variable. Must be named in SCREAMING_SNAKE_CASE.
isSecretWhether the variable is a secret.
valueThe value of the variable.
Alignment
billablesMustAlignWhether all Billable items and RateCards must align. Alignment means the Price's BillingCadence must align for both duration and anchor time.
Annotations
BadRequestProblemResponse
typeType contains a URI that identifies the problem type.
titleA a short, human-readable summary of the problem type.
detailA human-readable explanation specific to this occurrence of the problem.
instanceA URI reference that identifies the specific occurrence of the problem.
statusThe HTTP status code generated by the origin server for this occurrence of the problem.
Additional properties specific to the problem type may be present.
CurrencyCode
^[A-Z]{3}$Three-letter ISO4217 currency code. Custom three-letter currency codes are also supported for convenience.
CustomInvoicingTaxConfig
codeTax code.
The tax code should be interpreted by the custom invoicing provider.
CustomerSubscriptionOrderBy
Order by options for customer subscriptions.
DiscountPercentage
percentageThe percentage of the discount.
DiscountUsage
quantity^\-?[0-9]+(\.[0-9]+)… · requiredThe quantity of the usage discount.
Must be positive.
DynamicPriceWithCommitments
typeThe type of the price.
multiplier^\-?[0-9]+(\.[0-9]+)…The multiplier to apply to the base price to get the dynamic price.
Examples:
- 0.0: the price is zero
- 0.5: the price is 50% of the base price
- 1.0: the price is the same as the base price
- 1.5: the price is 150% of the base price
minimumAmount^\-?[0-9]+(\.[0-9]+)…The customer is committed to spend at least the amount.
maximumAmount^\-?[0-9]+(\.[0-9]+)…The customer is limited to spend at most the amount.
Feature
createdAtTimestamp of when the resource was created.
updatedAtTimestamp of when the resource was last updated.
key^[a-z0-9]+(?:_[a-z0-… · requiredA key is a unique string that is used to identify a resource.
nameid^[0-7][0-9A-HJKMNP-T… · requiredReadonly unique ULID identifier.
deletedAtTimestamp of when the resource was permanently deleted.
archivedAtTimestamp of when the resource was archived.
Set of key-value pairs. Metadata can be used to store additional information about a resource.
meterSlug^[a-z0-9]+(?:_[a-z0-…A key is a unique string that is used to identify a resource.
Optional advanced meter group by filters. You can use this to filter for values of the meter groupBy fields.
Optional meter group by filters. Useful if the meter scope is broader than what feature tracks. Example scenario would be a meter tracking all token use with groupBy fields for the model, then the feature could filter for model=gpt-4.
FeatureCreateInputs
key^[a-z0-9]+(?:_[a-z0-… · requiredA key is a unique string that is used to identify a resource.
nameSet of key-value pairs. Metadata can be used to store additional information about a resource.
meterSlug^[a-z0-9]+(?:_[a-z0-…A key is a unique string that is used to identify a resource.
Optional advanced meter group by filters. You can use this to filter for values of the meter groupBy fields.
Optional meter group by filters. Useful if the meter scope is broader than what feature tracks. Example scenario would be a meter tracking all token use with groupBy fields for the model, then the feature could filter for model=gpt-4.
FeaturePaginatedResponse
totalCountThe total number of items.
pageThe page index.
pageSizeThe maximum number of items per page.
The items in the current page.
FilterString
$eqThe field must be equal to the provided value.
$neThe field must not be equal to the provided value.
$inThe field must be in the provided list of values.
$ninThe field must not be in the provided list of values.
$likeThe field must match the provided value.
$nlikeThe field must not match the provided value.
$ilikeThe field must match the provided value, ignoring case.
$nilikeThe field must not match the provided value, ignoring case.
$gtThe field must be greater than the provided value.
$gteThe field must be greater than or equal to the provided value.
$ltThe field must be less than the provided value.
$lteThe field must be less than or equal to the provided value.
Provide a list of filters to be combined with a logical AND.
Provide a list of filters to be combined with a logical OR.
FlatPrice
typeThe type of the price.
amount^\-?[0-9]+(\.[0-9]+)… · requiredThe amount of the flat price.
FlatPriceWithPaymentTerm
typeThe type of the price.
amount^\-?[0-9]+(\.[0-9]+)… · requiredThe amount of the flat price.
paymentTermThe payment term of the flat price. Defaults to in advance.
ForbiddenProblemResponse
typeType contains a URI that identifies the problem type.
titleA a short, human-readable summary of the problem type.
detailA human-readable explanation specific to this occurrence of the problem.
instanceA URI reference that identifies the specific occurrence of the problem.
statusThe HTTP status code generated by the origin server for this occurrence of the problem.
Additional properties specific to the problem type may be present.
InternalServerErrorProblemResponse
typeType contains a URI that identifies the problem type.
titleA a short, human-readable summary of the problem type.
detailA human-readable explanation specific to this occurrence of the problem.
instanceA URI reference that identifies the specific occurrence of the problem.
statusThe HTTP status code generated by the origin server for this occurrence of the problem.
Additional properties specific to the problem type may be present.
ListFeaturesResult
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = array | |
| type = object · requires: totalCount, page, pageSize +1 more |
createdAtTimestamp of when the resource was created.
updatedAtTimestamp of when the resource was last updated.
key^[a-z0-9]+(?:_[a-z0-… · requiredA key is a unique string that is used to identify a resource.
nameid^[0-7][0-9A-HJKMNP-T… · requiredReadonly unique ULID identifier.
deletedAtTimestamp of when the resource was permanently deleted.
archivedAtTimestamp of when the resource was archived.
Set of key-value pairs. Metadata can be used to store additional information about a resource.
meterSlug^[a-z0-9]+(?:_[a-z0-…A key is a unique string that is used to identify a resource.
Optional advanced meter group by filters. You can use this to filter for values of the meter groupBy fields.
Optional meter group by filters. Useful if the meter scope is broader than what feature tracks. Example scenario would be a meter tracking all token use with groupBy fields for the model, then the feature could filter for model=gpt-4.
Metadata
Meter
id^[0-7][0-9A-HJKMNP-T… · requiredA unique identifier for the resource.
createdAtTimestamp of when the resource was created.
updatedAtTimestamp of when the resource was last updated.
slug^[a-z0-9]+(?:_[a-z0-… · requiredA unique, human-readable identifier for the meter. Must consist only alphanumeric and underscore characters.
aggregationThe aggregation type to use for the meter.
eventTypeThe event type to aggregate.
descriptionOptional description of the resource. Maximum 1024 characters.
Additional metadata for the resource.
deletedAtTimestamp of when the resource was permanently deleted.
nameHuman-readable name for the resource. Between 1 and 256 characters. Defaults to the slug if not specified.
eventFromThe date since the meter should include events. Useful to skip old events. If not specified, all historical events are included.
valuePropertyJSONPath expression to extract the value from the ingested event's data property.
The ingested value for SUM, AVG, MIN, and MAX aggregations is a number or a string that can be parsed to a number.
For UNIQUE_COUNT aggregation, the ingested value must be a string. For COUNT aggregation the valueProperty is ignored.
Named JSONPath expressions to extract the group by values from the event data.
Keys must be unique and consist only alphanumeric and underscore characters.
MeterAggregation
The aggregation type to use for the meter.
MeterCreate
slug^[a-z0-9]+(?:_[a-z0-… · requiredA unique, human-readable identifier for the meter. Must consist only alphanumeric and underscore characters.
aggregationThe aggregation type to use for the meter.
eventTypeThe event type to aggregate.
descriptionOptional description of the resource. Maximum 1024 characters.
Additional metadata for the resource.
nameHuman-readable name for the resource. Between 1 and 256 characters. Defaults to the slug if not specified.
eventFromThe date since the meter should include events. Useful to skip old events. If not specified, all historical events are included.
valuePropertyJSONPath expression to extract the value from the ingested event's data property.
The ingested value for SUM, AVG, MIN, and MAX aggregations is a number or a string that can be parsed to a number.
For UNIQUE_COUNT aggregation, the ingested value must be a string. For COUNT aggregation the valueProperty is ignored.
Named JSONPath expressions to extract the group by values from the event data.
Keys must be unique and consist only alphanumeric and underscore characters.
MeterOrderBy
Order by options for meters.
MeterQueryRequest
clientIdClient ID Useful to track progress of a query.
fromStart date-time in RFC 3339 format.
Inclusive.
toEnd date-time in RFC 3339 format.
Inclusive.
windowSizeIf not specified, a single usage aggregate will be returned for the entirety of the specified period for each subject and group.
windowTimeZoneThe value is the name of the time zone as defined in the IANA Time Zone Database (http://www.iana.org/time-zones). If not specified, the UTC timezone will be used.
subjectFiltering by multiple subjects.
filterCustomerIdFiltering by multiple customers.
filterSubscriptionFiltering by multiple subscriptions.
Simple filter for group bys with exact match.
Optional advanced meter group by filters. You can use this to filter for values of the meter groupBy fields.
groupByIf not specified a single aggregate will be returned for each subject and time window.
subject is a reserved group by value.
MeterQueryResult
The usage data. If no data is available, an empty array is returned.
fromThe start of the period the usage is queried from. If not specified, the usage is queried from the beginning of time.
toThe end of the period the usage is queried to. If not specified, the usage is queried up to the current time.
windowSizeThe window size that the usage is aggregated. If not specified, the usage is aggregated over the entire period.
MeterQueryRow
valueThe aggregated value.
windowStartThe start of the window the value is aggregated over.
windowEndThe end of the window the value is aggregated over.
subjectThe subject the value is aggregated over. If not specified, the value is aggregated over all subjects.
The group by values the value is aggregated over.
customerIdThe customer ID the value is aggregated over.
MeterUpdate
descriptionOptional description of the resource. Maximum 1024 characters.
Additional metadata for the resource.
nameHuman-readable name for the resource. Between 1 and 256 characters. Defaults to the slug if not specified.
Named JSONPath expressions to extract the group by values from the event data.
Keys must be unique and consist only alphanumeric and underscore characters.
NotFoundProblemResponse
typeType contains a URI that identifies the problem type.
titleA a short, human-readable summary of the problem type.
detailA human-readable explanation specific to this occurrence of the problem.
instanceA URI reference that identifies the specific occurrence of the problem.
statusThe HTTP status code generated by the origin server for this occurrence of the problem.
Additional properties specific to the problem type may be present.
NotificationChannelOrderBy
Order by options for notification channels.
NotificationEventOrderBy
Order by options for notification channels.
NotificationRuleOrderBy
Order by options for notification channels.
PackagePriceWithCommitments
typeThe type of the price.
amount^\-?[0-9]+(\.[0-9]+)… · requiredThe price of one package.
quantityPerPackage^\-?[0-9]+(\.[0-9]+)… · requiredThe quantity per package.
minimumAmount^\-?[0-9]+(\.[0-9]+)…The customer is committed to spend at least the amount.
maximumAmount^\-?[0-9]+(\.[0-9]+)…The customer is limited to spend at most the amount.
Percentage
Numeric representation of a percentage
50% is represented as 50
Plan
id^[0-7][0-9A-HJKMNP-T… · requiredA unique identifier for the resource.
nameHuman-readable name for the resource. Between 1 and 256 characters.
createdAtTimestamp of when the resource was created.
updatedAtTimestamp of when the resource was last updated.
key^[a-z0-9]+(?:_[a-z0-… · requiredA semi-unique identifier for the resource.
versionVersion of the plan. Incremented when the plan is updated.
currency^[A-Z]{3}$ · requiredThe currency code of the plan.
billingCadenceThe default billing cadence for subscriptions using this plan. Defines how often customers are billed using ISO8601 duration format. Examples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).
statusThe status of the plan. Computed based on the effective start and end dates:
- draft = no effectiveFrom
- active = effectiveFrom <= now < effectiveTo
- archived / inactive = effectiveTo <= now
- scheduled = now < effectiveFrom < effectiveTo
The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses. A phase switch occurs only at the end of a billing period, ensuring that a single subscription invoice will not include charges from different phase prices.
List of validation errors.
paymentMethodRequiredIndicates whether a payment method is required to create a subscription with this plan. Computed based on whether ANY phase has billable items (rate cards with prices). Aligns with the subscription validator's billing setup check which checks all phases.
descriptionOptional description of the resource. Maximum 1024 characters.
Additional metadata for the resource.
deletedAtTimestamp of when the resource was permanently deleted.
Default pro-rating configuration for subscriptions using this plan.
effectiveFromThe date and time when the plan becomes effective. When not specified, the plan is a draft.
effectiveToThe date and time when the plan is no longer effective. When not specified, the plan is effective indefinitely.
Alignment configuration for the plan.
PlanCreate
nameHuman-readable name for the resource. Between 1 and 256 characters.
key^[a-z0-9]+(?:_[a-z0-… · requiredA semi-unique identifier for the resource.
currency^[A-Z]{3}$ · requiredThe currency code of the plan.
billingCadenceThe default billing cadence for subscriptions using this plan. Defines how often customers are billed using ISO8601 duration format. Examples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).
The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses. A phase switch occurs only at the end of a billing period, ensuring that a single subscription invoice will not include charges from different phase prices.
descriptionOptional description of the resource. Maximum 1024 characters.
Additional metadata for the resource.
Default pro-rating configuration for subscriptions using this plan.
Alignment configuration for the plan.
PlanPaginatedResponse
totalCountThe total number of items.
pageThe page index.
pageSizeThe maximum number of items per page.
The items in the current page.
PlanPhase
key^[a-z0-9]+(?:_[a-z0-… · requiredA semi-unique identifier for the resource.
nameHuman-readable name for the resource. Between 1 and 256 characters.
durationThe duration of the phase.
The rate cards of the plan.
descriptionOptional description of the resource. Maximum 1024 characters.
Additional metadata for the resource.
PlanReplaceUpdate
nameHuman-readable name for the resource. Between 1 and 256 characters.
billingCadenceThe default billing cadence for subscriptions using this plan. Defines how often customers are billed using ISO8601 duration format. Examples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).
The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses. A phase switch occurs only at the end of a billing period, ensuring that a single subscription invoice will not include charges from different phase prices.
descriptionOptional description of the resource. Maximum 1024 characters.
Additional metadata for the resource.
Default pro-rating configuration for subscriptions using this plan.
Alignment configuration for the plan.
PreconditionFailedProblemResponse
typeType contains a URI that identifies the problem type.
titleA a short, human-readable summary of the problem type.
detailA human-readable explanation specific to this occurrence of the problem.
instanceA URI reference that identifies the specific occurrence of the problem.
statusThe HTTP status code generated by the origin server for this occurrence of the problem.
Additional properties specific to the problem type may be present.
PricePaymentTerm
The payment term of a flat price. One of: in_advance or in_arrears.
PriceTier
flatPriceThe flat price component of the tier.
unitPriceThe unit price component of the tier.
upToAmount^\-?[0-9]+(\.[0-9]+)…Up to and including to this quantity will be contained in the tier. If null, the tier is open-ended.
ProRatingConfig
enabledWhether pro-rating is enabled for this plan.
modeHow to handle pro-rating for billing period changes.
ProRatingMode
Pro-rating mode options for handling billing period changes.
RateCard
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · type="flat_fee" · requires: key, name, billingCadence +1 more | |
| type = object · type="usage_based" · requires: key, name, billingCadence +1 more |
typeThe type of the RateCard.
key^[a-z0-9]+(?:_[a-z0-… · requiredA semi-unique identifier for the resource.
nameHuman-readable name for the resource. Between 1 and 256 characters.
billingCadenceThe billing cadence of the rate card. When null it means it is a one time fee.
priceThe price of the rate card. When null, the feature or service is free.
descriptionOptional description of the resource. Maximum 1024 characters.
Additional metadata for the resource.
featureKey^[a-z0-9]+(?:_[a-z0-…The feature the customer is entitled to use.
The entitlement of the rate card. Only available when featureKey is set.
The tax config of the rate card. When undefined, the tax config of the feature or the default tax config of the plan is used.
The discount of the rate card. For flat fee rate cards only percentage discounts are supported. Only available when price is set.
RateCardBooleanEntitlement
typeAdditional metadata for the feature.
RateCardEntitlement
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · type="metered" | |
| type = object · type="static" · requires: config | |
| type = object · type="boolean" |
typeAdditional metadata for the feature.
isSoftLimitIf softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true.
issueAfterResetYou can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance. If an amount is specified here, a grant will be created alongside the entitlement with the specified amount. That grant will have it's rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here. Manually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.
issueAfterResetPriorityDefines the grant priority for the default grant.
preserveOverageAtResetIf true, the overage is preserved at reset. If false, the usage is reset to 0.
usagePeriodThe interval of the metered entitlement. Defaults to the billing cadence of the rate card.
RateCardFlatFee
typeThe type of the RateCard.
key^[a-z0-9]+(?:_[a-z0-… · requiredA semi-unique identifier for the resource.
nameHuman-readable name for the resource. Between 1 and 256 characters.
billingCadenceThe billing cadence of the rate card. When null it means it is a one time fee.
priceThe price of the rate card. When null, the feature or service is free.
descriptionOptional description of the resource. Maximum 1024 characters.
Additional metadata for the resource.
featureKey^[a-z0-9]+(?:_[a-z0-…The feature the customer is entitled to use.
The entitlement of the rate card. Only available when featureKey is set.
The tax config of the rate card. When undefined, the tax config of the feature or the default tax config of the plan is used.
The discount of the rate card. For flat fee rate cards only percentage discounts are supported. Only available when price is set.
RateCardMeteredEntitlement
typeAdditional metadata for the feature.
isSoftLimitIf softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true.
issueAfterResetYou can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance. If an amount is specified here, a grant will be created alongside the entitlement with the specified amount. That grant will have it's rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here. Manually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.
issueAfterResetPriorityDefines the grant priority for the default grant.
preserveOverageAtResetIf true, the overage is preserved at reset. If false, the usage is reset to 0.
usagePeriodThe interval of the metered entitlement. Defaults to the billing cadence of the rate card.
RateCardStaticEntitlement
typeconfigThe JSON parsable config of the entitlement. This value is also returned when checking entitlement access and it is useful for configuring fine-grained access settings to the feature, implemented in your own system. Has to be an object.
Additional metadata for the feature.
RateCardUsageBased
typeThe type of the RateCard.
key^[a-z0-9]+(?:_[a-z0-… · requiredA semi-unique identifier for the resource.
nameHuman-readable name for the resource. Between 1 and 256 characters.
billingCadenceThe billing cadence of the rate card.
The price of the rate card. When null, the feature or service is free.
descriptionOptional description of the resource. Maximum 1024 characters.
Additional metadata for the resource.
featureKey^[a-z0-9]+(?:_[a-z0-…The feature the customer is entitled to use.
The entitlement of the rate card. Only available when featureKey is set.
The tax config of the rate card. When undefined, the tax config of the feature or the default tax config of the plan is used.
The discounts of the rate card.
Flat fee rate cards only support percentage discounts.
RateCardUsageBasedPrice
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · type="flat" · requires: amount | |
| type = object · type="unit" · requires: amount | |
| type = object · type="tiered" · requires: mode, tiers | |
| type = object · type="dynamic" | |
| type = object · type="package" · requires: amount, quantityPerPackage |
typeThe type of the price.
amount^\-?[0-9]+(\.[0-9]+)… · requiredThe amount of the flat price.
paymentTermThe payment term of the flat price. Defaults to in advance.
ServiceUnavailableProblemResponse
typeType contains a URI that identifies the problem type.
titleA a short, human-readable summary of the problem type.
detailA human-readable explanation specific to this occurrence of the problem.
instanceA URI reference that identifies the specific occurrence of the problem.
statusThe HTTP status code generated by the origin server for this occurrence of the problem.
Additional properties specific to the problem type may be present.
StripeTaxConfig
code^txcd_\d{8}$ · requiredProduct tax code.
TaxBehavior
Tax behavior.
This enum is used to specify whether tax is included in the price or excluded from the price.
TaxConfig
behaviorTax behavior.
If not specified the billing profile is used to determine the tax behavior. If not specified in the billing profile, the provider's default behavior is used.
Stripe tax config.
Custom invoicing tax config.
TieredPriceWithCommitments
typeThe type of the price.
One of: flat, unit, or tiered.
modeDefines if the tiering mode is volume-based or graduated:
- In
volume-based tiering, the maximum quantity within a period determines the per unit price. - In
graduatedtiering, pricing can change as the quantity grows.
The tiers of the tiered price. At least one price component is required in each tier.
minimumAmount^\-?[0-9]+(\.[0-9]+)…The customer is committed to spend at least the amount.
maximumAmount^\-?[0-9]+(\.[0-9]+)…The customer is limited to spend at most the amount.
UnauthorizedProblemResponse
typeType contains a URI that identifies the problem type.
titleA a short, human-readable summary of the problem type.
detailA human-readable explanation specific to this occurrence of the problem.
instanceA URI reference that identifies the specific occurrence of the problem.
statusThe HTTP status code generated by the origin server for this occurrence of the problem.
Additional properties specific to the problem type may be present.
UnexpectedProblemResponse
typeType contains a URI that identifies the problem type.
titleA a short, human-readable summary of the problem type.
detailA human-readable explanation specific to this occurrence of the problem.
instanceA URI reference that identifies the specific occurrence of the problem.
statusThe HTTP status code generated by the origin server for this occurrence of the problem.
Additional properties specific to the problem type may be present.
UnitPrice
typeThe type of the price.
amount^\-?[0-9]+(\.[0-9]+)… · requiredThe amount of the unit price.
UnitPriceWithCommitments
typeThe type of the price.
amount^\-?[0-9]+(\.[0-9]+)… · requiredThe amount of the unit price.
minimumAmount^\-?[0-9]+(\.[0-9]+)…The customer is committed to spend at least the amount.
maximumAmount^\-?[0-9]+(\.[0-9]+)…The customer is limited to spend at most the amount.
ValidationError
fieldThe path to the field.
codeThe machine readable description of the error.
messageThe human readable description of the error.
Additional attributes.