Skip to main content
Version: 2019-05-29 (Current)

List API Versions

Returns a list of all available API versions for the account. Use this endpoint to discover supported API versions and determine which version to use for your integration.

Request Parametersโ€‹

No parameters required for this endpoint.


Responsesโ€‹

200

Successful request

Returns a list of available API versions with details about each version.

Response structure:
  • object - Always returns "list"
  • data - Array of API version objects
  • location - API endpoint URL
API version object contains:
  • object - Always returns "api_version"
  • name - Version identifier (e.g., "2019-05-29")
  • current - Boolean indicating if this is the account's current default version

401

Unauthorized

Authentication failed. Invalid or missing API key.

Common causes:
  • Missing Authorization header
  • Invalid secret key
  • Using public key instead of secret key
  • Incorrect HTTP Basic Auth format

5xx

Server error

Server-side error occurred. These are rare but should be handled gracefully.

How to handle:

Code samplesโ€‹

curl https://api.omise.co/account/api_versions \
-u skey_test_5xuy4w91xqz7d1w9u0t:

๐Ÿ”‘API Credentials

Try it outโ€‹

Your IP: ...Loading...