Skip to content

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.

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.

  1. Sign in to the Grupos Inteligentes app.
  2. Open Settings in the side menu.
  3. Select API access.
  4. Click Create token.
  5. Enter a name that identifies the integration.
  6. Confirm by clicking Create.
  7. 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.

The API base address is:

https://api.gruposinteligentes.com/api

Send the token in the Authorization header, preceded by the word Bearer.

Janela do terminal
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/json

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.

The API registers groups that already exist in WhatsApp. It does not create new groups in WhatsApp. After a group is registered, the whatsapp_url field cannot be changed.

  • List groups: GET /api/v1/redirectors/{redirector}/groups
  • View a group: GET /api/v1/redirectors/{redirector}/groups/{group}

In the list, you can use these parameters:

ParameterWhat it does
limitNumber of items per page. The default is 15, and the maximum is 100.
filter[name]Finds groups by name.
filter[whatsapp_url]Finds groups by invite link.
filter[filled_slots]Shows groups with exactly this number of filled slots.
filter[empty]Shows published groups that still have slots.
sortSorts by id, created_at, name, filled_slots, last_track_at, or occupancy. Add - before the field for descending order.

Tip: To find groups with slots, use filter[empty]=1&sort=occupancy.

The API also lets you preserve a public link when deleting a redirector. A virtual slug is the term used in the API reference for this preserved link.

  • When deleting the original redirector, send merge_into_redirector_id with the destination identifier and confirm_merge: true.
  • You can list and view the preserved links in your account.
  • You can restore the original redirector or schedule deletion of the preserved link.
  • Preserved links cannot be created or edited directly. They are created only after a confirmed merge.

The original redirector remains recoverable for 30 days. See each operation’s fields and responses in the API reference.

  • Each token accepts up to 60 requests per minute.
  • The token remains active until you revoke it.
  • Revoked tokens stop working immediately.
  • Integration tokens cannot create, list, or revoke other tokens.

To replace a token, create another one and update your integration. Then revoke the old token.

Revoke a token that is lost, exposed, or no longer used:

  1. Open Settings in the app.
  2. Select API access.
  3. Find the token by its name.
  4. Click Revoke and confirm.

The integration loses access to your account as soon as you confirm.

CodeWhat it meansHow to fix it
401The token is invalid or revokedCreate a token and update the integration
403Your current plan does not allow tokensActivate or renew the Scale plan
404The item does not exist, does not belong to your account, or the identifier has an invalid formatCheck the identifiers used in the address
422A field is missing or incorrectCheck the fields in the API reference
429Too many requests in a short timeWait and reduce the request frequency
503Redirector creation is unavailable right nowWait the number of seconds in the Retry-After header and try again

If you still need help, email suporte@gruposinteligentes.com.