Connect
Connect errors and limits
The error body
JSON
codeis stable. Branch on it.messageexplains the problem to a person and may change.paramnames the field that caused the error, when there is one.detailsadds data for some codes.request_ididentifies the call. Log it with every error: the console finds the call by it under Logs.
The posting API (/v1) also answers with the error codes of the OmniSocials API, see Rate limits and errors.
Error codes
| Status | Code | When | What to do |
|---|---|---|---|
400 | validation_error | A field has the wrong value or shape. param names it | Fix the request |
400 | network_turned_off | A connect link names a network you switched off in Appearance. param is platforms | Leave platforms out, or switch the network on |
401 | The key is missing or unknown, or it is a sandbox key on the live address or the reverse. The message names the right address | Check the key and the address | |
403 | not_available_for_connect | A part of /v1 that is not open to Connect keys: /v1/webhooks and approval workflows | Use the Connect webhooks, and keep reviews in your product |
403 | sandbox_real_account | In the sandbox, an inbox or automation change for a customer with a real social account | Use test accounts in the sandbox |
409 | external_id_conflict | A customer with this external_id exists already | Read it with GET /connect/v1/customers/ext:<id> |
409 | customer_publishing | You deleted a customer while one of its posts is publishing | Try again when the post is done |
409 | customer_ads_running | You deleted a customer while one of its ads runs or waits for review. details.running_ads lists them (id, platform, status, and pause_error when a pause failed) | Send the delete again with ?pause_running_ads=true. For an ad with pause_error, ask the customer to stop it in the network's own ads manager, then try again |
429 | Too many requests | Wait the seconds in Retry-After, then send the request again | |
500 | server_error | Something failed on our side | Send the request again later, with the same Idempotency-Key |
On the connect page
The connect page answers your customer itself. Create a new connect link when the page says:
- The link expired. It passed
expires_at. - The link was used. The person pressed Done on it before.
- The link was replaced. Another connect link was opened in the same browser. The person opens their own link again.
The page keeps your brand on these messages.
Idempotency
Send Idempotency-Key: <uuid> on every POST to /connect/v1. A retry with the same key within 24 hours returns the first answer, so a timeout never creates a customer, a connect link or a webhook endpoint twice. Use a new key for each new request.
Limits
| What | Limit |
|---|---|
Connect API (/connect/v1) | 600 requests a minute per Connect account |
| Rate limited request | 429 with Retry-After in seconds, on both APIs |
| Idempotency keys | Kept 24 hours |
Connect link expires_in | 600 to 604,800 seconds, 3,600 by default |
GET /v1/posts page size | limit up to 100, then offset while pagination.has_more is true |
| Webhook answer | 2xx within 10 seconds; the whole answer within 15 seconds and at most 1 MB; no redirects |
| Webhook retries | About a day |
| Connect page logo | PNG, JPEG, WebP or GIF, up to 2 MB |
| Comment to DM | Meta allows one private reply per comment, within 7 days |
| Logs in the console | 30 days |
Logs
The console keeps 30 days of your API calls, events and webhook deliveries under Logs. Search it by request_id, path, event type or customer. For a call that failed, the log also keeps the request body and our answer.
Last modified on