Overview
GET/discussion/topics/{id}discussion

Get one live topic

Fetch a record from topics by id.

Auth: bearerAuth — calls run as the authenticated user.

Parameters
  • idpathstring
Responses
200

The topic

  • idstring
  • communityIdstring

    The community instance this topic belongs to.

  • customerIdoptionalstring

    Author (server-stamped principal). Omitted on the public surface.

  • titlestring
  • categoryIdoptionalstring?
  • isPinnedboolean
  • isLockedboolean
  • isPublicboolean
  • replyCountinteger
  • answeredPostIdoptionalstring?
  • lastActivityAtstring
  • createdAtstring
  • updatedAtstring
  • excerptoptionalstring?

    LIST routes only: the opening post’s leading prose, flattened from markdown server-side (≤240 chars; null when its body doc was soft-deleted). Absent on single-topic reads and create/update responses.

  • authorNameoptionalstring?

    Authed COMMUNITY list route only: the author’s display name. Never on the public surface or the flat /discussion/topics list.

  • authorSlugoptionalstring?

    Authed COMMUNITY list route only: the author’s public handle. Never on the public surface or the flat /discussion/topics list.

  • authorAvatarUrloptionalstring?

    Authed COMMUNITY list route only: the author’s avatar URL. Never on the public surface or the flat /discussion/topics list.

Example
{
  "id": "string",
  "communityId": "string",
  "customerId": "string",
  "title": "string",
  "categoryId": "string",
  "isPinned": true,
  "isLocked": true,
  "isPublic": true,
  "replyCount": 0,
  "answeredPostId": "string",
  "lastActivityAt": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "excerpt": "string",
  "authorName": "string",
  "authorSlug": "string",
  "authorAvatarUrl": "string"
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
404

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
Code examples
cURL
curl -X GET "https://api.agenticdeveloperhub.com/discussion/topics/{id}" \
  -H "Authorization: Bearer YOUR_TOKEN"
JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/discussion/topics/{id}", {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN"
  },
});
const data = await res.json();