Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

All requests to the Interaction Content Export API endpoints return standard HTTP headers, including the response status code, and a response body in JSON format.

Success response code and parameters

Successful requests return a 200 OK code with a JSON object in the response body or a 204 No Content code with an empty response body. For specific details on the payload of each endpoint response, see API reference (Interaction Content Export API).

Pagination

Responses from endpoints that return multiple resources contain paging section that includes information about paging:

  • page is the number of the current page of results
  • count is the total number of pages available
  • pageCount is the number of resources returned in the current page
  • totalCount is the total number of resources available

Response codes and errors

Error code 400 Bad Request

The Interaction Content Export API returns 400 Bad Request in response to an invalid request.

Missing API version

If you do not provide the required API version in the accept header, you will receive the following message in addition to the 400 error code:

Code Block
languagejs
themeMidnight
{
  "message": "Invalid api-version! Valid values: 'application/vnd.newvoicemedia.v1+json'"
}

Invalid API version

If you provide an invalid API version in the accept header, you will receive the following message in addition to the 400 error code:

Code Block
languagejs
themeMidnight
{
  "message": "Invalid api-version! Valid values: 'application/vnd.newvoicemedia.v1+json'"
}

GUID incorrect length

If you provide one or more GUIDs of incorrect length (more than or fewer than 36 characters), you will receive the following error message:

Code Block
languagejs
themeMidnight
{
  "message": "GUID must be 36 characters in length"
}

Invalid GUID

Code Block
languagejs
themeMidnight
{
  "message": "GUID '111414121313' is not a valid UUID string"
}

Error code 401 Unauthorized

The Interaction Content Export API returns 401 Unauthorized in response to an invalid, expired or missing bearer access token.

Error code 403 Forbidden

The Interaction Content Export API returns 403 Forbidden in response to a request that is not authorized. This error is generally caused by a token that is missing one or more required scopes. Can be also caused by insufficient permissions or user role.

Error code 404 Not Found

The Interaction Content Export API returns 404 Not Found in response to a request for an item that was not found. You may have requested an interaction that doesn’t exist.

Invalid GUID

Invalid GUIDs may result in a 404 Not Found, depending on the endpoint used.

An invalid GUID may otherwise result in a 500 Internal Server Error or will simply be skipped.

Error code 500 Internal Server Error

An internal server error occurred.

Invalid GUID

Invalid GUIDs may result in a 500 Internal Server Error, depending on the endpoint used.

An invalid GUID may otherwise result in a 404 Not Found or will simply be skipped.