Skip to main content

Migrating from the legacy endpoint

Decommission date: 31 January 2027

The legacy endpoint will be decommissioned on 31 January 2027. See Timeline.

If you currently authenticate against the legacy XCIS OAuth endpoint, the following changes apply. These are breaking changes — the new endpoint is not a drop-in replacement.

LegacyNew
Token endpoint/oauth/token/oauth2/token
Grant typepasswordclient_credentials
Credentials sentClient ID + secret and an end-user username + passwordClient ID + secret only
audience parameterNot usedRequired
token_type in responsebearer (lowercase)Bearer (capitalised)
Refresh tokenIssued for some accountsNot issued — request a new token instead
Token lifetime24 hours8 hours
Scopesread / write (and STAGE / PRODUCTION)Capability-based — see Scopes
CredentialsExisting client ID + secretSame client_id, new client_secret issued — your existing secret will not work

Migration checklist​

  • Obtain your new client_secret from your XCIS contact (your client_id is unchanged)
  • Remove the end-user username and password from your token request
  • Add the correct audience value for your environment to your token request (https://stgxcis.mobixone.co.za staging / https://xcis.mobixone.co.za production)
  • Update your grant_type to client_credentials
  • Update the token endpoint URL
  • Check any code that compares token_type against the literal string bearer — it is now Bearer
  • Remove any refresh-token logic
  • Confirm your token cache handles an 8-hour lifetime
  • Test end-to-end in staging before switching production traffic

Watch out for​

token_type capitalisation. The legacy server returned lowercase bearer. The new server returns the standard Bearer. If your code compares this value against a hardcoded lowercase string, it will break. Most HTTP clients handle this transparently, but custom integrations sometimes do not — this is the most frequently encountered issue when moving from the legacy endpoint.

No end user. The legacy flow required an end-user username and password alongside your client credentials. The new flow authenticates your system only. There is no user identity in the token.

Timeline​

The legacy endpoint is deprecated and will continue to run in parallel with the new endpoint during migration. It will be decommissioned on 31 January 2027. After that date, token requests to the legacy endpoint will fail and legacy tokens will no longer be accepted by the XCIS API.

Migration is not optional. Please plan to complete your migration, including testing in staging, well ahead of this date.