Skip to main content
POST
/
mockup-comments
Create mockup comment
curl --request POST \
  --url https://api.surefeedback.com/api/v1/mockup-comments \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "mockup_id": "<string>",
  "content": "<string>",
  "x_coord": 123,
  "y_coord": 123,
  "page_number": 123,
  "mentions": [
    {}
  ],
  "priority": "<string>"
}
'
{
  "success": true,
  "message": "Comment created successfully",
  "data": {
    "id": "220e8400-e29b-41d4-a716-44665544000c",
    "mockup_id": "110e8400-e29b-41d4-a716-44665544000b",
    "content": "The button color should be darker.",
    "status": "OPEN",
    "priority": "MEDIUM",
    "x_coord": 45.2,
    "y_coord": 30.1,
    "page_number": 1
  }
}
Creates a new comment on a mockup.

Request body

mockup_id
string
required
UUID of the mockup.
content
string
required
Comment text content.
x_coord
number
Horizontal pin position as a percentage.
y_coord
number
Vertical pin position as a percentage.
page_number
integer
PDF page number for document mockups. Minimum: 1.
mentions
array
Array of mentioned user IDs.
priority
string
Optional priority. Default: MEDIUM.
{
  "success": true,
  "message": "Comment created successfully",
  "data": {
    "id": "220e8400-e29b-41d4-a716-44665544000c",
    "mockup_id": "110e8400-e29b-41d4-a716-44665544000b",
    "content": "The button color should be darker.",
    "status": "OPEN",
    "priority": "MEDIUM",
    "x_coord": 45.2,
    "y_coord": 30.1,
    "page_number": 1
  }
}