API Reference Overview
This comprehensive API reference provides detailed documentation for all user-facing endpoints in TikFlow. All endpoints follow RESTful conventions and use JSON for request/response bodies.Base Configuration
Base URL:
Authentication: Bearer token (JWT for user sessions, API keys for programmatic access)
Content Type:
Rate Limits: Vary by subscription plan and authentication method
https://api.d1g.qzz.io/api/v1Authentication: Bearer token (JWT for user sessions, API keys for programmatic access)
Content Type:
application/jsonRate Limits: Vary by subscription plan and authentication method
Authentication
User Session Authentication (JWT)
For frontend applications and user sessions:API Key Authentication
For programmatic access and integrations:API Structure
The API is organized into the following resource groups:- Upload (
/upload) - Video and photo upload operations - Schedule (
/schedule) - Content scheduling operations - Analytics (
/analytics) - Performance metrics and insights - AI (
/ai) - AI-powered features and script generation - Subscription (
/subscription) - Subscription and usage information - TikTok (
/tiktok) - TikTok account management
Error Handling
All API responses follow a consistent error format:Common Error Codes
| Code | HTTP Status | Description |
|---|---|---|
UNAUTHORIZED | 401 | Missing or invalid authentication |
FORBIDDEN | 403 | Insufficient permissions or feature not available |
VALIDATION_ERROR | 400 | Request validation failed |
NOT_FOUND | 404 | Resource not found |
RATE_LIMITED | 429 | Rate limit exceeded |
INTERNAL_ERROR | 500 | Server error |
Rate Limiting
Rate limits are applied based on your subscription plan:| Plan | User Session | API Key |
|---|---|---|
| Free | 60/min | ❌ Not available |
| Basic | 100/min | ❌ Not available |
| Professional | 200/min | 100/min |
Rate limit headers are included in all responses:
X-RateLimit-Limit: Total requests allowed per minuteX-RateLimit-Remaining: Remaining requests this minuteX-RateLimit-Reset: Time until reset (Unix timestamp)
API Versioning
The current API version is v1. Breaking changes will result in a new major version (e.g., v2). We maintain backward compatibility within the same major version.Code Examples
All API endpoints include examples in multiple programming languages:- cURL - Command line examples
- JavaScript - Node.js with Axios
- Python - Python with Requests
- PHP - PHP with cURL
All code examples use real parameter names and include proper error handling. Replace placeholder values with your actual data.
Next Steps
Explore the specific API reference sections:Upload API
Upload videos and photo carousels programmatically.
Scheduling API
Schedule content for future publication.
Analytics API
Retrieve performance metrics and insights.
AI API
Access AI-powered features and script generation.
API Keys API
Manage your API keys programmatically.
Subscription API
Check subscription status and usage limits.

