SnozeDevelopers
API referenceSurfaces

Comment on a block

Creates a comment anchored to one block of the surface, optionally at a client-supplied id so a text selection can be marked before the row exists. Requires `blocks:comment` on the surface. Fails with a not-found error when the surface or block does not exist and with a validation error when the body is empty or longer than 2,000 characters.

POST
/v1/workspaces/{workspaceId}/surfaces/{surfaceId}/blocks/{blockId}/comments

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string
surfaceId*string
blockId*string

Request Body

application/json
  1. body
id?|null
body*string
content?array<>|null
clientMutationId?string|null

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.snoze.dev/v1/workspaces/string/surfaces/string/blocks/string/comments' \  -H 'Content-Type: application/json' \  -d '{  "body": "string"}'
Example Response
{  "data": {    "id": "string",    "workspaceId": "string",    "surfaceId": "string",    "blockId": "string",    "authorUserId": "string",    "authorDisplayName": "string",    "authorAvatarUrl": "string",    "body": "string",    "content": [],    "resolvedAt": "string",    "createdAt": "string"  }}