Amperity API Versions

Amperity APIs evolve and change over time. Amperity versions API endpoints to help your brand track changes to the Amperity API and to offer support to developers as these endpoints evolve.

Your team of developers can track improvements to the Amperity API from the changelog. Monitor the changelog to know when new versions are available and/or when existing versions are updated or planned for deprecation.

Important

A version identifier is a date string that must be included with each request made to an API endpoint.

All endpoints are versioned together. This provides consistency across all endpoints and ensures interoperability.

A version identifier is updated only when breaking changes occur.

Breaking changes

A breaking change occurs when functionality within an API is modified in a way that causes integrations or applications to function abnormally or to stop working.

A breaking change often requires a third-party developer to make changes to their existing integrations or applications to maintain functionality with an API.

Examples of breaking changes include, but are not limited to:

  • Removing an endpoint

  • Renaming a URL, request or response field, HTTP header, or query parameter

  • Adding a required request field, HTTP header, or query parameter

  • Requiring a request field, HTTP header, or query parameter that was previously optional

  • Removing a request or response field, HTTP header, or query parameter

  • Modifying a data type or enumeration value

  • Adding pagination to a resource collection response

Non-breaking changes

A non-breaking change does not cause integrations or applications to function abnormally or to stop working.

A non-breaking change should not require a third-party developer to do any migration work to maintain existing functionality.

Examples of non-breaking changes include, but are not limited to:

  • Adding an endpoint

  • Adding a request or response field, HTTP header, or query parameter

  • Adding an enumeration value

Version identifiers

A version identifier is a string that identifies a supported version. A version identifier must be included in each request that is made to an API endpoint and may be passed as a request header or as a query parameter.

Request header

In the following example, replace “{tenant-id}” with your tenant name, “{endpoint}” with the name and path of the Amperity API endpoint, “{access-token}” with your Amperity API access token, and “{version}” with the version of the Amperity API to which the request will be made:

curl -request GET \
     -url "https://{tenant-id}.amperity.com/api/{endpoint}/" \
     -H "Authorization: Bearer ${access-token}" \
     -H "Amperity-Tenant: {tenant-id}" \
     -H "Content-Type: application/json" \
     -H "api-version: {version}"

where “{version}” identifies the version of the Amperity ID, such as “2024-04-01”.

Supported versions

New versions of the Amperity API are released periodically. Each version of an endpoint will be supported for at least 1 year.

Current versions:

  • 2024-04-01 The current version of the Amperity API.

Unstable versions

During development, Amperity may release APIs for testing using the unstable version identifier. Unstable versions contain features that are still in progress and may not be backward compatible.

There are no guarantees around customer support, notification of changes, breaking changes, or availability of unstable versions.

Deprecated versions

At least 6 months notice will be given before any supported version is marked as unsupported. API calls that are made to an endpoint using a version identifier that is no longer supported will return a 400 response.

Amperity APIs evolve and change over time. To warn developers of upcoming deprecations Amperity uses the following headers:

  • Deprecation Header. When true a deprecation will occur at the date indicated in the header.

  • Sunset Header. When true a deprecated feature will stop working and return a 4xx response at the date indicated in the header.

Deprecation and Sunset headers will be added at least 6 months prior to a deprecation. A deprecation date will be at least 3 months prior to a sunset date. For example:

Deprecation: Tue, 1 Sep 2024 23:59:59 GMT
Sunset: Wed, 1 Dec 2024 23:59:59 GMT

Deprecation and Sunset headers are informational. Amperity recommends building alerts to monitor for these headers to ensure that your applications and workflows can be migrated.