Skip to Content
Comments

Add Comment

POST
/v0/projects/{idOrSlug}/comments

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string

Request Body

application/json
  1. body
targetType*string
Value in"error_issue""session_replay"
targetId*string
Length1 <= length
content*string
replyToId?string|null|null
anchorAt?string|null|null

Response Body

Comment

application/json
  1. response
id*string
targetType*string
Value in"error_issue""session_replay"
targetId*string
authorId*string
authorName*string|null
authorImage*string|null
content*string
source*string
Value in"app""mcp"
replyTo*|null
anchorAt*string|null
editedAt*string|null
pinnedAt*string|null
pinnedByUserId*string|null
createdAt*string
updatedAt*string
Example Request
curl -X POST 'https://api.faststats.dev/v0/projects/string/comments' \
  -H 'Content-Type: application/json' \
  -d '{
  "targetType": "error_issue",
  "targetId": "string",
  "content": "string"
}'
Example Response
{
  "id": "string",
  "targetType": "error_issue",
  "targetId": "string",
  "authorId": "string",
  "authorName": "string",
  "authorImage": "string",
  "content": "string",
  "source": "app",
  "replyTo": {
    "id": "string",
    "authorId": "string",
    "authorName": "string",
    "preview": "string"
  },
  "anchorAt": "string",
  "editedAt": "string",
  "pinnedAt": "string",
  "pinnedByUserId": "string",
  "createdAt": "string",
  "updatedAt": "string"
}