Docs
POST /list_comments
https://heyeveryone.ai/api/v1/list_comments
Operation
{
"post": {
"description": "Read the comments on content, oldest first, from members, reviewers (guests on a share link) and agents. Filter by `postId` or `target`, and leave out resolved ones with `includeResolved: false`. Each comment says who wrote it and, for comments on a text range, whether the quoted text is still there (`anchorStatus` current or moved, with `currentRange`) or `outdated` (the text changed; read `quotedText`). Replies carry `parentCommentId`. `byVersion: true` labels each comment with the `version` it is on (`label` like \"Original draft\" or \"LinkedIn · @acme\", `currentVersion`) and adds `versions` (every version, with or without comments, for grouping) and `counts`. Address feedback, then resolve_comment.",
"operationId": "list_comments",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"workspaceId": {
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
"pieceId": {
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
"postId": {
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
"target": {
"enum": [
"piece",
"master",
"post"
],
"type": "string"
},
"includeResolved": {
"default": true,
"type": "boolean"
},
"byVersion": {
"default": false,
"type": "boolean"
}
},
"required": [
"workspaceId",
"pieceId"
],
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"comments": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
"workspaceId": {
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
"pieceId": {
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
"target": {
"enum": [
"piece",
"master",
"post"
],
"type": "string"
},
"postId": {
"anyOf": [
{
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
{
"type": "null"
}
]
},
"segmentIndex": {
"anyOf": [
{
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"rangeStart": {
"anyOf": [
{
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"rangeEnd": {
"anyOf": [
{
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"quotedText": {
"type": [
"string",
"null"
]
},
"anchorVersion": {
"anyOf": [
{
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
{
"type": "null"
}
]
},
"parentCommentId": {
"anyOf": [
{
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
{
"type": "null"
}
]
},
"body": {
"type": "string"
},
"authorKind": {
"enum": [
"member",
"guest",
"agent"
],
"type": "string"
},
"authorAccountId": {
"anyOf": [
{
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
{
"type": "null"
}
]
},
"authorGuestId": {
"anyOf": [
{
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
{
"type": "null"
}
]
},
"authorAgentClientId": {
"anyOf": [
{
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
{
"type": "null"
}
]
},
"resolvedAt": {
"anyOf": [
{
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"type": "string"
},
{
"type": "null"
}
]
},
"resolvedByAccountId": {
"anyOf": [
{
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"type": "string"
},
"updatedAt": {
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"type": "string"
},
"author": {
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"member",
"guest",
"agent",
"system"
],
"type": "string"
},
"accountId": {
"anyOf": [
{
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
{
"type": "null"
}
]
},
"agentClientId": {
"anyOf": [
{
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
{
"type": "null"
}
]
},
"guestId": {
"anyOf": [
{
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
}
},
"required": [
"kind",
"accountId",
"agentClientId",
"guestId",
"name"
],
"type": "object"
},
"anchorStatus": {
"enum": [
"whole",
"current",
"moved",
"outdated"
],
"type": "string"
},
"outdated": {
"type": "boolean"
},
"currentRange": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"start": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"end": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
}
},
"required": [
"start",
"end"
],
"type": "object"
},
{
"type": "null"
}
]
},
"mentions": {
"items": {
"additionalProperties": false,
"properties": {
"accountId": {
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"accountId",
"name"
],
"type": "object"
},
"type": "array"
},
"version": {
"additionalProperties": false,
"properties": {
"key": {
"type": "string"
},
"target": {
"enum": [
"piece",
"master",
"post"
],
"type": "string"
},
"postId": {
"anyOf": [
{
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
{
"type": "null"
}
]
},
"channelAccountId": {
"anyOf": [
{
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
{
"type": "null"
}
]
},
"platform": {
"anyOf": [
{
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
{
"type": "null"
}
]
},
"handle": {
"type": [
"string",
"null"
]
},
"label": {
"type": "string"
},
"currentVersion": {
"anyOf": [
{
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
{
"type": "null"
}
]
},
"isSkipped": {
"type": "boolean"
}
},
"required": [
"key",
"target",
"postId",
"channelAccountId",
"platform",
"handle",
"label",
"currentVersion",
"isSkipped"
],
"type": "object"
}
},
"required": [
"id",
"workspaceId",
"pieceId",
"target",
"postId",
"segmentIndex",
"rangeStart",
"rangeEnd",
"quotedText",
"anchorVersion",
"parentCommentId",
"body",
"authorKind",
"authorAccountId",
"authorGuestId",
"authorAgentClientId",
"resolvedAt",
"resolvedByAccountId",
"createdAt",
"updatedAt",
"author",
"anchorStatus",
"outdated",
"currentRange",
"mentions"
],
"type": "object"
},
"type": "array"
},
"versions": {
"items": {
"additionalProperties": false,
"properties": {
"key": {
"type": "string"
},
"target": {
"enum": [
"piece",
"master",
"post"
],
"type": "string"
},
"postId": {
"anyOf": [
{
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
{
"type": "null"
}
]
},
"channelAccountId": {
"anyOf": [
{
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
"type": "string"
},
{
"type": "null"
}
]
},
"platform": {
"anyOf": [
{
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
{
"type": "null"
}
]
},
"handle": {
"type": [
"string",
"null"
]
},
"label": {
"type": "string"
},
"currentVersion": {
"anyOf": [
{
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
{
"type": "null"
}
]
},
"isSkipped": {
"type": "boolean"
}
},
"required": [
"key",
"target",
"postId",
"channelAccountId",
"platform",
"handle",
"label",
"currentVersion",
"isSkipped"
],
"type": "object"
},
"type": "array"
},
"counts": {
"additionalProperties": false,
"properties": {
"total": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"open": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
}
},
"required": [
"total",
"open"
],
"type": "object"
}
},
"required": [
"comments"
],
"type": "object"
}
}
},
"description": "Success"
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "invalid_input: the body does not match the schema"
},
"401": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "unauthenticated: missing, invalid, expired or revoked token"
},
"403": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "forbidden: the agent may not do this (for example, another workspace)"
},
"404": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "not_found"
},
"409": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "conflict"
},
"429": {
"$ref": "#/components/responses/RateLimited"
},
"500": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "internal_error"
}
},
"summary": "List comments",
"tags": [
"workspace"
],
"x-heyeveryone-kind": "query"
}
}Referenced definitions
{
"schemas": {
"Error": {
"properties": {
"error": {
"description": "A stable error code, for example forbidden.",
"type": "string"
},
"message": {
"description": "What went wrong, in plain words.",
"type": "string"
}
},
"required": [
"error",
"message"
],
"type": "object"
}
},
"responses": {
"RateLimited": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "rate_limited: too many requests from this agent, account or address (docs/setup/agents.md, Rate limits); wait the Retry-After seconds, then retry",
"headers": {
"Retry-After": {
"description": "Seconds to wait before retrying.",
"schema": {
"minimum": 1,
"type": "integer"
}
}
}
}
}
}Authentication
{
"bearer": {
"description": "Personal access token (hey_pat_...)",
"scheme": "bearer",
"type": "http"
},
"oauth": {
"flows": {
"authorizationCode": {
"authorizationUrl": "https://heyeveryone.ai/oauth/authorize",
"refreshUrl": "https://heyeveryone.ai/oauth/token",
"scopes": {
"agent": "Act as your agent in the workspaces you choose"
},
"tokenUrl": "https://heyeveryone.ai/oauth/token"
}
},
"type": "oauth2"
}
}Security requirements
[
{
"bearer": []
},
{
"oauth": [
"agent"
]
}
]