Documentation

Learn how to integrate GateKey into your applications.

Quick Start

1. Get your API key

Sign up for a free account and create an API key from the API Keys page.

2. Make your first request

Use the unified API endpoint to query any provider:

curl -X POST https://api.gatekey.dev/v1/query \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "sec-edgar",
    "endpoint": "/search-index",
    "params": {
      "q": "apple annual report",
      "forms": "10-K"
    }
  }'

3. Handle the response

Responses include the provider's data plus GateKey metadata:

{
  "data": {
    // Provider-specific response data
    "hits": { ... }
  },
  "meta": {
    "request_id": "req_abc123",
    "tokens_used": 1250,
    "latency_ms": 342,
    "provider": "sec-edgar"
  }
}

Authentication

All API requests require authentication using a Bearer token. Include your API key in the Authorization header:

Authorization: Bearer gk_live_xxxxxxxxxxxxx

API keys starting with gk_live_ are production keys. Keep them secure and never expose them in client-side code.

Rate Limits

Rate limits vary by plan:

PlanRequests/minMonthly tokens
Free60100,000
Starter3005,000,000
Pro1,00050,000,000
Enterprise10,000+Custom

Rate limit headers are included in every response:

X-RateLimit-Limit: 60
X-RateLimit-Remaining: 45
X-RateLimit-Reset: 1699574400

Error Handling

GateKey uses standard HTTP status codes and returns detailed error messages:

{
  "error": {
    "code": "RATE_LIMIT_EXCEEDED",
    "message": "Monthly token limit exceeded",
    "request_id": "req_abc123"
  }
}
CodeStatusDescription
UNAUTHORIZED401Invalid or missing API key
RATE_LIMIT_EXCEEDED429Too many requests or token limit reached
BAD_GATEWAY502Provider returned an error
GATEWAY_TIMEOUT504Provider did not respond in time

SDKs & Libraries

GateKey works with any HTTP client. Official SDKs are coming soon to make integration even easier.

REST API

Available now — use any HTTP client

View API Reference →

Python SDK

Coming soon

Node.js SDK

Coming soon

Go SDK

Coming soon

Support

Need help? We're here for you:

  • • Email: support@gatekey.dev
  • • Pro & Enterprise customers: Priority support via your account dashboard