API reference

Errors.
Clear about what went wrong.

When a request fails, you get an HTTP status and an error object that says what went wrong. Use code in your own code: it stays the same, while message is written for people.

The error object

  • error.codestringrequired

    What went wrong, as a short code. Use this in your code.

  • error.messagestringrequired

    What went wrong, in words.

  • error.paramstringrequired

    The field in your request that caused it, such as name. Empty when no single field did.

  • error.request_idstringrequired

    The ID of this request. Include it if you contact support.

Example response

{  "error": {    "code": "duplicate_name",    "message": "An integration with this name already exists for this account.",    "param": "name",    "request_id": "4b1f0c9e2d7a48b6a3e5f19c0d8b7a26"  }}

All errors

4xx errors mean something in the request needs to change. 5xx errors are on our side.

ErrorWhat it means
400invalid_requestSomething in the request is wrong, such as a missing field or a value that isn’t allowed. param names the field.
400invalid_sessionA conversation you sent can’t be accepted. param names the field to fix. Nothing in the request was accepted.
400invalid_cursorThe cursor isn’t valid. Start again from the first page.
400invalid_windowsince isn’t in a valid format, such as 7d or 12h.
400unsupported_metricThat combination of measure and group_by isn’t available.
400unknown_integration_typeThat type isn’t a platform you can connect.
400unknown_keyOne of the keys isn’t used by this platform.
400invalid_keysA key is missing or has a wrong value.
400invalid_urlA URL in the keys must be a public https:// address.
400invalid_nameThe name is empty or too long.
400assets_not_supportedThis platform type has no agents to read.
401not_authenticatedThe request has no API key.
401authentication_failedThe API key is wrong, revoked or expired.
403permission_deniedThis API key doesn’t have access. Contact support.
404not_foundWe couldn’t find that item in your account, or the URL is wrong.
405method_not_allowedEvery endpoint uses POST.
409duplicate_nameThat name is already in use in your account.
422connection_test_failedThe platform rejected the keys. Nothing was saved.
429throttledToo many requests. Wait for the number of seconds in the Retry-After header, then try again.
500internal_errorSomething went wrong on our side. Try again. If it keeps happening, contact support with the request ID.
502provider_errorWe couldn’t reach the platform. Check the keys, then try again.
503queue_unavailableWe couldn’t accept your conversations. The message says which ones to send again.

Trying again

  • 429: wait for the number of seconds in the Retry-After header, then send the same request again.
  • 500 and 502: wait a moment and try again. If it keeps happening, contact support with the request ID.
  • 503 from Send sessions: the message says which conversations to send again.
  • Other 4xx errors will happen again until you fix the request.