API Reference
Complete reference documentation for all Weir AI API v1.0.1 endpoints. This section provides detailed information about every endpoint, including parameters, response formats, and code examples.External APIs
Public-facing APIs for third-party integrations and external applications.
Console APIs
Organization management APIs for internal operations and team collaboration.
Admin APIs
Administrative APIs for platform administration and system management.
API Categories Overview
External APIs
Purpose: Public-facing APIs for third-party integrationsAuthentication
Authentication
- Basic authentication with client credentials
- Access token generation for external applications
- Limited scope for public integrations
Use Cases
Use Cases
- Third-party application integrations
- Public API access for external developers
- Limited functionality for security
- Client credential-based authentication
Rate Limits
Rate Limits
- 100 requests per minute per client
- 10 token generation requests per minute
- Burst limit of 200 requests per 5-minute window
Console APIs
Purpose: Organization management and internal operationsFeatures
Features
- Team management and member invitations
- Platform creation and management
- Client and talent roster management
- User profile and authentication management
- Subscription and billing management
Use Cases
Use Cases
- Internal management tools
- Organization administration
- Team collaboration platforms
- Platform management interfaces
- User management systems
Rate Limits
Rate Limits
- 200 requests per minute per user
- 5 login requests per minute per IP
- Burst limit of 500 requests per 5-minute window
Admin APIs
Purpose: Platform administration and system managementFeatures
Features
- Administrative user management
- System-wide platform and organization management
- Pod management and system control
- Mail template management
- Comprehensive logging and monitoring
Use Cases
Use Cases
- System administration dashboards
- Platform monitoring and management
- User administration tools
- System maintenance and operations
- Audit and compliance tools
Rate Limits
Rate Limits
- 500 requests per minute per admin
- 10 admin login requests per minute per IP
- Burst limit of 1000 requests per 5-minute window
Common Response Format
All Weir AI API responses follow a consistent format:Success Response Structure
Error Response Structure
HTTP Status Codes
Success Codes
- 200 OK: Successful GET, PUT, PATCH requests
- 201 Created: Successful POST requests
- 204 No Content: Successful DELETE requests
Error Codes
- 400 Bad Request: Invalid request parameters
- 401 Unauthorized: Authentication required
- 403 Forbidden: Insufficient permissions
- 404 Not Found: Resource not found
- 429 Too Many Requests: Rate limit exceeded
- 500 Internal Server Error: Server error
Authentication
Different API categories use different authentication methods:External APIs
External APIs
Method: Basic Authentication
Console APIs
Console APIs
Method: Bearer Token with x-source header
Admin APIs
Admin APIs
Method: Bearer Token with admin privileges
Rate Limiting
All APIs implement rate limiting with the following headers in responses:Maximum number of requests allowed per time window.
Number of requests remaining in the current time window.
Unix timestamp when the rate limit window resets.
Error Handling
Common Error Codes
Common Error Codes
- UNAUTHORIZED: Invalid or expired authentication token
- FORBIDDEN: Valid authentication but insufficient permissions
- NOT_FOUND: Requested resource does not exist
- VALIDATION_ERROR: Invalid request parameters
- RATE_LIMIT_EXCEEDED: Too many requests in time window
Error Response Format
Error Response Format
Pagination
Many endpoints support pagination for large datasets:Page number for pagination. Must be a positive integer.
Number of items per page. Range: 1-100.
Pagination Response Format
Code Examples
Each endpoint documentation includes code examples in multiple languages:cURL
Command-line examples for testing and automation
JavaScript
Modern JavaScript examples with fetch API
Python
Python examples with requests library
PHP
PHP examples with cURL
Interactive API Playground
Try the API Playground
Test endpoints directly in your browser with our interactive API playground. No external tools required.
Getting Started
Choose Your API Category
Select the API category that best matches your use case.
Review Authentication
Understand the authentication method for your chosen API category.
Explore Endpoints
Browse the available endpoints and their documentation.
Test with Examples
Use the provided code examples to test the endpoints.
Support and Resources
Integration Guides
Detailed guides for building specific types of integrations
Code Examples
Ready-to-use code examples in multiple programming languages
Best Practices
Proven patterns and recommendations for building robust integrations
Error Reference
Comprehensive error code reference and troubleshooting guide