Please remember that the API key authentication method can be used only for private apps. If you plan to build a public app you have to use OAuth2.
Each access token (or API key) is tied to a specific user and has the same permissions as the user that holds them. Requests made with an access token will act on behalf of a user and will have access to the resources their permissions allow. As an admin, you can easily generate and revoke your access token in the settings of your account.
Example: If you use an Access Token for a user with an Observer Agent role, then you can only do the things that an Observer agent can. Learn more about roles here.
- Log in to your Gorgias account
- Navigate to Settings → REST API
- Click the Create API key button
Once you have your credentials, you can start performing requests directly from the API documentation .
curl --request GET \ --url https://your-customer-account.gorgias.com/api/account \ --header 'Authorization: Basic base64encode(USERNAME:API_KEY)'
Updated 5 months ago