API Credentials that are generated in the PM are used to integrate with the PM API.
- The PM API documentation guides Users through the process of integrating with the API using these credentials.
Generate New API Credentials
- On the Left Side Menu, select Interfaces.
- Select API Credentials.

- Select Generate New Credentials.

- Ensure the appropriate PM User is selected in the Associated User dropdown.
- This should pre-fill the Client ID, Client Secret, and Refresh Token.
- Name: Enter the name of the application that is being integrated with the PM.
- Email: Enter the email of the User who is responsible for developing and maintaining the integration.
- Use Chart Number Instead of Patient ID (optional): If checked, the API responses will send the Chart Number in place of any Patient IDs.
- This can be useful when integrating an EHR/EMR.
- Implementing Webhooks (optional): If checked, this allows for a two-way integration.
- Select Save [F2].

API Credentials (FHIR API)
The API Credentials at the top of the popup are used to integrate into the FHIR API, but are generated simultaneously with the Gateway Service User API Credentials.
Gateway Service User API Credentials (PM API)
The Service User API Credentials are required to complete the authorization process in the API Gateway, which then allows the User to integrate into the PM API and all other APIs (such as the POPS API).
- Select the Modify icon next to an existing set of API Credentials.
- Gateway Client ID: This is unique to the Gateway, which allows the User to authenticate with the API Gateway to access the other APIs.
- Gateway Client Secret: This is unique to the Gateway, which allows the User to authenticate with the API Gateway to access the other APIs.

- Username and Password: Matches with the Client ID above.
- Database ID: The unique identifier that allows the API to determine which Database the request is associated with.
PM API Documentation
The PM API Documentation provides instructions on integrating directly into the PM API using the API Credentials that were generated in the PM (see instructions above for more information)
- To access the PM API Documentation, select the API Documentation link on the API Credentials Page.
