Skip to content

Stripe: Apps schemas

4 Stripe schemas with complete fields and constraints.

← Apps operations · All schemas

Create an app install — response body

FieldTypePresenceDescription and constraints
$objectRootAn app install represents a Stripe App that is installed on an account. It reports the permissions,
content security policy entries, and endpoints that the installing account has authorized, along with any
that the app's latest version requests but the account has not authorized yet. Use the Install API to
install, reauthorize, and uninstall apps, and to check the state of existing installs.
accountstringRequired within parentThe ID of the account that the app install belongs to.
Maximum length: 5000
appstringRequired within parentThe ID of the app installed.
Maximum length: 5000
approval_requiredbooleanRequired within parentWhether the installer must authorize pending permissions, content security policy entries, or endpoints. For private apps, `approval_required` stays `false`; creating or reauthorizing the install through the API installs the newest completed upload and grants its permissions.
auth_codeJSONOptional
auth_code (anyOf 1)stringAlternativeThe authorization code for an oauth app install.
Maximum length: 5000
auth_code (anyOf 2)nullAlternative
channelstringRequired within parentThe distribution channel associated with the app install.
Known values: private_live, private_test, public, review, testing
content_security_policy_grantedModelRequired within parentExpand Create an app install — response body — content security policy granted
content_security_policy_pendingModelRequired within parentExpand Create an app install — response body — content security policy granted
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
created_byJSONOptional
created_by (anyOf 1)stringAlternativeThe ID of the embedding platform that created the install, if applicable.
Maximum length: 5000
created_by (anyOf 2)nullAlternative
endpoints_grantedarrayRequired within parentThe endpoint URLs authorized by the installer.
endpoints_granted[]stringEach itemMaximum length: 5000
endpoints_pendingarrayRequired within parentThe endpoint URLs requested by the latest app version that the installer has not authorized.
endpoints_pending[]stringEach itemMaximum length: 5000
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: apps.install
permissions_grantedarrayRequired within parentThe permissions authorized by the installer.
permissions_granted[]stringEach itemMaximum length: 5000
permissions_pendingarrayRequired within parentThe permissions requested by the latest app version that the installer has not authorized.
permissions_pending[]stringEach itemMaximum length: 5000
statusstringRequired within parentThe status of the app install.
Known values: install_failed, installed, installing, uninstall_failed, uninstalling

Referenced models: Create an app install — response body — content security policy granted

Create an app install — response body — content security policy granted

FieldTypePresenceDescription and constraints
$objectRoot
connect_srcarrayRequired within parentThe URLs that the app can make network requests to.
connect_src[]stringEach itemMaximum length: 5000
image_srcarrayRequired within parentThe URLs that the app can load images from.
image_src[]stringEach itemMaximum length: 5000

Set a Secret — response body

FieldTypePresenceDescription and constraints
$objectRootSecret Store is an API that allows Stripe Apps developers to securely persist secrets for use by UI Extensions and app backends.

The primary resource in Secret Store is a `secret`. Other apps can't view secrets created by an app. Additionally, secrets are scoped to provide further permission control.

All Dashboard users and the app backend share `account` scoped secrets. Use the `account` scope for secrets that don't change per-user, like a third-party API key.

A `user` scoped secret is accessible by the app backend and one specific Dashboard user. Use the `user` scope for per-user secrets like per-user OAuth tokens, where different users might have different permissions.

Related guide: [Store data between page reloads](https://docs.stripe.com/stripe-apps/store-auth-data-custom-objects)
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
deletedbooleanOptionalIf true, indicates that this secret has been deleted
expires_atJSONOptional
expires_at (anyOf 1)JSONAlternative
expires_at (anyOf 1) (anyOf 1)integerAlternativeThe Unix timestamp for the expiry time of the secret, after which the secret deletes.
Format: unix-time
expires_at (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
expires_at (anyOf 2)nullAlternative
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
namestringRequired within parentA name for the secret that's unique within the scope.
Maximum length: 5000
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: apps.secret
payloadJSONOptional
payload (anyOf 1)stringAlternativeThe plaintext secret value to be stored.
Maximum length: 5000
payload (anyOf 2)nullAlternative
scopeModelRequired within parentExpand Set a Secret — response body — scope

Referenced models: Set a Secret — response body — scope

Set a Secret — response body — scope

FieldTypePresenceDescription and constraints
$objectRoot
typestringRequired within parentThe secret scope type.
Known values: account, user
userstringOptionalThe user ID, if type is set to "user"
Maximum length: 5000

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.