dataz.md

Discord API reference

List posts in a forum

Crawlable reference for GET /forums/{forum_id}/posts through a dataz.md tenant gateway.

Purpose

GET/forums/{forum_id}/posts

List posts (threads) in a forum channel.

By default, only returns active (non-archived) posts. Set include_archived=true to also fetch archived posts.

  • forum_id: Discord forum channel ID
  • include_archived: Whether to include archived posts (default: false)
  • limit: Maximum archived posts to fetch (default: 50, max: 100)
Category: Forums Auth: Authorization bearer or X-API-Key Scope: read-only

Authentication

Send a tenant API key as Authorization: Bearer <key> or X-API-Key: <key>. Keep keys server-side and use the account slug for the connected Discord account.

Read the gateway authentication tutorial.

Parameters

NameInRequiredType / constraints
forum_id path required integer
include_archived query optional boolean · default false
limit query optional integer · default 50 · range 1–100

Request example

Replace the tenant, account, and resource placeholders before running this read-only request.

curl --fail-with-body \
  -H "Authorization: Bearer ${DATAZ_API_KEY}" \
  "https://dataz.md/gateway/v1/{tenant_slug}/accounts/{account_slug}/forums/{forum_id}/posts?limit=100"

Response schema

Documented responses
200Response model: List[ForumPost]List[ForumPost]

Response example

Representative JSON shape. The live response can include additional documented fields.

[
  {
    "id": "123456789012345678",
    "name": "Example post",
    "forum_id": "123456789012345678",
    "message_count": 1,
    "archived": false,
    "locked": false,
    "applied_tags": []
  }
]

Errors

Common responses
401Missing or invalid tenant API key.authentication
403The tenant, account, or connected provider cannot access the requested resource.authorization
404The route or requested provider resource was not found.not found
422A path or query parameter is invalid.validation
429Rate limited; wait for the Retry-After interval before retrying.rate limit

Limits and pagination

  • Use limit to bound each response; it defaults to 50 and accepts 1–100.
  • Set include_archived=true only when archived forum posts are required.
  • Provider or demo limits can return HTTP 429. Wait for the Retry-After interval before retrying.

Related tutorials

Read-only notes

This reference page documents a public GET endpoint. Setup/token, AI, dev, internal, and mutating routes are excluded from static reference generation.