Hasura GraphQL Engine REST API
Instant GraphQL APIs on your databases
Hasura GraphQL Engine provides instant, realtime GraphQL APIs on new or existing Postgres databases. It includes built-in authorization, event triggers, and remote schema stitching. Developers use Hasura to rapidly build scalable GraphQL backends without writing boilerplate code, with automatic CRUD operations and real-time subscriptions out of the box.
https://your-project.hasura.app
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/graphql | Execute GraphQL queries and mutations against your database schema |
| POST | /v1/query | Execute Hasura metadata and DDL operations including track/untrack tables |
| POST | /v1/metadata | Manage Hasura metadata including relationships, permissions, and remote schemas |
| GET | /v1/version | Get the current Hasura GraphQL Engine version information |
| GET | /healthz | Health check endpoint for monitoring Hasura instance status |
| POST | /v1alpha1/graphql/explain | Get query execution plan and performance analysis for GraphQL queries |
| POST | /v2/query | Execute metadata API v2 operations with enhanced features |
| POST | /v1/graphql/introspect | Introspect the GraphQL schema to retrieve type definitions |
| GET | /v1alpha1/config | Retrieve Hasura configuration and enabled features |
| POST | /v1alpha1/pg_dump | Export PostgreSQL database schema and data as SQL dump |
| POST | /v1/relay | Execute Relay-compliant GraphQL queries with global object identification |
| POST | /v1alpha1/graphql/clear | Clear the GraphQL schema cache to reload metadata changes |
Sponsor this page
AvailableReach developers actively building with Hasura GraphQL Engine. See live pageview data and self-serve checkout — your slot goes live in minutes.
View inventory & pricing →Code Examples
curl -X POST https://your-project.hasura.app/v1/graphql \
-H 'Content-Type: application/json' \
-H 'x-hasura-admin-secret: your-admin-secret' \
-d '{
"query": "query GetUsers { users { id name email created_at } }"
}'
Use Hasura GraphQL Engine from Claude / Cursor / ChatGPT
Get a hosted MCP endpoint for Hasura GraphQL Engine. Paste your Hasura GraphQL Engine API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls Hasura GraphQL Engine directly with your credentials — no local install, works on mobile.
hasura_query_database
Execute GraphQL queries against Hasura to retrieve data from connected databases with filtering and pagination
hasura_mutate_data
Perform insert, update, or delete operations on database tables through GraphQL mutations
hasura_track_table
Automatically track new database tables in Hasura to expose them via GraphQL API
hasura_manage_permissions
Configure role-based access control and permissions for tables and fields
hasura_create_relationship
Define foreign key relationships between tables to enable nested GraphQL queries
Connect in 60 seconds
Paste your Hasura GraphQL Engine key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.
Connect Hasura GraphQL Engine to your AI →