Hanzo AI
OpenapiPricing

Create optin

Opts the caller's OWN org into a beta item.

POST /v1/pricing/enablement/optin

Addresshttps://api.hanzo.ai/v1/pricing/enablement/optin
MethodPOST
Operationpost_pricing_enablement_optin
AuthAuthorization: Bearer $HANZO_API_KEY

Opts the caller's OWN org into a beta item. The org is the caller's validated one, so this can never target another org, and the registry refuses anything not in beta — so it can neither re-open an item an operator turned off nor touch one that is already generally available. Requires a signed-in caller with an org.

Request

2 fields, body application/json (required).

FieldInTypeRequiredDescription
idbodystringID is the item within that namespace.
kindbodystringKind is the item's namespace: "model", "provider" or "feature".

Response

StatusBodyMeaning
200userEnablementItemok

200 body — 6 fields.

FieldInTypeAlwaysDescription
canOptInbodybooleanCanOptIn is whether POST /v1/pricing/enablement/optin would do anything here: the item is in beta and this org is not on its list yet.
effectivebodybooleanEffective is whether the caller's org may use the item right now, which is the field to branch on: true for any ga item, for a beta this org holds, and never…
idbodystringID is the item within that namespace — a model id, a provider name, or a feature key.
kindbodystringKind is the namespace the id lives in: "model", "provider" or "feature".
optedInbodybooleanOptedIn is whether the caller's org is on this item's beta grant list.
statebodystringState is the item's GLOBAL availability — "off", "beta" or "ga" — which is the operator's setting and not this caller's answer.

Failure carries the platform error shape — see Errors.

Examples

hanzo pricing enablement optin

Pricing API · All Hanzo APIs · Interactive reference

How is this guide?

On this page