Skip to main content
Every error comes back in the same envelope, with an HTTP status and a machine-readable code:
  • Branch on code, not on message. Codes are stable; messages are written for people and can change.
  • Log message. For 400 errors it names every field that failed, as field: problem, separated by commas.
  • Keep the request id. Errors from the API gateway (401, most 403s, 429) also carry requestId in the body. Every response carries it in the x-amzn-RequestId header. Include it when you email help@onevisionresources.com.

Error codes

A record that belongs to another partner returns 404, not 403. The API never confirms that a record you can’t access exists.

Retrying safely

Retry only the codes marked Yes above. Use exponential backoff with jitter, and give up after a few attempts. Every other 4xx will fail the same way again, so retrying it only uses up your rate limit.
A 500 on a request that creates something, like POST /v1/conversation/submit or POST /v1/client, can arrive after the record was saved. Before you retry, check whether the record exists, for example by listing with a search or filters that would find it.
Updates (PATCH), and applying or removing labels and links (PUT / DELETE), are safe to repeat: sending the same request twice leaves the record in the same state.

Common causes of 400

  • filters isn’t URL-encoded. Encode the JSON array. With curl, use -G --data-urlencode. See Listing and filtering.
  • An attribute isn’t in the list’s allowed set. Each list has its own filter and sort fields.
  • A custom property id is unknown, or its value has the wrong type. The message names the property, for example customProperties.region: unknown custom property. See Custom properties and labels.
  • An id has the wrong format. Record ids are UUIDs, except user ids, which start with ovuid-.
  • The conversation is closed. A closed conversation can’t be updated. See Conversation status.