API REFERENCE
Get Comments
On this page
/api/commentsRetrieve comments associated with an artist or a specific post, with support for pagination. This endpoint returns raw comment data including the comment text, associated post, and commenter's social profile reference.
Authentication
See the authentication guide for API key and account access requirements.
Request
curl --request GET \
--url 'https://api.recoupable.dev/api/comments?artist_account_id=YOUR_ARTIST_ACCOUNT_ID' \
--header 'x-api-key: YOUR_API_KEY'Replace the YOUR_ placeholders with your values. Required query parameters are included; optional parameters are listed below.
Parameters
Query parameters
artist_account_idstringrequiredThe unique identifier of the artist account to fetch comments for
post_idstringFilter comments by specific post
pageintegerPage number for pagination (default: 1)
Default: 1
limitintegerNumber of comments per page (default: 10)
Default: 10
Responses
200Comments retrieved successfully+
application/json
statusstring · enumrequiredStatus of the request
Values: "success"
commentsarray<Comment>requiredList of comments for the specified artist or post
Item properties for comments
idstringUUID of the comment
format: uuid
post_idstringUUID of the associated post
format: uuid
social_idstringUUID of the social profile who made the comment
format: uuid
commentstringComment text content
commented_atstringTimestamp with timezone of when the comment was made
format: date-time
paginationobjectrequiredPagination metadata for the response
Properties for pagination
total_countintegerTotal number of comments available
pageintegerCurrent page number
limitintegerNumber of comments per page
total_pagesintegerTotal number of pages available
400Bad request - missing required parameters+
application/json
statusstring · enumrequiredStatus of the request
Values: "error"
errorstringrequiredError message describing what went wrong
Full specification
Download the OpenAPI file for complete schemas, constraints, and examples.
Download social.jsonView operation source
{
"description": "Retrieve comments associated with an artist or a specific post, with support for pagination. This endpoint returns raw comment data including the comment text, associated post, and commenter's social profile reference.",
"parameters": [
{
"name": "artist_account_id",
"in": "query",
"description": "The unique identifier of the artist account to fetch comments for",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "post_id",
"in": "query",
"description": "Filter comments by specific post",
"required": false,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "page",
"in": "query",
"description": "Page number for pagination (default: 1)",
"required": false,
"schema": {
"type": "integer",
"default": 1
}
},
{
"name": "limit",
"in": "query",
"description": "Number of comments per page (default: 10)",
"required": false,
"schema": {
"type": "integer",
"default": 10
}
}
],
"responses": {
"200": {
"description": "Comments retrieved successfully",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommentsResponse"
}
}
}
},
"400": {
"description": "Bad request - missing required parameters",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommentsErrorResponse"
}
}
}
}
}
}