code for programmatic error handling; use error for logging and display.
Error codes
| HTTP | Code | When it occurs |
|---|---|---|
| 400 | missing_metadata | A required field is missing in the request body or query |
| 400 | unsupported_platform | The platform value is not recognized |
| 401 | unauthorized | API key is missing, invalid, or revoked |
| 401 | invalid_token | The connected account’s OAuth token is expired or revoked |
| 401 | invalid_credentials | The platform rejected the stored credentials |
| 403 | unauthorized | The OAuth state token belongs to a different API key |
| 404 | account_not_found | The account ID does not belong to your workspace |
| 404 | not_found | The requested resource does not exist |
| 409 | account_already_linked | This social account is already connected |
| 413 | storage_quota_exceeded | Media upload would exceed your plan’s storage limit |
| 429 | rate_limit_exceeded | Your monthly post or interaction limit is exceeded |
| 429 | platform_rate_limit | The upstream platform’s own rate limit was hit |
| 500 | - | Internal server error (contact support) |
| 501 | not_supported | This operation is not supported on this platform |
Handling specific cases
401 invalid_token
The user’s OAuth token expired. Your app should reconnect the account by re-running the OAuth flow.413 storage_quota_exceeded
Your media upload would push storage usage over the plan limit. Free plans are limited to 100 MB. Check your current usage withGET /v1/media/storage, delete unused media with DELETE /v1/media/:id, or upgrade your plan for unlimited storage.
429 rate_limit_exceeded
Your monthly post or interaction allowance is exhausted. Limits reset at the start of your next billing period, or upgrade your plan for unlimited capacity.429 platform_rate_limit
The platform (not SocialAPI) is throttling. This does not consume your quota. Wait a few minutes and retry.501 not_supported
The operation is not available on this platform. For example, Instagram does not have reviews - callingGET /accounts/{id}/reviews on an Instagram account returns 501. Check the Connectors section for each platform’s supported operations.