API Integration
This guide will show you how to obtain an API token within the GoodAccess Control Panel for accessing the API and performing authorized operations.
Last updated
This guide will show you how to obtain an API token within the GoodAccess Control Panel for accessing the API and performing authorized operations.
Last updated
This feature is available in the Premium plan and higher.
For more detailed API integration documentation, we recommend visiting the Postman Documentation or downloading the collection and importing it into Postman.
Log in to the GoodAccess Control Panel, and go to API Integration.
Here, add a new integration or edit an existing one.
Select scopes of the integration, set expiration and allowed IP addresses, and generate a token.
Additionally, you can monitor the activity and communication of the integration from this interface.
Please note: Immediately after being generated, you will see the token for a limited period. It is important to save the token in a secure place, as it provides access to the API and can be used to perform operations. After this period has expired, the token will be secured and you won’t be able to access it.
Your token can be used to authorize HTTP requests to the GoodAccess API. Each request must include an Authorization header with the token written as Bearer <token>.
See the examples at the bottom of the page for correct syntax.
Treat your token like a password and store it securely. For example, use the methods env and dotenv to store it in a development environment.
To test your API connection, send an authenticated request to the test-connection endpoint. If the connection is successful, you will get a 200 return code.
Below are examples of how to call the test endpoint in various languages.
OK