You integrate with all Pagos services via RESTful APIs, secured and authenticated by a unified API key. This guide outlines how to request your API key and authenticate against the APIs:
Click the settings icon in the top-right corner of your Pagos Service Panel.
2
Under Developers, click API Keys.
3
Click the API Keys tab.
4
Click Create API Key to add a new key to your account. A side panel will open with the new key value.
5
Copy your new API key and store it somewhere secure.
You can only view this value one time.
6
Click I’ve Copied My Key to confirm and exit out of the side panel.
You’ll provide this API key with all API requests. Pagos uses this value alone to authenticate requests to our servers; you don’t need to provide a password.
The Pagos platform uses API keys to authenticate requests to all our services. To access the API, you must authenticate via Bearer Authentication (e.g. for a cross-origin request). When you make any API request, pass an Authorization header in the following format:
Copy
Ask AI
"Authorization: Bearer <api key>”.
All API requests must be made over HTTPS; calls made over plain HTTP will fail. API requests without authentication will also fail.