# Codex GraphQL API

**Canonical:** https://apis.io/apis/defined/codex-graphql-api/  
**Provider:** Defined — https://apis.io/providers/defined/  
**Base URL:** https://graph.codex.io/graphql  
**Documentation:** https://docs.codex.io/

Codex GraphQL API is published by [Defined](https://apis.io/providers/defined/) on the [APIs.io](https://apis.io/) network. Tagged areas include GraphQL, Blockchain, Market Data, Cryptocurrency, and DeFi. The published artifact set on APIs.io includes API documentation, a getting-started guide, and authentication docs.

Codex is Defined's unified GraphQL API for real-time blockchain data: token prices, OHLCV bars, trades, liquidity pools, holders, wallet analytics, prediction markets and launchpad data across 100+ EVM and non-EVM networks. Queries and mutations POST to https://graph.codex.io/graphql; subscriptions stream over WebSocket (graphql-ws) at wss://graph.codex.io/graphql. Auth is an API key passed in the Authorization header (no Bearer prefix); short-lived JWTs minted by createApiTokens use a Bearer prefix, and agents can pay per-request over HTTP 402 via the Machine Payments Protocol.

## Machine-readable artifacts (8)

- **Documentation** — https://docs.codex.io/
- **GettingStarted** — https://docs.codex.io/get-started.md
- **GraphQL** — https://graph.codex.io/graphql
- **Authentication** — https://raw.githubusercontent.com/api-evangelist/defined/refs/heads/main/authentication/defined-authentication.yml
- **Conventions** — https://raw.githubusercontent.com/api-evangelist/defined/refs/heads/main/conventions/defined-conventions.yml
- **Webhooks** — https://raw.githubusercontent.com/api-evangelist/defined/refs/heads/main/asyncapi/defined-webhooks.yml
- **LLMsTxt** — https://raw.githubusercontent.com/api-evangelist/defined/refs/heads/main/llms/defined-llms.txt
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/defined/refs/heads/main/apis.yml

## Tags

GraphQL, Blockchain, Market Data, Cryptocurrency, DeFi, Web3

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/defined/codex-graphql-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/defined/.
