---
schema_version: "1"
id: f0c139a8444239ea0c57bf5558a7a63aae1a7edd6b0de87ca1f839c50de10077
title: Retrieve OAuth Authorization
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-retrieve-oauth-authorization.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-retrieve-oauth-authorization.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: d82b2681539d9af16c01a1d6247e837db776f7f5f1d592102463dfb7a81ac2fc
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# Retrieve OAuth Authorization

When the preceding steps are complete, run the **SFDC OAuth Username Password API** from the API collection. This step must be performed every time you start a new session or when the token expires.

The API executes a script that auto-populates a unique session token `{{InitAccessToken}}` in the environment variable. After executing, each call uses the token. If the token expires, simply rerun the API call.

To run the SFDC OAuth Username Password API:

1.  If necessary, start Postman on your computer.

2.  If necessary, load the Digital Commerce APIs collection.

3.  Select **SFDC OAuth Username Password** and click **Send**.
