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
Production endpoint
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
POST
https://api.sandbase.ai/v1/runModel ID
sandbase/discord01
Input Schema
6 parameters · 1 required · 5 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
endpoint | string | Required | Discord API path, e.g. /users/@me |
body | object | Optional | Request body (POST/PUT/PATCH). |
method | string | Optional | Options: GET, POST, PUT, PATCH, DELETE GETPOSTPUTPATCHDELETE |
params | object | Optional | URL query parameters as key-value pairs. |
headers | object | Optional | Additional request headers. |
retries | integer | Optional | Retry count on 5xx/timeout. · Min: 0 · Max: 5 |
02
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
03
Code Examples
Ready-to-run snippets
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "sandbase/discord",
"prompt": "a beautiful sunset over mountains"
}'API README
Discord Connector
Access the Discord API through OAuth. Read user info, guilds, and channels.
Pricing
| Operation | Price |
|---|---|
| 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
| Method | Endpoint | Description |
|---|---|---|
| GET | /users/@me | Current user info |
| GET | /users/@me/guilds | List user's guilds |
| GET | /guilds/{guild.id}/channels | List guild channels |
📖 Full API reference: Discord API Docs
Technical Specs
| Spec | Value |
|---|---|
| Auth | OAuth 2.0 (user-level) |
| Proxy | Nango (auto token refresh) |
| Execution | Sync |
| Rate limit | Inherits Discord's API limits |

