---
title: Discord API Integration on Truto
slug: discord
category: IM
canonical: "https://truto.one/integrations/detail/discord/"
---

# Discord API Integration on Truto



**Category:** IM  
**Status:** Built on request

## Unified APIs

### Unified User Directory API

- **Me** — 
- **Roles** — The Role object represents a role of a User.
- **Users** — The User object represents a User.
- **Workspaces** — Workspaces represent concepts like teams, workspaces, projects in apps that support them

## MCP-ready AI tools

Truto exposes 7 tools for Discord that AI agents can call directly.

- **list_all_discord_me** — Get information about the current user in Discord. Returns the user object with fields such as id, username, and optionally email if the email scope is granted.
- **list_all_discord_guilds** — Get a list of partial guild objects the current user is a member of in Discord. Returns fields including id, name, icon, banner, owner status, permissions, features, approximate_member_count, and approximate_presence_count.
- **get_single_discord_guild_by_id** — Get information about a specific guild in Discord. Requires id. Returns guild object including approximate_member_count and approximate_presence_count if with_counts is true.
- **list_all_discord_guild_members** — List guild members for the guild with id in Discord. Returns an array of guild member objects representing members of the specified guild.
- **get_single_discord_guild_member_by_id** — Get guild member information for the specified guild_id and id in Discord. Returns a guild member object with user details and membership status.
- **list_all_discord_guild_roles** — Get a list of role objects for the guild in Discord. Requires guild id. Returns roles with details including permissions and role attributes.
- **get_single_discord_guild_role_by_id** — Get information about a specific role in Discord. Requires guild_id and id. Returns a role object with details about the role's permissions and attributes.

## How it works

1. **Link your customer's Discord account.** Use Truto's frontend SDK; we handle every OAuth and API key flow so you don't need to create the OAuth app.
2. **Authentication is automatic.** Truto refreshes tokens, stores credentials securely, and injects them into every API request.
3. **Call Truto's API to reach Discord.** The Proxy API is a 1-to-1 mapping of the Discord API.
4. **Get a unified response format.** Every response uses a single shape, with cursor-based pagination and data in the `result` field.
