Skip to content

Search Servers

Endpoint used to get Discord servers (guilds).

Terminal window
curl --request POST \
--url https://chat.api.toolzz.com.br/api/v1/discord/guilds \
--header 'Authorization: Bearer TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '{
"botToken": "<discord bot token>"
}'
{
"data": [
{
"id": "string",
"name": "string",
"icon": "string",
"banner": null,
"owner": false,
"permissions": "string",
"features": []
}
]
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
botTokenStringSecret token (Bot Token) obtained from the Discord Developer Portal.Yes
KeyTypeDescription
data[]ArrayList of objects containing the linked servers (Guilds).
idStringNumeric ID of the server on Discord.
nameStringServer name as configured on Discord.
iconStringHash identifier of the server icon (used to compose the image URL).
bannerString/NullHash identifier of the server banner image.
ownerBooleanIndicates if the authenticated user is the owner (Owner) of the server.
permissionsStringNumeric string representing the total permissions of the user/bot on the server.
features[]ArrayList of special features active on the server (e.g., “COMMUNITY”, “VANITY_URL”).

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.

To access your access token, follow these steps:

  1. Log in to the ToolzzAI platform
  2. Click on “Settings”
  3. Click on “Access Token”
  4. Copy the access token

Access token page