SandBase modelsapi generation api

sandbase/discord

Access the Discord API through OAuth. Read user info, guilds, and channels — powered by Nango Connector Gateway.

Input
Discord API path, e.g. /users/@me
Allowed values: GET, POST, PUT, PATCH, DELETE.
URL query parameters as key-value pairs.
Additional request headers.
Request body (POST/PUT/PATCH).
05
Retry count on 5xx/timeout. Range: 0 to 5.
Idle

Example output — click Run to generate your own

API README

Discord Connector

Access the Discord API through OAuth. Read user info, guilds, and channels.

Pricing

OperationPrice
Successful API call (2xx)$0.001
Failed call (4xx/5xx)Free

Quick Test (curl)

# Get current user
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{"model": "discord", "endpoint": "/users/@me", "method": "GET"}'

# List user guilds
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{"model": "discord", "endpoint": "/users/@me/guilds", "method": "GET"}'

Request Format

POST /v1/run
{
  "model": "discord",
  "endpoint": "/users/@me",
  "method": "GET",
  "params": {},
  "headers": {},
  "body": {},
  "retries": 0
}

Common Endpoints

MethodEndpointDescription
GET/users/@meCurrent user info
GET/users/@me/guildsList user's guilds
GET/guilds/{guild.id}/channelsList guild channels

📖 Full API reference: Discord API Docs

Technical Specs

SpecValue
AuthOAuth 2.0 (user-level)
ProxyNango (auto token refresh)
ExecutionSync
Rate limitInherits Discord's API limits

Related Models