API Reference

Complete reference for the Castiz API. All endpoints use the base URL https://api.castiz.com

Authentication

All requests require an API key

Include your API key in the X-API-Key header:

curl -X GET "https://api.castiz.com/videos" \
  -H "X-API-Key: sk_live_your_key_here"

Get your API key from Settings → API Keys

Videos

Manage your video library

Folders

Organize videos into folders

Tags

Tag videos for easy filtering

Upload

Upload videos to your library

Error Codes

StatusDescription
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing API key
403Forbidden - Insufficient permissions (check scopes)
404Not Found - Resource does not exist
429Too Many Requests - Rate limit exceeded
500Server Error - Something went wrong on our end

Rate Limits

API requests are limited to 100 requests per minute per API key. Rate limit headers are included in every response:

  • X-RateLimit-Limit - Requests allowed per window
  • X-RateLimit-Remaining - Requests remaining
  • X-RateLimit-Reset - Unix timestamp when limit resets