RapidAPI · Schema

AuthenticationConfigInput

API MarketplaceAPI ManagementAPI TestingAPI GatewayAPI DesignEnterprise

Properties

Name Type Description
scheme string The primary authentication scheme
requireRapidApiKey boolean Whether the X-RapidAPI-Key header is required
oauth2Config object OAuth2 configuration
headerConfig object Header authentication configuration
View JSON Schema on GitHub

JSON Schema

rapidapi-authenticationconfiginput-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AuthenticationConfigInput",
  "title": "AuthenticationConfigInput",
  "type": "object",
  "required": [
    "scheme"
  ],
  "properties": {
    "scheme": {
      "type": "string",
      "enum": [
        "rapidapi_default",
        "oauth2",
        "header",
        "query",
        "basic"
      ],
      "description": "The primary authentication scheme"
    },
    "requireRapidApiKey": {
      "type": "boolean",
      "default": true,
      "description": "Whether the X-RapidAPI-Key header is required"
    },
    "oauth2Config": {
      "type": "object",
      "properties": {
        "authorizationUrl": {
          "type": "string",
          "format": "uri",
          "description": "OAuth2 authorization endpoint"
        },
        "tokenUrl": {
          "type": "string",
          "format": "uri",
          "description": "OAuth2 token endpoint"
        },
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Available OAuth2 scopes"
        }
      },
      "description": "OAuth2 configuration"
    },
    "headerConfig": {
      "type": "object",
      "properties": {
        "headerName": {
          "type": "string",
          "description": "Custom header name for authentication"
        }
      },
      "description": "Header authentication configuration"
    }
  }
}