Skip to content

GitHub: Apps schemas

5 GitHub schemas with complete fields and constraints.

← Apps operations · All schemas

Get an app — response body

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)objectAlternativeGitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
$ (anyOf 1).client_idstringOptional
$ (anyOf 1).created_atstringRequired within parentFormat: date-time
$ (anyOf 1).descriptionJSONRequired within parent
$ (anyOf 1).description (anyOf 1)stringAlternative
$ (anyOf 1).description (anyOf 2)nullAlternative
$ (anyOf 1).eventsarrayRequired within parentThe list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation.
$ (anyOf 1).events[]stringEach item
$ (anyOf 1).external_urlstringRequired within parentFormat: uri
$ (anyOf 1).html_urlstringRequired within parentFormat: uri
$ (anyOf 1).idJSONRequired within parent
$ (anyOf 1).id (anyOf 1)integerAlternativeUnique identifier of the GitHub app
$ (anyOf 1).id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).installations_countJSONOptional
$ (anyOf 1).installations_count (anyOf 1)integerAlternativeThe number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.
$ (anyOf 1).installations_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).namestringRequired within parentThe name of the GitHub app
$ (anyOf 1).node_idstringRequired within parent
$ (anyOf 1).ownerJSONRequired within parent
$ (anyOf 1).owner (anyOf 1)ModelAlternativeExpand List users — response body — item
$ (anyOf 1).owner (anyOf 2)ModelAlternativeExpand Get an app — response body — client id, created at, description, events, external url, html url, id, installations count, name, node id, owner, permissions, slug, updated at owner Enterprise
$ (anyOf 1).permissionsobjectRequired within parentThe set of permissions for the GitHub app
Additional keys: see wildcard field
$ (anyOf 1).permissions.checksstringOptional
$ (anyOf 1).permissions.contentsstringOptional
$ (anyOf 1).permissions.deploymentsstringOptional
$ (anyOf 1).permissions.issuesstringOptional
$ (anyOf 1).permissions.metadatastringOptional
$ (anyOf 1).permissions.*stringAdditional keys
$ (anyOf 1).slugstringOptionalThe slug name of the GitHub app
$ (anyOf 1).updated_atstringRequired within parentFormat: date-time
$ (anyOf 2)nullAlternative

Referenced models: Get an app — response body — client id, created at, description, events, external url, html url, id, installations count, name, node id, owner, permissions, slug, updated at owner Enterprise, List users — response body — item

Get an app — response body — client id, created at, description, events, external url, html url, id, installations count, name, node id, owner, permissions, slug, updated at owner Enterprise

FieldTypePresenceDescription and constraints
$objectRootAn enterprise on GitHub.
avatar_urlstringRequired within parentFormat: uri
created_atJSONRequired within parent
created_at (anyOf 1)stringAlternativeFormat: date-time
created_at (anyOf 2)nullAlternative
descriptionJSONOptional
description (anyOf 1)stringAlternativeA short description of the enterprise.
description (anyOf 2)nullAlternative
html_urlstringRequired within parentFormat: uri
idJSONRequired within parent
id (anyOf 1)integerAlternativeUnique identifier of the enterprise
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
namestringRequired within parentThe name of the enterprise.
node_idstringRequired within parent
slugstringRequired within parentThe slug url identifier for the enterprise.
updated_atJSONRequired within parent
updated_at (anyOf 1)stringAlternativeFormat: date-time
updated_at (anyOf 2)nullAlternative
website_urlJSONOptional
website_url (anyOf 1)stringAlternativeThe enterprise's website URL.
Format: uri
website_url (anyOf 2)nullAlternative

List subscriptions for the authenticated user — response body — item

FieldTypePresenceDescription and constraints
$objectRootUser Marketplace Purchase
accountModelRequired within parentExpand List subscriptions for the authenticated user — response body — item account
billing_cyclestringRequired within parent
free_trial_ends_onJSONRequired within parent
free_trial_ends_on (anyOf 1)stringAlternativeFormat: date-time
free_trial_ends_on (anyOf 2)nullAlternative
next_billing_dateJSONRequired within parent
next_billing_date (anyOf 1)stringAlternativeFormat: date-time
next_billing_date (anyOf 2)nullAlternative
on_free_trialbooleanRequired within parent
planModelRequired within parentExpand List subscriptions for the authenticated user — response body — item plan
unit_countJSONRequired within parent
unit_count (anyOf 1)JSONAlternative
unit_count (anyOf 1) (anyOf 1)integerAlternative
unit_count (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
unit_count (anyOf 2)nullAlternative
updated_atJSONRequired within parent
updated_at (anyOf 1)stringAlternativeFormat: date-time
updated_at (anyOf 2)nullAlternative

Referenced models: List subscriptions for the authenticated user — response body — item account, List subscriptions for the authenticated user — response body — item plan

List subscriptions for the authenticated user — response body — item account

FieldTypePresenceDescription and constraints
$objectRoot
emailJSONOptional
email (anyOf 1)stringAlternativeFormat: email
email (anyOf 2)nullAlternative
idJSONRequired within parent
id (anyOf 1)integerAlternative
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
loginstringRequired within parent
node_idstringOptional
organization_billing_emailJSONOptional
organization_billing_email (anyOf 1)stringAlternativeFormat: email
organization_billing_email (anyOf 2)nullAlternative
typestringRequired within parent
urlstringRequired within parentFormat: uri

List subscriptions for the authenticated user — response body — item plan

FieldTypePresenceDescription and constraints
$objectRootMarketplace Listing Plan
accounts_urlstringRequired within parentFormat: uri
bulletsarrayRequired within parent
bullets[]stringEach item
descriptionstringRequired within parent
has_free_trialbooleanRequired within parent
idJSONRequired within parent
id (anyOf 1)integerAlternative
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
monthly_price_in_centsJSONRequired within parent
monthly_price_in_cents (anyOf 1)integerAlternative
monthly_price_in_cents (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
namestringRequired within parent
numberJSONRequired within parent
number (anyOf 1)integerAlternative
number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
price_modelstringRequired within parentKnown values: FREE, FLAT_RATE, PER_UNIT
statestringRequired within parent
unit_nameJSONRequired within parent
unit_name (anyOf 1)stringAlternative
unit_name (anyOf 2)nullAlternative
urlstringRequired within parentFormat: uri
yearly_price_in_centsJSONRequired within parent
yearly_price_in_cents (anyOf 1)integerAlternative
yearly_price_in_cents (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

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.