Public API: getting started
The public API connects your systems to Grupos Inteligentes. You can retrieve data and automate tasks without repeating actions in the dashboard.
Before you begin
Section titled “Before you begin”You will need:
- access to your Grupos Inteligentes account;
- an active Scale subscription;
- a secure place to store the token;
- a tool that can make HTTPS requests.
An API token works like a unique password for an integration. It lets another system access your account data.
Create a token
Section titled “Create a token”- Sign in to the Grupos Inteligentes app.
- Open Settings in the side menu.
- Select API tokens.
- Click Create token.
- Enter a name that identifies the integration.
- Confirm by clicking Create.
- Copy the token and store it immediately.
Use a clear name, such as Report automation or CRM integration.
Tip: Store the token in a password or secrets manager. Never place it on a public page, in a browser app, or in a shared file.
Make your first request
Section titled “Make your first request”The API base address is:
https://api.gruposinteligentes.com/apiSend the token in the Authorization header, preceded by the word Bearer.
curl --request GET \ --url https://api.gruposinteligentes.com/api/v1/redirectors \ --header "Accept: application/json" \ --header "Authorization: Bearer $GI_API_TOKEN"In this example, GI_API_TOKEN is a secure variable in your system. Do not replace it with a real token in shared code.
For requests that send data, also add this header:
Content-Type: application/jsonFind the right operation
Section titled “Find the right operation”Open the complete API reference to see:
- available addresses;
- fields accepted by each request;
- response examples;
- possible error codes.
The reference shows examples with the Authorization header. For safety, run these examples in your own tool.
Limits and expiration
Section titled “Limits and expiration”- Each token accepts up to 60 requests per minute.
- Each token has its own expiration date in the dashboard.
- Expired or revoked tokens stop working immediately.
- Integration tokens cannot create, list, or revoke other tokens.
Create a replacement before the current token expires. Then update your integration and revoke the old token.
Revoke a token
Section titled “Revoke a token”Revoke a token that is lost, exposed, or no longer used:
- Open Settings in the app.
- Select API tokens.
- Find the token by its name.
- Click Revoke and confirm.
The integration loses access to your account as soon as you confirm.
Common errors
Section titled “Common errors”| Code | What it means | How to fix it |
|---|---|---|
401 | The token is invalid, expired, or revoked | Create a token and update the integration |
403 | Your current plan does not allow tokens | Activate or renew the Scale plan |
422 | A field is missing or incorrect | Check the fields in the API reference |
429 | Too many requests in a short time | Wait and reduce the request frequency |
If you still need help, email suporte@gruposinteligentes.com.