Create deployment
Creates one immutable snapshot in the authorized environment. Optional grantPolicies maps policy keys to definitions with on: customer.created and positive credits. Plan and policy grants can fund any deployed feature by default, including features added later. Add featureKeys to restrict access to specific features. Listed keys must be unique and belong to the catalog. An empty list is valid only on plans and grants no feature access. Each policy issues a separate grant once when the customer is created. Policy grants require no subscription or payment and have zero paid value. Optional expiresAfterDays sets a positive whole-day lifetime starting at customer creation; omit it for no expiry. Policy changes apply to customers created after the change. Stripe publishing runs asynchronously; poll getDeployment until ready or failed.
bearerAuthAuthorizationBearer <token>Environment API key or OAuth access token. OAuth requests select context with X-Orbyte-Environment or X-Orbyte-Organization when required by the operation.
X-Orbyte-Environment?stringRequired for environment-scoped OAuth operations. API keys remain bound to their own environment.
1 <= lengthapplication/json- body
features?{}plans?{}grantPolicies?Deployment ID; queued for Stripe sync
response?stringapplication/jsoncurl -X POST 'https://api.orbytelabs.com/v1/deployments' \ -H 'Content-Type: application/json' \ -d '{}'"string"