# Zerodha API

**Canonical:** https://apis.io/apis/zerodha/zerodha-api/  
**Provider:** Zerodha — https://apis.io/providers/zerodha/  
**Base URL:** https://api.kite.trade  
**Documentation:** https://kite.trade/docs/connect/v3/user

Zerodha API is published by [Zerodha](https://apis.io/providers/zerodha/) on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. The published artifact set on APIs.io includes an OpenAPI specification and 6 JSON Schemas.

Zerodha API as documented publicly: 22 operations. Contract generated from the documentation by API Evangelist (2026-10-13); not the provider's own document.

## Operations (22)

| Method | Path | Summary |
|---|---|---|
| DELETE | `/alerts` | DELETE /alerts |
| GET | `/alerts` | GET /alerts |
| POST | `/alerts` | Create a new alert |
| GET | `/alerts/{uuid}` | Retrieve a specific alert |
| PUT | `/alerts/{uuid}` | Modify an existing alert |
| GET | `/alerts/{uuid}/history` | Retrieve the history of a specific alert |
| GET | `/gtt/triggers` | GET /gtt/triggers |
| POST | `/gtt/triggers` | Place a GTT |
| GET | `/orders` | GET /orders |
| POST | `/orders/{variety}` | Place an order of a particular variety |
| DELETE | `/orders/{variety}/{orderId}` | Cancel an open or pending order |
| PUT | `/orders/{variety}/{orderId}` | Modify an open or pending order |
| GET | `/portfolio/holdings/auctions` | GET /portfolio/holdings/auctions |
| POST | `/portfolio/holdings/authorise` | POST /portfolio/holdings/authorise |
| PUT | `/portfolio/positions` | PUT /portfolio/positions |
| GET | `/portfolio/{portfolioid}` | GET /portfolio/holdings |
| DELETE | `/session/token` | DELETE /session/token |
| GET | `/session/token` | GET /session/token |
| POST | `/session/token` | Authenticate and obtain the access_token after the login flow |
| GET | `/trades` | GET /trades |
| GET | `/user/margins/{segment}` | Retrieve detailed funds and margin information |
| GET | `/user/{userid}` | GET /user/margins |

## Machine-readable artifacts (8)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/zerodha/refs/heads/main/openapi/_ae-authored/zerodha-openapi-generated.yml
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/zerodha/refs/heads/main/json-schema/zerodha-get-user-margins-segment-response-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/zerodha/refs/heads/main/json-schema/zerodha-post-session-token-response-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/zerodha/refs/heads/main/json-schema/zerodha-post-orders-variety-request-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/zerodha/refs/heads/main/json-schema/zerodha-post-alerts-request-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/zerodha/refs/heads/main/json-schema/zerodha-put-alerts-uuid-request-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/zerodha/refs/heads/main/json-schema/zerodha-put-orders-variety-orderid-request-schema.json
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/zerodha/refs/heads/main/apis.yml

---

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