SOKE
API Reference

API Reference

Complete reference for all Soke API endpoints, including request/response formats and error codes.

API Overview

Base URL

https://api.usesoke.ai/api/v1

Content Type

All requests must include Content-Type: application/json. All responses are JSON.

Response Format

Every successful response follows this envelope:

{
  "success": true,
  "data": {
    // Endpoint-specific response data
  },
  "meta": {
    "platform": "youtube",
    "request_id": "550e8400-e29b-41d4-a716-446655440000",
    "processing_time_ms": 142
  }
}

Error Format

Error responses use the same envelope with an error object:

{
  "success": false,
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable description of the error.",
    "details": {}
  },
  "meta": {
    "request_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}

Error Codes

CodeHTTP StatusDescription
BAD_REQUEST400Invalid request parameters or validation failure
UNAUTHORIZED401Missing or invalid authentication
FORBIDDEN403Insufficient permissions
SUBSCRIPTION_REQUIRED403No active subscription
NOT_FOUND404Resource not found
INSUFFICIENT_CREDITS402Not enough credits for the operation
RATE_LIMIT_EXCEEDED429Rate limit or monthly quota exceeded
PLATFORM_NOT_IMPLEMENTED501Requested platform is not yet supported
INTERNAL_ERROR500Internal server error

Platform Parameter

Most endpoints accept an optional platform parameter. Currently only "youtube" is supported. Other values return 501 Not Implemented.

TikTok, Instagram, LinkedIn, X/Twitter, and Podcast support are on the roadmap.

Quota-Tracked Endpoints

The following endpoints consume credits and count toward your rate limit:

CategoryEndpointMethod
Research/research/keywordsPOST
Research/research/contentPOST
Content/content/optimize-titlePOST
Content/content/scorePOST
Content/content/generate-descriptionPOST
Chat/chat/completionsPOST
Thumbnail/thumbnail/generatePOST
Thumbnail/thumbnail/generate-backgroundPOST
Transcription/transcriptionPOST

On this page