Base URL
All API requests use the following base URL:API design
The API follows REST conventions:- Resource-oriented URLs:
/v1/content,/v1/feed,/v1/analytics - Standard HTTP methods: GET, POST, PATCH, DELETE
- JSON request/response bodies
- Consistent response envelope
Response format
All responses use a consistent envelope:Success response
List response
Error response
Pagination
List endpoints use cursor-based pagination:limit- Items per page (default: 20, max: 100)cursor- Cursor from previous response’smeta.nextCursor
Rate limiting
API requests are rate-limited per organization:| Tier | Requests/minute |
|---|---|
| Standard | 1,000 |
| Pro | 5,000 |
| Enterprise | Custom |
429 Too Many Requests response.
Idempotency
For safe retries, include anIdempotency-Key header on POST requests:
Versioning
The API version is included in the URL path (/v1/). Breaking changes are only introduced in new versions.
Non-breaking additions (new fields, new endpoints) are added to the current version.
Environments
| Environment | Base URL | Purpose |
|---|---|---|
| Production | https://api.shortkit.dev/v1 | Live traffic |
| Staging | https://api.staging.shortkit.dev/v1 | Testing |
SDKs
While you can use the API directly, we provide official SDKs:- Node.js:
npm install @shortkit/node - Python:
pip install shortkit - Go:
go get github.com/shortkit/shortkit-go
Endpoint categories
Content
Upload, manage, and query video content.
Feed
Retrieve ranked feeds for users.
Analytics
Query engagement and quality metrics.
Configuration
Manage ranking, experiments, and settings.
