Skip to content

Get Discord Integration by Unit

Endpoint used to get a Discord integration by unit.

Terminal window
curl --request GET \
--url https://converflow.api.prod.toolzz.media/api/v1/discord/integration/unit/{unitId} \
--header 'Authorization: Bearer TOKEN_HERE'
{
"data": [
{
"id": "uuid",
"botId": "uuid",
"unitId": "uuid",
"title": "<string>",
"isActive": true,
"connectionStatus": "connected",
"guildId": "<string_digits>",
"guildName": "<string>",
"botToken": "<string>",
"isTokenMasked": true,
"permissions": "<string_digits>",
"scope": "all",
"welcomeMessage": "",
"autoReplyOnMention": true,
"threadAutoCreate": true,
"channelIds": [
"<string_digits>"
],
"channelsDetail": [
{
"id": "<string_digits>",
"name": "<string>"
}
],
"lastConnectedAt": "2026-04-17 12:26:14.14",
"lastDisconnectedAt": null,
"lastConnectionErrorCode": null,
"lastConnectionErrorMessage": null,
"createdAt": "2026-04-17 12:26:12.804444",
"updatedAt": "2026-04-17 12:26:14.14",
"deletedAt": null
}
]
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
unitIdStringUnit IDYes
KeyTypeDescription
data[]ArrayList of objects containing the integration settings.
data[].idUUIDUnique identifier of the configuration in the database.
data[].botIdUUIDIdentifier of the bot associated with the Toolzz AI platform.
data[].unitIdUUIDOrganizational unit identifier.
data[].titleStringIntegration identifier name (e.g., “discord”).
data[].isActiveBooleanIndicates if the integration is enabled.
data[].connectionStatusStringReal-time connection status (e.g., connected).
data[].guildIdStringSnowflake ID of the Discord server.
data[].guildNameStringDiscord server name.
data[].botTokenStringBot authentication token (masked).
data[].isTokenMaskedBooleanConfirms if the token is hidden in the response.
data[].permissionsStringNumeric bitwise permission string of the bot.
data[].scopeStringMonitoring scope (e.g., all).
data[].welcomeMessageStringConfigured welcome message.
data[].autoReplyOnMentionBooleanIf the bot automatically responds when mentioned.
data[].threadAutoCreateBooleanIf the bot automatically creates threads.
data[].channelIds[]Array[Str]List of IDs of the actively monitored channels.
data[].channelsDetail[]Array[Obj]Mapping of all available channels on the server:
data[].channelsDetail[].idStringChannel Snowflake ID.
data[].channelsDetail[].nameStringReadable channel name.
data[].lastConnectedAtStringTimestamp of the last successful connection (ISO 8601).
data[].lastDisconnectedAtString/NullTimestamp of the last disconnection.
data[].lastConnectionErrorCodeString/NullError code of the last connection attempt.
data[].lastConnectionErrorMessageString/NullError message of the last connection attempt.
data[].createdAtStringRecord creation date.
data[].updatedAtStringDate of the last data or status update.
data[].deletedAtString/NullLogical deletion date (Soft Delete).

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