openapi: 3.1.0 info: title: Hasura Engine HTTP APIs Graphql V1alpha1 API description: 'Hasura GraphQL Engine exposes a small set of HTTP APIs in addition to its GraphQL endpoint. This specification documents the most commonly used endpoints: GraphQL queries/mutations/subscriptions, Relay GraphQL, the Metadata API, the Schema API, the PG Dump API, the Explain API, the Health Check API, the Source Health Check API, the Config API, and the Version API. Authentication: When the engine is started with HASURA_GRAPHQL_ADMIN_SECRET, requests must include the `x-hasura-admin-secret` header (or a valid JWT). Roles and session variables are passed via `x-hasura-role` and any `x-hasura-*` session headers. ' version: 2.0.0 contact: name: Hasura url: https://hasura.io/docs/2.0/api-reference/overview/ servers: - url: https://my-graphql-engine.example.com description: Self-hosted Hasura GraphQL Engine security: - adminSecret: [] - bearerAuth: [] tags: - name: V1alpha1 paths: /v1alpha1/pg_dump: post: summary: Dump a Postgres source description: Execute pg_dump against a configured Postgres source. operationId: pgDump requestBody: required: true content: application/json: schema: type: object required: - opts - clean_output - source properties: opts: type: array description: pg_dump command-line options. items: type: string clean_output: type: boolean source: type: string description: The configured database source name. responses: '200': description: SQL dump output (text/plain). content: text/plain: schema: type: string tags: - V1alpha1 /v1alpha1/config: get: summary: Retrieve server configuration operationId: getConfig responses: '200': description: Server configuration. content: application/json: schema: type: object additionalProperties: true tags: - V1alpha1 components: securitySchemes: adminSecret: type: apiKey in: header name: x-hasura-admin-secret description: Admin secret configured via HASURA_GRAPHQL_ADMIN_SECRET. bearerAuth: type: http scheme: bearer bearerFormat: JWT description: JWT token, when JWT authentication is configured.