P

Pirsch API v1

REST discovered

Details
URL
https://api.pirsch.io/api/v1
Docs
https://docs.pirsch.io/api-sdks/api-v1
Authentication
Pirsch OAuth client (client ID and secret) oauth2 discovered Set up OAuth ↗
Authorization: Bearer <credential>

In the Pirsch dashboard, go to Integration Settings or Account Settings and click Add Client. Select type oAuth, choose the needed scope, enter a description, and create the client. Save the displayed client_id and client_secret; Pirsch says the secret is only shown once. To call the API, exchange them at POST https://api.pirsch.io/api/v1/token for a bearer access token. See API Guide v1 and API v1.

Pirsch access key api_key discovered Get key ↗
Authorization: Bearer <credential>

In the Pirsch dashboard, open your site's Settings page. Under Integration → Clients, click Add Client, choose Access Key, add a description, and create it. Copy the secret from the dialog and store it securely; Pirsch says it cannot be retrieved later. See Server-side Integration and API Guide v1.