Try Our APIs

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.

Generate a Bearer token

In 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.

  1. For example, to generate an API Bearer token in the developer portal, go to API Tools.
  2. Click /apip/auth/v2/token.
  3. Use your sandbox credentials provided in the client Id and client secret fields and enter client_credentials in 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"
}'
2174

Generate Bearer Token Try It Feature Example

In your development platform

  1. Download and import our OpenAPI Spec into your platform.
  2. Under the Prior Authorization V1 folder, click the Generate JWT token with payload - Medical Network endpoint.
  3. Click the Body tab and enter your specific API credentials provided by Optum.
  • client_id: your client_id
  • client_secret: your client_secret
  • grant_type: client_credentials
  1. Run the request to generate the Bearer token.

API Healthcheck

See API Health Check examples.

Run the Eligibility check endpoint in Try It! interface

  1. Generate a Bearer token using your client Id, client secret, and client_credentials in the developer portal see generating a Bearer token.
  2. Click Check Eligibility.
  3. Scroll down to the end of the page and enter the generated Bearer token without the double quotes in the Authorization field.
  4. Enter in the controlNumber, serviceId, and all the required fields in the Body Params. Also see, sandbox predefined values.

ā—ļø

IMPORTANT

Please note that unlike the Check Eligibility X12, the JSON request requires you to provide all the required field values. Please note that these required values are GREYED out, which are pre-populated example values and can be selected to view their respective canned response. To view the required fields, expand the + symbol shown in the following figure (see Request and Response example). For more information, please refer to the JSON-to-EDI API contents section.

2066

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 for example, Request and Response and Eligibility JSON-to-EDI API Contents in your API requests.

For information about HTTP response codes, see.

Related Topics