Prerequisites
Before you begin, ensure you have:API Credentials
Access to Weir AI API credentials (API key or basic auth credentials)
Development Environment
A development environment with your preferred programming language
HTTP Client
A tool to make HTTP requests (curl, Postman, or your preferred client)
Basic API Knowledge
Familiarity with REST APIs and JSON (we’ll guide you through everything)
Choose Your API Category
Weir AI API v1.0.1 offers different API categories for different use cases:External APIs
External APIs
For: Third-party integrations and public-facing applications
- Generate access tokens for external applications
- Basic authentication with client credentials
- Limited scope for public integrations
Console APIs
Console APIs
For: Organization management and internal operations
- Team management and member invitations
- Platform creation and management
- Client and talent roster management
- User profile and authentication management
- Subscription and billing management
Admin APIs
Admin APIs
For: Platform administration and system management
- Administrative user management
- System-wide platform and organization management
- Pod management and system control
- Mail template management
- Comprehensive logging and monitoring
Step 1: Set Up Authentication
For External APIs
Get Your Credentials
Obtain your
clientId and secretKey from the Weir AI dashboard.Generate Access Token
Use basic authentication to generate an access token.
For Console APIs
Register or Login
Create an account or login to get your console credentials.
Validate Registration
If registration requires validation, use the OTP validation endpoint.
Login and Get Tokens
Login to get your access and refresh tokens.
Step 2: Make Your First API Call
External API Example
Set Up Your Request
Use the access token from Step 1 to make authenticated requests.
Console API Example - Create a Team
Create Your First Team
Use the Console API to create a team for your organization.
Invite Team Members
Invite members to your newly created team.
Step 3: Explore Advanced Features
Platform Management
Create a Platform
Create a platform for your organization.
Verify Your Platform
Verify your platform domain.
Client Management
Create a Client
Create a client for your platform.
Step 4: Handle Authentication Refresh
Refresh Your Token
When your access token expires, use the refresh token to get a new one.
Step 5: Error Handling
Handle Common Errors
Learn how to handle common API errors gracefully.
Solution: Refresh your token or re-authenticate.
Solution: Check your request parameters and fix validation errors.
Solution: Implement exponential backoff and respect rate limits.
Authentication Errors
Authentication Errors
401 Unauthorized
Validation Errors
Validation Errors
400 Bad Request
Rate Limiting
Rate Limiting
429 Too Many Requests
Next Steps
Explore API Reference
Dive deep into the complete API reference with detailed endpoint documentation, parameters, and response examples.
Try the API Playground
Test endpoints interactively in your browser with our built-in API playground.
Read Integration Guides
Learn best practices and integration patterns for different use cases.
Join the Community
Connect with other developers and get help from the Weir AI community.
Common Use Cases
Building a Third-Party Integration
Building a Third-Party Integration
Use External APIs to build integrations that other developers can use. Focus on authentication and basic API access.
Organization Management Tool
Organization Management Tool
Use Console APIs to build internal tools for managing teams, platforms, and users within your organization.
Platform Administration
Platform Administration
Use Admin APIs to build administrative tools for managing the entire Weir AI platform and system resources.
Congratulations! You’ve successfully set up Weir AI API v1.0.1 and made your first API calls. You’re now ready to build powerful integrations with our platform.