Social0|Docs
API

Errors

Error response shape, codes, and common validation mistakes for the Social0 API.

Error shape

All /v1 errors use a single JSON shape:

{
  "error": {
    "code": "invalid_api_key",
    "message": "API key is invalid."
  }
}

Error codes

HTTPcodeWhen
400validation_errorBad JSON, missing fields, invalid UUIDs, schedule in past, etc.
401invalid_api_keyMissing, wrong, expired, or revoked key
403forbiddenResource belongs to another user
404not_foundPost, job, media, account, or webhook not found
409idempotency_conflictDuplicate Idempotency-Key while first request in flight
429rate_limit_exceededHourly API quota exceeded
500internal_errorServer error (no stack trace in body)

Debugging

Every response includes an x-request-id header. Include this when contacting support — it helps us trace your request in logs.

Example:

curl -i https://api.social0.app/v1/accounts \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
# Look for: x-request-id: abc-123-def

Common validation_error mistakes

SymptomCauseFix
"Expected object, received string"Request body sent as plain text, not JSONSet Content-Type: application/json and send a JSON body (not Raw/Text in API clients)
Invalid UUID on platformsUsed platform name ("linkedin") instead of account IDUse UUID from GET /v1/accountsdata[].id
Accounts invalid / not yoursWrong UUID or another user's accountRe-list accounts with the same API key
Schedule in the pastscheduledAt is before nowUse a future datetime
Schedule too far outscheduledAt more than 1 year aheadPick a time within the next year

Example error responses

401 — invalid API key:

{
  "error": {
    "code": "invalid_api_key",
    "message": "API key is invalid."
  }
}

400 — validation error:

{
  "error": {
    "code": "validation_error",
    "message": "platforms: Invalid uuid"
  }
}

409 — idempotency conflict:

{
  "error": {
    "code": "idempotency_conflict",
    "message": "A request with this Idempotency-Key is already in progress."
  }
}

On this page