canonical: https://jentic.com/apis/thegraph.com/thegraph

# The Graph Subgraph GraphQL API

The Graph is an indexing protocol for organizing and querying blockchain data. It allows developers to build and publish open APIs called subgraphs that applications can query using GraphQL. Each subgraph has its own unique query URL on The Graph Network gateway. The API exposes 1 endpoints.

## For AI agents

Programmatically query a subgraph using graphql. Covers 1 operations.

## Scope

Does not handle payments, crm, or developer tools - use for communications only.

## Capabilities

- Query a subgraph using GraphQL
- Manage communications data programmatically
- Integrate The Graph Subgraph GraphQL API into automated workflows
- Query and filter The Graph Subgraph GraphQL API records by parameters
- Monitor The Graph Subgraph GraphQL API operational status and events

## Use cases

### Communications Operations

Use the The Graph Subgraph GraphQL API to perform communications operations programmatically. The API provides 1 endpoints covering core functionality including query a subgraph using graphql.

Example prompt: Call POST / to query a subgraph using graphql

### Data Retrieval and Monitoring

Query The Graph Subgraph GraphQL API resources on a schedule to track changes, generate alerts, or feed downstream dashboards. Agents poll relevant endpoints, compare against previous state, and trigger actions when thresholds are crossed.

Example prompt: Poll the primary The Graph Subgraph GraphQL API endpoint, compare response to last known state, and alert if changed

### AI Agent Integration via Jentic

AI agents discover and call The Graph Subgraph GraphQL API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle none tokens manually.

Example prompt: Search Jentic for 'query a subgraph using graphql', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/` | Query a subgraph using GraphQL |

## Key resources

- **GraphQL** — GraphQL query endpoint for subgraph data

## Why Jentic

- **Setup:** Wiring The Graph Subgraph GraphQL API by hand means placing your API key and subgraph id in the gateway.thegraph.com path and posting GraphQL queries against that single endpoint yourself. Through Jentic you install once, import The Graph from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** The Graph exposes a single GraphQL POST endpoint, so you limit the agent to just that query operation and nothing else. Because that is the only call you grant, the agent can query a subgraph but cannot reach any other functionality.
- **Credential handling:** Your Graph API key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'query a subgraph using GraphQL', and Jentic returns the matching Graph operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Twilio** — Alternative communications API
- **Sendgrid** — Alternative communications API
- **Pusher** — Complementary communications API

## FAQ

### What authentication does the The Graph Subgraph GraphQL API use?

The The Graph Subgraph GraphQL API uses no authentication. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I query a subgraph using graphql with the The Graph Subgraph GraphQL API?

Yes. Use the POST / endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the The Graph Subgraph GraphQL API?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I query a subgraph using graphql through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'query a subgraph using graphql'. Jentic returns the matching The Graph Subgraph GraphQL API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the The Graph Subgraph GraphQL API have?

The The Graph Subgraph GraphQL API exposes 1 endpoints covering graphql operations.

### Can I limit what my agent is allowed to do with the The Graph Subgraph GraphQL API?

Yes. Jentic One is self-hosted, so you set the rules that decide which operations and credentials your agent may use. The Graph Subgraph GraphQL API exposes a single GraphQL POST endpoint, so you grant your agent only that one query operation and nothing else. Because that is the only call you allow, the agent can query a subgraph but cannot reach any other functionality, and your API key stays with your own instance instead of the agent's context.
