API error codes
The connectors API (https://connectors.windsor.ai) answers an error with a JSON body that has an error message and, for most errors, a machine-readable code:
{
"error": "Missing required parameter: fields",
"code": "missing_parameter"
}
Use the code in your code, not the message: the message text can change. Some errors add more keys, such as details or retry_after. The HTTP status is 400 unless the table says otherwise.
Request errors
These errors mean that the request needs a change. Retrying the same request returns the same error.
| Code | Status | Cause | What to do |
|---|---|---|---|
unauthorized | 400 | No api_key, or the key is in a header. The connectors host reads the key only from the api_key query parameter. | Send api_key as a query parameter. |
user_error | 400 | A general request error. Examples: an api_key that is not valid (Please check the API key used: …), a date_preset that is not one of the allowed values, a filter that is not valid JSON, or a data size over the limit (Data size is too big. Request less fields, accounts or date range.). | Read the error message. It names the value to fix. |
missing_parameter | 400 | A required parameter is missing, for example fields. | Add the parameter that the message names. |
invalid_parameter | 400 | A parameter has a value that is not valid. | Fix the value that the message names. |
unknown_field | 400 | fields has a field that the connector does not have. The message lists it and links the field list. | Get the valid field IDs from GET /{connector}/fields. |
invalid_fields | 400 | The requested fields are not valid for this request. | Remove the fields that the message names. |
incompatible_fields | 400 | The fields can't be returned in one request, for example Google Analytics 4 or Google Ads fields that do not go together. details has the conflicting fields and the groups that work together. | Split the request, or keep the fields of one group. |
invalid_date_range | 400 | A date is not a calendar date in YYYY-MM-DD, date_to is before date_from, or date_from is in the future. | Fix the dates. |
unknown_date_filter | 400 | A date_filters entry is not recognised. | Use a date field from GET /{connector}/fields. |
invalid_option | 400 | An option value is not one that the connector accepts. | Use the values that GET /{connector}/options lists. |
account_not_available | 400 | One of the accounts in select_accounts is not connected for this team. details.requested has what you asked for and details.configured the accounts you have. | Use one of the configured account IDs, or connect the account. |
ambiguous_account | 400 | An entry in select_accounts matches more than one connected account. details.matches lists the account IDs that each entry matches. | Select the accounts by their exact ID. |
no_accounts_configured | 400 | The team has no account for this connector. | Connect an account for the connector in Windsor.ai. |
Account and plan errors
| Code | Status | Cause | What to do |
|---|---|---|---|
plan_not_allowed | 403 | The plan does not allow the request. force_refresh or a refresh_interval that the plan does not have gets this error. Only two cases get cached data instead: the Google Sheets add-on's force_refresh=partial, and the refresh interval of Google Sheets scheduled uploads and the cache warm-up. Other destination uploads, such as BigQuery or Snowflake, get the error. A query over the plan's quota gets it only from AI clients (MCP) and destination uploads. A request for data older than the plan's history limit gets a message of the plan, and only from AI clients (MCP). reason says which. | See Pricing and plans, or change the request. |
co_user_not_allowed | 403 | The api_key belongs to a co-user, who can only connect data sources for the team that sent the link. | Query with the api_key of a member of that team. |
auth_failed | 400 | The platform rejected the saved sign-in of the account. details.connect_url links to the page where you grant access again. | Reconnect the account at connect_url. |
connector_deactivated | 400 | A scheduled destination upload would miss a connector that was deactivated after an authentication error, so nothing was uploaded. details has the connector names and connect_url. | Reconnect the connector, or add it to exclude_connectors in the connector URL. |
A plain API call that is over the plan's quota, or from a team with an expired license or a failed payment, does not get an error. It gets HTTP 200 with a single row in place of your data. The text fields of that row hold the message of the plan, for example "Uh-oh! License expired. …" or "Your payment failed. …", the date fields hold today's date, and the metrics are 0. Don't read that row as data: look for the plan message in the text fields.
Pull errors
| Code | Status | Cause | What to do |
|---|---|---|---|
timeout | 400 | The data was not pulled in time. | Request fewer fields, accounts or a shorter date range. |
too_big_snapshot_data | 400 | The data is over the size limit, and no requested field depends on the date. | Request fewer fields or accounts. |
retry_later | 400 | The source platform is still preparing the report, or a cached report expired and a new one is created. The response has a Retry-After header and a retry_after value in seconds. | Send the same request again after that time. |
multiple_errors | 400 | Only on /all. At least one connector failed, and the response wraps the errors in details. If one of them was a retry_later, the response has a Retry-After header too, and no retry_later code. | Read details.connectors: it has the message of each failed connector, as {connector: message}. details.connector_errors adds the code and details of the errors that have them. Fix or retry those connectors. |
internal_error | 500 | An unexpected error in Windsor.ai. | Try again. If it stays, contact support with the request. |
Write action errors
These come from POST /{connector}/actions. Apart from write_actions_disabled and auth_failed, a refused write action has no code: it answers with a bare error message, so match on the message and the status.
| Code or response | Status | Cause | What to do |
|---|---|---|---|
write_actions_disabled | 403 | Write actions are off for the Windsor.ai user of the api_key. The setting is per team member. | Turn on Enable write actions for Claude, ChatGPT & API under Settings → API Access. |
auth_failed | 400 | The platform rejected the saved sign-in of the account. details.connect_url links to the page where you grant access again. | Send the user to connect_url to reconnect the account, then send the request again. |
Spend hold: result and spend_impact, no error | 200 | The request set spend_confirmed to false, and the action starts or increases ad spend, so it did not run. result has the message and spend_impact says what the spend does. This is a success status, so check for spend_impact. | Show the impact to the user. After they approve, send the request again without spend_confirmed: false. |
error: an identical request completed a moment ago | 400 | The same request ran a moment ago, and it was not executed again. | Nothing to redo. To run it again on purpose, wait for the dedupe window or change a parameter. |
error: an identical request failed with an unknown outcome | 400 | The same request failed in a way that does not show whether the platform applied it, and it was not executed again. | Check the account first. Then wait for the dedupe window or change a parameter. |
Job errors
| Code | Status | Cause | What to do |
|---|---|---|---|
job_not_found | 404 | The job ID is unknown or the job expired. | Start the job again. |
Errors without a code
A few errors carry only the error message:
We don't have this connector yet!(400): the connector name in the path is not one that Windsor.ai has. Get the names fromGET /list_connectors.Couldn't identify the user!(400): theapi_keydoes not belong to a Windsor.ai user.Invalid value for '_field_headers'(400): the only value that is supported isnames.
Errors from a connector
A connector can add codes of its own, for example for a limit of its source platform. These start with the connector or platform name, such as graph_rate_limit or adroll_proxy_error. The error message says what the platform returned.