How to Generate API Keys and OAuth2 Credentials for Using an External API
- To generate an API key, go to the Integration section under the Billing tab. Scroll down to the Payfunnels API Key module and click the Generate button. See the screenshot below.
- After clicking Generate, you will be prompted to set a key name.
- Once you set and save the name, your API key will be displayed. The API key must be included in the request header as: x-pf-api-key
Steps for OAuth2 Credentials
- For OAuth2, Click on the Generate button under the OAuth2 section, then set and save a team name.
- After saving, you will see the Client ID and Client Secret. Include these in the request headers. Upon a successful call, the user will receive both a refreshtoken and an accesstoken in the response.
- The access token must be used as an Authorization Bearer access_token.
- If the access token expires, the user must call the refresh token endpoint, passing the refresh token to obtain a new access token and refresh token.
- Below is the documentation for External API:
- Swagger documentation: https://api.payfunnels.com/docs
- Slate documentation: https://api.payfunnels.com/api/docs
Email us at support@payfunnels.com if you have any queries.