Trenz Open PlatformTrenz Open Platform
Trenz Home
Product
  • Trenz Home
  • Apply for API Key
Docs
  • Quick Start
  • API Reference
Resources
  • Billing
  • Error Codes
Contact
  • support@trenz.ai

© 2026 Trenz. All rights reserved. · One-stop API platform for social commerce

  • Overview
  • Trenz API
Quick StartBillingError Codes
Data
    ProductsSellersCreatorsCreativesVideosLivesAds
Content
    AI AnalysisAI CopywritingAI ImageAI VideoAvatarMaterial SearchTools
Social
    Account ManagementVideo PublishingVideo ManagementComment ManagementAnalyticsCreation ToolsTikTok Shop
Ads
    AccountsCampaignsLanding PagesLeads & Reports
Async TasksFile Upload
Trenz API

Error Codes

Error response format

Code
{ "code": "RATE_LIMITED", "message": "Rate limit exceeded. Maximum 200 requests per minute.", "request_id": "550e8400-e29b-41d4-a716-446655440000", "docs_url": "https://openapi-doc.trenz.ai/errors/RATE_LIMITED" }

Client errors (4xx)

HTTPcodeDescriptionResolution
400BAD_REQUESTInvalid request parametersCheck parameter format and value range
400INVALID_PARAMInvalid parameter valueSee the specific field hint in message
400MISSING_PARAMRequired parameter missingAdd the required field hinted in message
400INVALID_SORT_FIELDInvalid sort fieldCheck if sort is a supported field
400INVALID_INCLUDEInvalid include parameterCheck if include targets a supported sub-resource
400PAGE_SIZE_EXCEEDEDPage size out of rangeReduce the page_size value
401AUTH_MISSING_KEYMissing API keyAdd X-API-Key or Authorization: Bearer sk_...
401AUTH_INVALID_KEYInvalid API keyCheck that the key starts with sk_live_
401AUTH_KEY_REVOKEDAPI key has been revokedUse a new API key
401AUTH_KEY_SUSPENDEDAPI key is suspendedContact support to reinstate
402INSUFFICIENT_BALANCEInsufficient balanceTop up and retry
403FORBIDDEN_SCOPENot authorizedConfirm the scope of this API key
404ROUTE_NOT_FOUNDEndpoint not foundCheck the request path
404TASK_NOT_FOUNDAsync task not foundCheck the task_id
429RATE_LIMITEDRate limit exceededSlow down; honor the Retry-After response header
429QUOTA_EXCEEDEDQuota exceededWait for quota reset or upgrade your plan

Server errors (5xx)

HTTPcodeDescriptionResolution
500INTERNAL_ERRORInternal service errorContact support with the request_id
502BACKEND_ERRORBackend service errorRetry later
503BACKEND_UNAVAILABLEBackend unavailableRetry later
504BACKEND_TIMEOUTBackend timeoutRetry later

Rate-limit headers

HeaderDescriptionWhen returned
X-RateLimit-LimitMax requests in current windowAll requests
X-RateLimit-RemainingRemaining requestsOnly on 429 (value is 0)
Retry-AfterSuggested wait in secondsOnly on 429
Last modified on May 7, 2026
Billing
On this page
  • Error response format
  • Client errors (4xx)
  • Server errors (5xx)
  • Rate-limit headers
JSON