{
  "opencollection": "1.0.0",
  "info": {
    "name": "Elation Health REST Allergies Authentication API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://sandbox.elationemr.com/api/2.0/oauth2/token/",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Authentication",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Obtain OAuth2 access token",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.elationemr.com/api/2.0/oauth2/token/",
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "grant_type",
                  "value": ""
                },
                {
                  "name": "client_id",
                  "value": ""
                },
                {
                  "name": "client_secret",
                  "value": ""
                },
                {
                  "name": "scope",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Exchange client credentials for an OAuth2 access token using the client_credentials grant type."
        }
      ]
    }
  ],
  "bundled": true
}