Use the Try It Interface
Following are some examples of using the Try It interface in the developer portal.
BEARER TOKEN LIFESPAN
The lifespan of a Bearer token is one hour (3600 seconds) for both sandbox and production environments.
Interactive Try It interface
Use the API reference's Try It interface as shown below by using our sandbox predefined values to familiarize yourself with our APIs.
- For example, to generate an API Bearer token in the developer portal, go to API Tools.
- Click
/apip/auth/v2/token. - Use your sandbox credentials provided in the
client Idandclient secretfields and enterclient_credentialsin the grant_type field and click Try It.
curl --request POST \
--url https://sandbox-apigw.optum.com/apip/auth/v2/token \
--header 'accept: */*' \
--header 'content-type: application/json' \
--data '
{
"client_id": "your client ID",
"client_secret": "your secret",
"grant_type": "client_credentials"
}'

Example of Generate Bearer Token Try It Feature
API Healthcheck
- To check the API status, for example, to check the Eligibility API status, click Health Check.
- Enter the Bearer token generated in the above section in the Authorization box exactly as shown in the example in the image below.
The curl request shows as below in the box on the right.
curl --request GET \
--url https://sandbox-apigw.optum.com/medicalnetwork/eligibility/v3/healthcheck \
--header 'Authorization: Bearer eyJraWQiOiIxIiwidHl... \
--header 'accept: */*'
If the API engine is working correctly and if the entry points are accessible, the API operating status response shows OK with the active product version.

Eligibility V3 API Response Example
IMPORTANT
For sandbox usage, all fields must have the correct predefined values to obtain a successful response example. Inventing new PMI values or using real-world PMI values will result in errors. Please provide all of the values, such as
tradingPartnerServiceId,controlNumber,subscriber, and so on marked as required (R) (see example) in your API requests.
Related Topics
Updated 4 days ago