Base URL
Authentication
All API endpoints require authentication using Bearer tokens. Include your API key in theAuthorization header:
Getting Your API Key
- Sign up at wistx.ai/api-key
- Navigate to API Keys in your dashboard
- Create a new API key or use an existing one
- Copy the key and store it securely
You’ll get 3 free index jobs and 50 queries/month to start - no credit card required!
API Endpoints
Compliance & Security
Get Compliance Requirements
Get compliance requirements for infrastructure resources. Supports PCI-DSS, HIPAA, CIS, SOC2, NIST, ISO 27001, GDPR, FedRAMP, and more.
Knowledge & Research
Research Knowledge Base
Deep research tool for DevOps, infrastructure, compliance, FinOps, and platform engineering knowledge.
Search
Search Codebase
Search your indexed repositories, documentation, and documents using natural language queries.
Search Code Examples
Search infrastructure code examples from curated repositories. Supports 32+ code types (Terraform, Kubernetes, Docker, CI/CD, etc.) with filtering by cloud provider, services, quality score, and compliance standards.
Search Packages
Search DevOps/infrastructure packages across registries (PyPI, npm, Terraform, Crates.io, Go, Helm, Ansible, Maven, NuGet, RubyGems).
Regex Search
Search codebase using regex patterns with pre-built templates for security audits, compliance checks, and code analysis.
Web Search
Search the web for DevOps/infrastructure/compliance/FinOps/SRE information. Supports general web search and security-focused searches (CVEs, advisories).
Read Package File
Read specific file sections from package source code using SHA256 hash. Fetches packages on-demand from registries.
Indexing
Index Resources
Index GitHub repositories, documentation websites, and documents for user-specific search. Includes cost and compliance analysis.
Cost & FinOps
Calculate Infrastructure Cost
Calculate infrastructure costs for cloud resources. Get monthly/annual costs, cost breakdowns, and optimization suggestions for AWS, GCP, and Azure resources.
Cost Search
Search infrastructure pricing data using semantic search. Find costs for AWS, GCP, and Azure resources. Compare costs and get optimization opportunities.
Infrastructure Budget
Infrastructure Budget
Create, manage, and track infrastructure spending budgets. Monitor spending, set alerts, and track budget status.
Architecture & Infrastructure
Design Architecture
Design and initialize DevOps/infrastructure/SRE/platform engineering projects with intelligent context.
Infrastructure Management
Get infrastructure inventory and manage infrastructure lifecycle (create, update, upgrade, backup, restore, monitor, optimize).
Cloud Discovery
Discover existing cloud resources from AWS accounts and generate Terraform import context. Secure cross-account access with dependency resolution, import order, and infrastructure diagrams.
Troubleshooting
Troubleshoot Issue
Diagnose and fix infrastructure/code issues. Analyzes errors, logs, and code to identify root causes and provide fix recommendations.
Reports & Health
Reports
Generate documentation and reports in various formats (markdown, HTML, PDF, DOCX).
Alerts
Manage budget alerts and notification preferences.
Health
Check API health status.
Response Format
All API responses follow a consistent format:Success Response
Error Response
Rate Limits
Rate limits vary by plan:
Rate limit information is included in response headers:
X-RateLimit-Limit: Maximum requests allowedX-RateLimit-Remaining: Remaining requestsX-RateLimit-Reset: Unix timestamp when limit resets
HTTP Status Codes
Error Codes
Pagination
Some endpoints support pagination using query parameters:page: Page number (default: 1)per_page: Items per page (default: 20, max: 100)
SDKs
Official SDKs are available for popular languages:- Python:
pip install wistx-sdk - JavaScript/TypeScript:
npm install @wistx/sdk - Go:
go get github.com/wistx/sdk-go
SDK Documentation
View SDK documentation and examples
OpenAPI Specification
The complete OpenAPI specification is available:OpenAPI Spec
View the complete OpenAPI specification
Support
Need help? We’re here for you:- Documentation: docs.wistx.ai
- Support: support.wistx.ai
- Status: status.wistx.ai
- Discord Community: discord.gg/ZVGK5Fv3wT - Join for real-time support and discussions
- GitHub: github.com/WISTXHQ/wistx-model - Report issues and contribute
Quick Start
1
Get Your API Key
Sign up at wistx.ai/api-key and get your API key.
2
Make Your First Request
Try the compliance requirements endpoint:
3
Explore the API
Check out the API endpoints for detailed documentation and examples.