This repository contains the public preview of the OpenAPI 3.1 specification for Discord's API. Currently, the spec is only available for the most recent Discord API version (v10).
️ The public preview of the OpenAPI spec is subject to breaking changes without advance notice, and should not be used within production environments.
Two versions of the spec are included—the standard spec and the preview spec:
openapi.json
is the standard spec that contains the stable, public API.openapi_preview.json
is the preview spec which contains unstable and/or experimental API features. This should not be considered stable or used in production environments.To use the spec with Postman, you can view the public collection.
OpenAPI spec contents are automatically generated, and therefore we do not allow public contributions to this repo.
? For bug fixes or improvements, you can open an issue.
anyOf
and oneOf
unions, they all mean that only one type from the list can be used as a data format. E.g. anyOf: {'Cat', 'Dog'}
, still means that you can either pass Cat
or Dog
, not Cat+Dog
. This is signified by the custom extension x-discord-union: oneOf
. We use anyOf
when we technically can’t use oneOf
. One of the reasons to do that is e.g. when all the fields are optional and the passed in data could be validated with more than one format.int32
, and we avoid defining specific minimums, maximums, etc.