Retrieve Comments for Post by ID

This operation returns a paginated list of comments for a post by ID.

Authorization and Permissions

  • An OpenAm token is required to retrieve comments.
  • The user must have access to view the post to see its comments.

Pagination

This endpoint uses offset-based pagination with index and count query parameters.

Response Headers

The response includes pagination metadata in headers:

  • pagination-total-results: Total number of comments for this post
  • pagination-count: Page size used
  • pagination-index: Current page index
  • pagination-page-results: Number of results in current page
Path Params
string
required

The unique identifier of the post.

Query Params
integer
≥ 0

The starting index for pagination (offset-based). Use this with count parameter.

integer
1 to 100
Defaults to 20

The number of comments to retrieve per page. Maximum is 100, default is 20.

string
enum

Sort order for comments. Prefix with '-' for descending order.

Allowed:
Headers
string
required

An OpenAm token for the user.

string

A UUID value to track the request, used for debugging and tracing.

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Choose an example:
application/json
application/problem+json