Overview

This guide walks through obtaining an access token from Purpl API using the client credentials flow. You’ll log in, create an OAuth Client Application, then request a token and use it in API calls.

<aside> ℹ️

The API root URL differs between test and production. Keep the API root configurable in your integration.

Production: https://api.purplme.com Test: https://api.test.purplme.com

</aside>


1) Access the API Test Environment

<aside> 🔐

Recommendation: After first login, change the password to a strong value (12+ characters) at your User Instance page: User Instance.

</aside>


2) Create your OAuth Client Application

<aside> ⚠️

Important: Copy the Client Secret before saving. It won’t be shown again. If lost, delete the Application and create a new one.

</aside>

Screenshot 2025-10-31 at 1.08.48 PM.png

Screenshot 2025-10-31 at 1.09.17 PM.png

You’ll use the resulting client_id and client_secret to request tokens.


3) Retrieve an access token