Pular para o conteúdo principal
POST
JavaScript

Autorizações

Authorization
string
header
obrigatório

Send your API key as a bearer token: Authorization: Bearer <api_key>. A test mode key starts with dodo_test_, for example dodo_test_AbCd1234EfGh5678.<secret>. A live mode key starts with dodo_live_. Use a test mode key on test.dodopayments.com and a live mode key on live.dodopayments.com. Keys from before these tags have no tag and operate as before.

Corpo

application/json
integration_config
Feature Flag Config · object
obrigatório

Platform-specific configuration (validated per integration_type)

integration_type
enum<string>
obrigatório

Which platform integration this entitlement uses

Opções disponíveis:
discord,
telegram,
github,
figma,
framer,
notion,
digital_files,
license_key,
feature_flag
name
string
obrigatório

Display name for this entitlement

description
string | null

Optional description

metadata
Metadata · object

Additional metadata for the entitlement

Resposta

Detailed view of a single entitlement: identity, integration type, integration-specific configuration, and metadata.

business_id
string
obrigatório

Identifier of the business that owns this entitlement.

created_at
string<date-time>
obrigatório

Timestamp when the entitlement was created.

id
string
obrigatório

Unique identifier of the entitlement.

integration_config
Feature Flag Config · object
obrigatório

Integration-specific configuration. For digital_files entitlements this includes presigned download URLs for each attached file.

integration_type
enum<string>
obrigatório

Platform integration this entitlement uses.

Opções disponíveis:
discord,
telegram,
github,
figma,
framer,
notion,
digital_files,
license_key,
feature_flag
is_active
boolean
obrigatório

Always true for entitlements returned by the public API; soft-deleted entitlements are not returned.

metadata
Metadata · object
obrigatório

Arbitrary key-value metadata supplied at creation or via PATCH.

name
string
obrigatório

Display name supplied at creation.

updated_at
string<date-time>
obrigatório

Timestamp when the entitlement was last modified.

description
string | null

Optional description supplied at creation.

Última modificação em 6 de agosto de 2026