Skip to Content
Orbyte Labs

Create deployment

POST
/v1/deployments

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.

Authorization

bearerAuth
headerAuthorizationBearer <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.

Header Parameters

X-Orbyte-Environment?string

Required for environment-scoped OAuth operations. API keys remain bound to their own environment.

Length1 <= length

Request Body

application/json
  1. body
features?
Default{}
plans?
Default{}
grantPolicies?

Response Body

Deployment ID; queued for Stripe sync

response?stringapplication/json
Example Request
curl -X POST 'https://api.orbytelabs.com/v1/deployments' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
"string"