7. Versioning

Versioning is required in the accept header, in the following format where n represents the version number you want to access.

Accept: application/vnd.newvoicemedia.v{n}+json

Whenever a new endpoint version is created, the whole API will be versioned. If there is a new v3 version for a given endpoint, you can assume that the whole API will support v3.

Some endpoints return the same data format amongst different versions.

If the version header is missing, you will receive a 400 Bad Request error.