API Health Check
All of our APIs have a /healthcheck
endpoint, which verifies that the operating status of the requested API is optimal. It is a ping for the API entry points to ensure the entry points are accessible and it is the first thing you can do if the API request is not working. See details with examples in API Health Check.
Performing the API health check (for first-time users)
- To run the health check for the Eligibility V3 API, download and import the Eligibility interactive OpenAPI Spec from the Overview page in to your own development platform or a tool of your choice. You can use our sandbox predefined values to familiarize yourself with our APIs. You can create a sandbox and try our APIs for real-time API testing.
- If you do not own a development platform to try or test our APIs, use our interactive Try It interface to familiarize yourself with our APIs, for example, generate a bearer token. For information, see using the Try It interface. You can create a sandbox and try our APIs for real-time API testing.
Generate a bear token
Our API servers require bearer tokens to access our APIs.
Using your own development platform or tool
- Generate a Bearer token using the
[/apip/auth/v2/token](https://sandbox-apigw.optum.com/apip/auth/v2/token)
endpoint.
BEARER TOKEN LIFESPAN
The lifespan of a Bearer token is one hour (3600 seconds) for both sandbox and production environments.
We recommend automating transactions to use the tokens generated over the token lifespan. Obtaining tokens for each transaction is less efficient and does not improve the security criteria for any transactions.
- Run the
/healthcheck
endpoint.
https://sandbox-apigw.optum.com/medicalnetwork/eligibility/v3/healthcheck
If the API engine is working correctly and if the entry points are accessible, the API operating status response shows OK
.
Using our development portal's Try It interface
- Go to API Reference.
Generate a bearer token
- Click the API Tools tab.
- Click
/apip/auth/v2/token
. - Enter the following values in their respective fields or use the repopulated values by clicking and selecting the respective values.
Field | Value |
---|---|
client_id | Your client ID provided by Optum |
client_secret | Your client secret provided by Optum |
grant_type | Always client_credentials |
NOTE
To view the request example, pull down the Example drop-down above the Try It button.
- Click Try It to generate a bearer token.
Run an API health check
- Go to API Reference.
- In the left navigation, click Health Check on the required API.
- Enter the bearer token generated in the Authorization field by performing step 5.
- Click Try It.
The response to the requested API shows.
NOTE
A response other than a 200 OK, indicates that the API health check failed.
Updated 15 days ago