Get Context
POST/api/v1/developer/get-context
Search across all indexed documentation to find relevant context for your query. This endpoint automatically searches all available indexed services (both public and your own) and returns relevant documentation chunks, code examples, and usage guides.
Request
Headers
Body Parameters
Search query to find relevant documentation and code examples. Include programming language, version, or framework name for better results (e.g., “Python requests POST with authentication”, “React useState hook examples”, “AWS S3 bucket creation”).
Optional session ID to track responses across multiple requests. When provided, this ID will be included in analytics tracking to help correlate related requests.
Example Request
Response
Success Response (200)
Indicates if the request was successful
Error message if the request failed, null otherwise
Contains the response data
Query Best Practices
Write effective queries to get the most relevant context:Be Specific
Be Specific
Good: “how to make authenticated POST request with JSON body”Less Good: “POST request”Include relevant details like authentication, data formats, or specific operations.
Use Action Words
Use Action Words
Good: “create S3 bucket with public access”, “list all running containers”Less Good: “S3 bucket”, “containers”Start with verbs that describe what you want to accomplish.
Include Context
Include Context
Good: “Python requests library timeout configuration”Less Good: “timeout”Mention the library, tool, or framework when relevant.
Ask Complete Questions
Ask Complete Questions
Good: “How do I handle pagination in REST API responses?”Less Good: “pagination”Phrase your query as a question or complete thought.
Error Responses
400 - No subscription found
400 - No subscription found
401 - Missing API key
401 - Missing API key
401 - Invalid API key
401 - Invalid API key
404 - User account missing
404 - User account missing
Use Cases
AI-Powered Code Assistants
Enhance your AI coding assistant with up-to-date library documentation and examples
Developer Tools
Build IDE extensions that provide contextual help based on the user’s current task
Documentation Chatbots
Create chatbots that answer developer questions with accurate, indexed documentation
Learning Platforms
Power educational platforms with dynamic, query-based code examples and tutorials
Best Practices
Iterate Your Queries: If the returned chunks aren’t quite right, refine your query to be more specific or try different phrasing. Include programming language, version, or framework names for better results.