Developer account and API keys

Hi,

I have created a developer account on developer.infusionsoft.com, generated the API keys, and when using them I receive the error “invalid access token”. I am using REST API Version 2 with PHP & cURL.

Why is this error occurring? Which account’s API keys should be used: the developer account, the service account, or the personal account?

Thanks

Hi @Thanos_Manesis, this happens because the APIs require OAuth 2.0 for authentication. You need to use the Client ID and Client Secret from your Keap developer app to obtain an access token, and then use that token to authenticate your API requests. Full details on this process are covered in the OAuth documentation here: Getting Started with OAuth2 - Keap Developer Portal

Separately, you can also authenticate using Personal Access Tokens (PATs) or Service Account Keys (SAKs) generated in the Keap UI; however, while these can work, they are not intended for third-party integrations or heavy/long-term integrations.

1 Like

For any additional questions related to the APIs, please post them under the API Q&A category.

Thank you for the answer. I will try what you describe and I hope I will come back with good result.

1 Like