Openverse · Schema

OAuth2Token

Serializes the response for an access token. This is a dummy serializer for OpenAPI and is not actually used.

ImagesAudioCreative CommonsOpen MediaSearchOpen DataCultural HeritageMuseums

Properties

Name Type Description
access_token string The access token that can be used to authenticate requests.
token_type string The type of token. This will always be 'Bearer'.
expires_in integer The number of seconds until the token expires.
scope string The scope of the token.
View JSON Schema on GitHub

JSON Schema

oauth2token.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api.openverse.org/v1/schema/OAuth2Token",
  "title": "OAuth2Token",
  "type": "object",
  "description": "Serializes the response for an access token.\n\nThis is a dummy serializer for OpenAPI and is not actually used.",
  "properties": {
    "access_token": {
      "type": "string",
      "description": "The access token that can be used to authenticate requests."
    },
    "token_type": {
      "type": "string",
      "description": "The type of token. This will always be 'Bearer'."
    },
    "expires_in": {
      "type": "integer",
      "description": "The number of seconds until the token expires."
    },
    "scope": {
      "type": "string",
      "description": "The scope of the token."
    }
  },
  "required": [
    "access_token",
    "expires_in",
    "scope",
    "token_type"
  ]
}