Authentication
To access the Peach API, you need to include your API key in the Authorization header of each request. The API key ensures secure and authenticated access to the resources provided by the API. This section provides details on how to include the API key in your requests.
Obtaining an API Key
To obtain an API key, please follow these steps:
Navigate to the Developer section in your account settings https://www.peach-in.com/portal/developer-tools
Generate a new API key by clicking the "Add API Key" button.
Make sure to securely store your API key. Treat it as a secret as it grants access to your Peach account and data.
Including the API Key
To include your API key in the Authorization header, follow these steps:
Retrieve your API key from your account settings on the Peach developer portal.
Add the following header to each API request: Authorization: Bearer YOUR_API_KEY
Replace YOUR_API_KEY
with your actual API key.
Example
Here's an example of including the API key in a cURL request:
Replace YOUR_API_KEY
with your actual API key, and /endpoint
with the desired API endpoint you want to access.
Last updated