Custom GPT Actions
Build Custom GPTs with AnrakLegal
Create your own Custom GPT with access to 588,024+ Indian legal documents. Use OpenAPI Custom Actions to add legal search, document retrieval, and case analysis capabilities to your GPT.
Different from MCP Connectors
ChatGPT uses a different protocol (OpenAPI/REST) than Claude Desktop (MCP). If you need Claude Desktop integration, visit the MCP Connectors page instead.
Quick Start
Get your ChatGPT connected in 3 simple steps
Get Your API Key
Sign in and generate an API key from the Console. Your key will start with ANRAK-
Get the OpenAPI Schema
Choose one of these methods to import the schema into ChatGPT:
Option A: Import from URL (Recommended)
https://anraklegal.fly.dev/api/openapiOption B: Copy Schema Directly
Configure ChatGPT
In ChatGPT GPT Editor:
- Go to "Configure" → "Actions"
- Click "Create new action"
- Import the schema (paste URL or schema text)
- Set Authentication to "API Key"
- Choose "Custom" auth type
- Set header name:
X-API-Key - Paste your API key (ANRAK-xxxxx)
- Save and test!
Detailed Setup Guide
Step-by-step instructions with screenshots
Open ChatGPT and navigate to "Explore GPTs" → "Create a GPT"
Screenshot placeholder: GPT creation page
Go to "Configure" tab and scroll to "Actions" section
Screenshot placeholder: Actions section
Click "Create new action" and import the OpenAPI schema
Screenshot placeholder: Schema import
Configure authentication with your API key
Authentication Settings
Available Actions
Your ChatGPT will have access to these legal research tools
searchCases
Search the Indian legal corpus with natural language queries. Returns judgments with metadata and insights.
getDocument
Retrieve complete judgment text, citations, and all document details for a specific case.
getDocumentMetadata
Get lightweight metadata for quick previews - title, court, date, and basic information.
getDocumentFragment
Extract specific sections from a judgment using a search query to find relevant paragraphs.
getUsageStats
Check your current API usage, daily limits, and remaining requests for your plan.
Example Prompts
Try these prompts once your GPT is configured
"Search for Supreme Court cases about property disputes from 2023"
"Find recent trademark infringement cases from the Delhi High Court"
"What are the leading cases on breach of contract in Indian law?"
"Get the full judgment text for case ID 123456 and summarize the key points"
Rate Limits & Pricing
All ChatGPT requests count toward your daily API limit
FREE
requests per day
STARTER
requests per day
ADVANCED
unlimited requests
Troubleshooting
Common issues and solutions
"Invalid API Key" Error
- • Verify your API key starts with ANRAK-
- • Check that the key is active in the Console
- • Ensure header name is exactly: X-API-Key (case-sensitive)
"Daily Limit Exceeded" Error
- • Check your current plan and limits in the Console
- • Limits reset daily at midnight IST
- • Upgrade your plan for higher limits
Actions Not Working
- • Ensure the OpenAPI schema imported successfully
- • Check that authentication is configured correctly
- • Test with a simple query first
- • Try saving and re-opening the GPT configuration
Need Help?
Visit our documentation or contact support for assistance