{"openapi":"3.1.0","info":{"title":"Feeblo Public API","version":"1.0.0","description":"Read and manage a workspace's posts, comments, votes, tags, changelog entries, companies, and end users, and read its audit log. Every request is authenticated with an API key presented in the x-api-key header; the response is always JSON and errors carry a machine-readable code in `_tag`."},"paths":{"/api/v1/audit-log":{"get":{"tags":["Audit log"],"operationId":"Audit log.listAuditLogEntries","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"kind","in":"query","schema":{"type":"string"},"required":false},{"name":"action","in":"query","schema":{"type":"string"},"required":false},{"name":"outcome","in":"query","schema":{"type":"string"},"required":false},{"name":"actorType","in":"query","schema":{"type":"string"},"required":false},{"name":"since","in":"query","schema":{"type":"string"},"required":false},{"name":"until","in":"query","schema":{"type":"string"},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"action":{"type":"string"},"actionLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"outcome":{"type":"string","enum":["allowed","denied"]},"denialReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"actorType":{"type":"string","enum":["user","api_key","oauth_client","system"]},"actorId":{"anyOf":[{"type":"string"},{"type":"null"}]},"actorLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"type":"string","enum":["dashboard","public_api","system"]},"resourceType":{"type":"string"},"resourceId":{"anyOf":[{"type":"string"},{"type":"null"}]},"changes":{"anyOf":[{"type":"object","properties":{"fields":{"type":"array","items":{"type":"string"}},"before":{"type":"object"},"after":{"type":"object"}},"required":["fields","before","after"],"additionalProperties":false},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object"},{"type":"null"}]},"occurredAt":{"type":"string"}},"required":["id","action","actionLabel","outcome","denialReason","actorType","actorId","actorLabel","source","resourceType","resourceId","changes","metadata","occurredAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns the calling workspace's audit log, newest first, as a cursor-paginated page. An entry records what a member, an API key, an OAuth client, or the product itself did to the workspace, and every request refused at the credential boundary. Filter by the half of the log (`kind`), the action, the outcome, the kind of actor, or a time window. Origin addresses, user agents, and request ids are never returned.","summary":"List the workspace's audit log entries"}},"/api/v1/boards":{"get":{"tags":["Boards"],"operationId":"Boards.listBoards","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"url":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","slug","visibility","url","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns the boards of the calling workspace, newest first, as a cursor-paginated page. Private boards are included: the key belongs to the workspace, so board visibility does not restrict it. Use this to resolve the board a post is filed under before creating one.","summary":"List the workspace's boards"}},"/api/v1/boards/{boardId}":{"get":{"tags":["Boards"],"operationId":"Boards.getBoard","parameters":[{"name":"boardId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"url":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","slug","visibility","url","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns one board. Boards of other workspaces are reported as not found rather than forbidden, so an id cannot be used to probe another workspace.","summary":"Get a board"}},"/api/v1/changelog":{"get":{"tags":["Changelog"],"operationId":"Changelog.listChangelog","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"status","in":"query","schema":{"type":"string"},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"},"excerpt":{"type":"string"},"coverImage":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["draft","scheduled","published"]},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"iconType":{"type":"string","enum":["color","emoji","icon"]},"icon":{"type":"string"}},"required":["id","name","iconType","icon"],"additionalProperties":false}},"linkedPosts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"}},"required":["id","title","slug"],"additionalProperties":false}}},"required":["id","title","slug","excerpt","coverImage","status","scheduledAt","publishedAt","createdAt","updatedAt","categories","linkedPosts"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns the changelog entries of the calling workspace, newest first, as a cursor-paginated page. Drafts and scheduled entries are included; pass status=published to list only what readers can already see.","summary":"List the workspace's changelog entries"},"post":{"tags":["Changelog"],"operationId":"Changelog.createChangelog","parameters":[],"security":[{"apiKey":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"},"excerpt":{"type":"string"},"coverImage":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["draft","scheduled","published"]},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"iconType":{"type":"string","enum":["color","emoji","icon"]},"icon":{"type":"string"}},"required":["id","name","iconType","icon"],"additionalProperties":false}},"linkedPosts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"}},"required":["id","title","slug"],"additionalProperties":false}},"content":{"type":"string"}},"required":["id","title","slug","excerpt","coverImage","status","scheduledAt","publishedAt","createdAt","updatedAt","categories","linkedPosts","content"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"409":{"description":"The write collides with something that already exists, such as a name or slug this workspace already uses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CONFLICTEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Creates a changelog entry in the calling workspace and returns it. The entry is a draft unless the request says otherwise. Publishing it — status=published — additionally requires the changelog.publish scope, because it emails everyone subscribed to the workspace changelog.","summary":"Create a changelog entry","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"content":{"type":"string"},"coverImage":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"},{"type":"null"}]},"status":{"anyOf":[{"type":"string","enum":["draft","published"]},{"type":"null"}]},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]}},"required":["title","content"],"additionalProperties":false}}},"required":true}}},"/api/v1/changelog/{changelogId}":{"get":{"tags":["Changelog"],"operationId":"Changelog.getChangelog","parameters":[{"name":"changelogId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"},"excerpt":{"type":"string"},"coverImage":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["draft","scheduled","published"]},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"iconType":{"type":"string","enum":["color","emoji","icon"]},"icon":{"type":"string"}},"required":["id","name","iconType","icon"],"additionalProperties":false}},"linkedPosts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"}},"required":["id","title","slug"],"additionalProperties":false}},"content":{"type":"string"}},"required":["id","title","slug","excerpt","coverImage","status","scheduledAt","publishedAt","createdAt","updatedAt","categories","linkedPosts","content"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns one changelog entry with its sanitized body. Entries of other workspaces are reported as not found rather than forbidden, so an id cannot be used to probe another workspace.","summary":"Get a changelog entry"},"patch":{"tags":["Changelog"],"operationId":"Changelog.updateChangelog","parameters":[{"name":"changelogId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"},"excerpt":{"type":"string"},"coverImage":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["draft","scheduled","published"]},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"iconType":{"type":"string","enum":["color","emoji","icon"]},"icon":{"type":"string"}},"required":["id","name","iconType","icon"],"additionalProperties":false}},"linkedPosts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"}},"required":["id","title","slug"],"additionalProperties":false}},"content":{"type":"string"}},"required":["id","title","slug","excerpt","coverImage","status","scheduledAt","publishedAt","createdAt","updatedAt","categories","linkedPosts","content"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"409":{"description":"The write collides with something that already exists, such as a name or slug this workspace already uses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CONFLICTEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Replaces the entry's title, slug, body, cover image, status, and timestamps, and returns the entry afterwards. The fields sent are the entry's new state. Moving an entry into published requires the changelog.publish scope, because it emails subscribers; editing an already-published entry does not.","summary":"Replace a changelog entry's writable fields","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"content":{"type":"string"},"coverImage":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"},{"type":"null"}]},"status":{"type":"string","enum":["draft","published"]},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]}},"required":["title","content","status"],"additionalProperties":false}}},"required":true}},"delete":{"tags":["Changelog"],"operationId":"Changelog.deleteChangelog","parameters":[{"name":"changelogId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Deletes a changelog entry and its links to the posts it announced. The entry is gone immediately and cannot be restored; the posts themselves are untouched.","summary":"Delete a changelog entry"}},"/api/v1/posts/{postId}/comments":{"get":{"tags":["Comments"],"operationId":"Comments.listPostComments","parameters":[{"name":"postId","in":"path","schema":{"type":"string"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"content":{"type":"string"},"visibility":{"type":"string","enum":["PUBLIC","INTERNAL"]},"parentCommentId":{"anyOf":[{"type":"string"},{"type":"null"}]},"pinnedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","postId","content","visibility","parentCommentId","pinnedAt","author","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns the comments on one post of the calling workspace, newest first, as a cursor-paginated page. Internal comments are included, because the key belongs to the workspace; a pinned comment carries a pinnedAt and appears in its created position rather than first. Comments that a merge moved onto this post are listed here; a post that was merged into another reports no comments of its own, because its comments now live on the survivor.","summary":"List a post's comments"},"post":{"tags":["Comments"],"operationId":"Comments.createComment","parameters":[{"name":"postId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"content":{"type":"string"},"visibility":{"type":"string","enum":["PUBLIC","INTERNAL"]},"parentCommentId":{"anyOf":[{"type":"string"},{"type":"null"}]},"pinnedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","postId","content","visibility","parentCommentId","pinnedAt","author","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"409":{"description":"The write collides with something that already exists, such as a name or slug this workspace already uses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CONFLICTEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Creates a comment on a post and returns it. The comment is attributed to the customer the author names — an API key has no user of its own — resolved by userId, contactId, externalId, or email, in that order. A post whose conversation is locked or that was merged into another post, or a parentCommentId that names a comment on another post or workspace, is refused.","summary":"Comment on a post","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"string","minLength":1,"maxLength":10000},"visibility":{"anyOf":[{"type":"string","enum":["PUBLIC","INTERNAL"]},{"type":"null"}]},"parentCommentId":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"author":{"type":"object","properties":{"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactId":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}},"required":["content","author"],"additionalProperties":false}}},"required":true}}},"/api/v1/comments/{commentId}":{"get":{"tags":["Comments"],"operationId":"Comments.getComment","parameters":[{"name":"commentId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"content":{"type":"string"},"visibility":{"type":"string","enum":["PUBLIC","INTERNAL"]},"parentCommentId":{"anyOf":[{"type":"string"},{"type":"null"}]},"pinnedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","postId","content","visibility","parentCommentId","pinnedAt","author","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns one comment. Comments of other workspaces are reported as not found rather than forbidden, so an id cannot be used to probe another workspace.","summary":"Get a comment"},"patch":{"tags":["Comments"],"operationId":"Comments.updateComment","parameters":[{"name":"commentId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"content":{"type":"string"},"visibility":{"type":"string","enum":["PUBLIC","INTERNAL"]},"parentCommentId":{"anyOf":[{"type":"string"},{"type":"null"}]},"pinnedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","postId","content","visibility","parentCommentId","pinnedAt","author","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Replaces the comment's body, and its visibility when the request names one, and returns the comment afterwards. Omitting visibility leaves it as it is. The body is sanitized exactly as the dashboard sanitizes it, and the post's timeline records the edit.","summary":"Replace a comment's body and visibility","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"string","minLength":1,"maxLength":10000},"visibility":{"anyOf":[{"type":"string","enum":["PUBLIC","INTERNAL"]},{"type":"null"}]}},"required":["content"],"additionalProperties":false}}},"required":true}},"delete":{"tags":["Comments"],"operationId":"Comments.deleteComment","parameters":[{"name":"commentId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Deletes a comment and every reply beneath it. The comment is gone immediately and cannot be restored.","summary":"Delete a comment"}},"/api/v1/comments/{commentId}/pin":{"post":{"tags":["Comments"],"operationId":"Comments.pinComment","parameters":[{"name":"commentId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"content":{"type":"string"},"visibility":{"type":"string","enum":["PUBLIC","INTERNAL"]},"parentCommentId":{"anyOf":[{"type":"string"},{"type":"null"}]},"pinnedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","postId","content","visibility","parentCommentId","pinnedAt","author","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Pins a comment and returns it with its pinnedAt. A post has at most one pinned comment: pinning one unpins whatever was pinned before it. The post's timeline records the change.","summary":"Pin a comment to the top of its post"}},"/api/v1/comments/{commentId}/unpin":{"post":{"tags":["Comments"],"operationId":"Comments.unpinComment","parameters":[{"name":"commentId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"content":{"type":"string"},"visibility":{"type":"string","enum":["PUBLIC","INTERNAL"]},"parentCommentId":{"anyOf":[{"type":"string"},{"type":"null"}]},"pinnedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","postId","content","visibility","parentCommentId","pinnedAt","author","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Unpins a comment and returns it with a null pinnedAt. Unpinning a comment that is not pinned changes nothing and is answered the same way, so a retried request does not have to distinguish 'already unpinned' from 'gone'.","summary":"Unpin a comment"}},"/api/v1/companies":{"get":{"tags":["Companies"],"operationId":"Companies.listCompanies","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalCreatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"type":"string","enum":["DASHBOARD","WIDGET","API","IMPORT"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","externalId","avatar","externalCreatedAt","source","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns the companies of the calling workspace, newest first, as a cursor-paginated page. A company is an account record; the contacts who belong to it are not returned, and neither are the workspace's custom attribute values.","summary":"List the workspace's companies"},"post":{"tags":["Companies"],"operationId":"Companies.createCompany","parameters":[],"security":[{"apiKey":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalCreatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"type":"string","enum":["DASHBOARD","WIDGET","API","IMPORT"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","externalId","avatar","externalCreatedAt","source","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"409":{"description":"The write collides with something that already exists, such as a name or slug this workspace already uses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CONFLICTEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Creates a company in the calling workspace and returns it. The name is trimmed, the id is minted by the server, and the company is recorded with the API as its source. A name, or an externalId, already used in the workspace is reported as a conflict rather than creating a second record for the same account.","summary":"Create a company","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The company's name"},"externalId":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caller's own identifier for the company"},{"type":"null"}]},"avatar":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"externalCreatedAt":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}}},"required":true}}},"/api/v1/companies/{companyId}":{"get":{"tags":["Companies"],"operationId":"Companies.getCompany","parameters":[{"name":"companyId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalCreatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"type":"string","enum":["DASHBOARD","WIDGET","API","IMPORT"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","externalId","avatar","externalCreatedAt","source","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns one company. Companies of other workspaces are reported as not found rather than forbidden, so an id cannot be used to probe another workspace.","summary":"Get a company"},"patch":{"tags":["Companies"],"operationId":"Companies.updateCompany","parameters":[{"name":"companyId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalCreatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"type":"string","enum":["DASHBOARD","WIDGET","API","IMPORT"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","externalId","avatar","externalCreatedAt","source","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"409":{"description":"The write collides with something that already exists, such as a name or slug this workspace already uses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CONFLICTEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Updates the fields the request names and returns the company afterwards. An omitted field is left as it is and an explicit null clears a nullable one. A body that names no field is rejected as an invalid request, and a name or externalId another company in the workspace already holds is reported as a conflict.","summary":"Update a company","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"avatar":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"externalCreatedAt":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]}},"additionalProperties":false}}},"required":true}},"delete":{"tags":["Companies"],"operationId":"Companies.deleteCompany","parameters":[{"name":"companyId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Deletes a company and detaches it from the contacts that belonged to it. The contacts themselves are untouched and keep their own records; the company cannot be restored.","summary":"Delete a company"}},"/api/v1/end-users":{"get":{"tags":["End users"],"operationId":"End users.listEndUsers","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"externalId","in":"query","schema":{"type":"string"},"required":false},{"name":"email","in":"query","schema":{"type":"string"},"required":false},{"name":"companyId","in":"query","schema":{"type":"string"},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"companyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","externalId","name","avatarUrl","companyId","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns the workspace's end users — its own records of its customers — newest first, as a cursor-paginated page. `externalId`, `email`, and `companyId` narrow it. An end user carries the contact id, the caller's own external id, the display name and avatar, and the company it belongs to; the email address and the account behind the record are never returned.","summary":"List the workspace's end users"},"post":{"tags":["End users"],"operationId":"End users.upsertEndUser","parameters":[],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"companyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","externalId","name","avatarUrl","companyId","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"409":{"description":"The write collides with something that already exists, such as a name or slug this workspace already uses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CONFLICTEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Creates the end user if the externalId or email names nobody, and updates the one it names otherwise — so a sync can run twice without making a second person. At least one of `externalId` and `email` is required. An absent field is left alone and an explicit null clears a nullable one; a `companyId` that does not exist in the workspace is an invalid request, and an externalId or email that already belongs to a different end user is reported as a conflict rather than reassigned. A record created here is the customer a later post, comment, or vote on their behalf attaches to.","summary":"Create or update an end user","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"externalId":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"companyId":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]}},"additionalProperties":false}}},"required":true}}},"/api/v1/end-users/{endUserId}":{"get":{"tags":["End users"],"operationId":"End users.getEndUser","parameters":[{"name":"endUserId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"companyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","externalId","name","avatarUrl","companyId","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns one end user by the contact id the list returns. An end user of another workspace is reported as not found rather than forbidden, so an id cannot be used to probe another workspace.","summary":"Get an end user"}},"/api/v1/boards/{boardId}/posts":{"get":{"tags":["Posts"],"operationId":"Posts.listBoardPosts","parameters":[{"name":"boardId","in":"path","schema":{"type":"string"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"status","in":"query","schema":{"type":"string"},"required":false},{"name":"includeArchived","in":"query","schema":{"type":"string"},"required":false},{"name":"tagIds","in":"query","schema":{"type":"string"},"required":false},{"name":"updatedAfter","in":"query","schema":{"type":"string"},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"boardId":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"},"excerpt":{"type":"string"},"url":{"type":"string"},"status":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["PENDING","REVIEW","PLANNED","IN_PROGRESS","COMPLETED","CLOSED"]}},"required":["id","name","type"],"additionalProperties":false},"etaQuarter":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"voteCount":{"type":"number"},"commentCount":{"type":"number"},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"lockedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"mergedIntoPostId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","boardId","title","slug","excerpt","url","status","etaQuarter","tags","voteCount","commentCount","author","createdAt","updatedAt","lockedAt","archivedAt","mergedIntoPostId"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns the posts on one board of the calling workspace, newest first, as a cursor-paginated page. Private boards are included: the key belongs to the workspace, so board visibility does not restrict it. Archived posts appear only with includeArchived=true, and posts merged into another post are never listed. `tagIds` is a comma-separated list and keeps posts carrying at least one of the tags; `updatedAfter` keeps posts changed after the given instant, which is how a sync catches up without re-reading everything.","summary":"List a board's posts"}},"/api/v1/posts":{"get":{"tags":["Posts"],"operationId":"Posts.listPosts","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"status","in":"query","schema":{"type":"string"},"required":false},{"name":"includeArchived","in":"query","schema":{"type":"string"},"required":false},{"name":"boardId","in":"query","schema":{"type":"string"},"required":false},{"name":"tagIds","in":"query","schema":{"type":"string"},"required":false},{"name":"updatedAfter","in":"query","schema":{"type":"string"},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"boardId":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"},"excerpt":{"type":"string"},"url":{"type":"string"},"status":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["PENDING","REVIEW","PLANNED","IN_PROGRESS","COMPLETED","CLOSED"]}},"required":["id","name","type"],"additionalProperties":false},"etaQuarter":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"voteCount":{"type":"number"},"commentCount":{"type":"number"},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"lockedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"mergedIntoPostId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","boardId","title","slug","excerpt","url","status","etaQuarter","tags","voteCount","commentCount","author","createdAt","updatedAt","lockedAt","archivedAt","mergedIntoPostId"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns the posts of the calling workspace across every board, newest first, as a cursor-paginated page. Private boards are included: the key belongs to the workspace, so board visibility does not restrict it. Archived posts appear only with includeArchived=true, and posts merged into another post are never listed. `boardId`, `tagIds`, and `updatedAfter` narrow the page, so one endpoint serves both a filtered read and a sync that only wants what changed. Use `GET /boards/{boardId}/posts` to page one board.","summary":"List the workspace's posts"},"post":{"tags":["Posts"],"operationId":"Posts.createPost","parameters":[],"security":[{"apiKey":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"boardId":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"},"excerpt":{"type":"string"},"url":{"type":"string"},"status":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["PENDING","REVIEW","PLANNED","IN_PROGRESS","COMPLETED","CLOSED"]}},"required":["id","name","type"],"additionalProperties":false},"etaQuarter":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"voteCount":{"type":"number"},"commentCount":{"type":"number"},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"lockedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"mergedIntoPostId":{"anyOf":[{"type":"string"},{"type":"null"}]},"content":{"type":"string"}},"required":["id","boardId","title","slug","excerpt","url","status","etaQuarter","tags","voteCount","commentCount","author","createdAt","updatedAt","lockedAt","archivedAt","mergedIntoPostId","content"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"409":{"description":"The write collides with something that already exists, such as a name or slug this workspace already uses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CONFLICTEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Creates a post on a board of the calling workspace and returns it. The id is assigned by the server, the title is trimmed, the slug is derived from it and deduplicated, and the body is sanitized before it is stored. A `boardId` or `statusId` that does not exist in the workspace is an invalid request. The post is recorded with `API` as its source and reaches the workspace's integrations and notifications like any other submission. `author` optionally attributes the post to a customer — an API key has no user of its own — resolved by userId, contactId, externalId, or email, in that order; absent, the post has no author. `createdAt` optionally backdates the post for an import: the list orders by it, while `updatedAt` stays the time of the write so a sync reading `updatedAfter` still sees the row.","summary":"Create a post","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"boardId":{"type":"string"},"title":{"type":"string"},"content":{"type":"string","maxLength":20000},"statusId":{"type":"string"},"etaQuarter":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"author":{"anyOf":[{"type":"object","properties":{"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactId":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["boardId","title","content","statusId"],"additionalProperties":false}}},"required":true}}},"/api/v1/posts/retrieve":{"get":{"tags":["Posts"],"operationId":"Posts.retrievePost","parameters":[{"name":"id","in":"query","schema":{"type":"string"},"required":false},{"name":"boardId","in":"query","schema":{"type":"string"},"required":false},{"name":"slug","in":"query","schema":{"type":"string"},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"boardId":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"},"excerpt":{"type":"string"},"url":{"type":"string"},"status":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["PENDING","REVIEW","PLANNED","IN_PROGRESS","COMPLETED","CLOSED"]}},"required":["id","name","type"],"additionalProperties":false},"etaQuarter":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"voteCount":{"type":"number"},"commentCount":{"type":"number"},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"lockedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"mergedIntoPostId":{"anyOf":[{"type":"string"},{"type":"null"}]},"content":{"type":"string"}},"required":["id","boardId","title","slug","excerpt","url","status","etaQuarter","tags","voteCount","commentCount","author","createdAt","updatedAt","lockedAt","archivedAt","mergedIntoPostId","content"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns one post with its sanitized body, named either by `id` or by the `boardId` and `slug` pair from its public URL. `boardId` is required when a `slug` is given; a request that names neither an id nor a slug is rejected. Every identifier present must match, so an id combined with another board, or a slug combined with the wrong board, is reported as not found rather than silently resolved. Posts of other workspaces are reported as not found rather than forbidden, so an id cannot be used to probe another workspace.","summary":"Find a post by id, or by board and slug"}},"/api/v1/posts/{postId}":{"get":{"tags":["Posts"],"operationId":"Posts.getPost","parameters":[{"name":"postId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"boardId":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"},"excerpt":{"type":"string"},"url":{"type":"string"},"status":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["PENDING","REVIEW","PLANNED","IN_PROGRESS","COMPLETED","CLOSED"]}},"required":["id","name","type"],"additionalProperties":false},"etaQuarter":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"voteCount":{"type":"number"},"commentCount":{"type":"number"},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"lockedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"mergedIntoPostId":{"anyOf":[{"type":"string"},{"type":"null"}]},"content":{"type":"string"}},"required":["id","boardId","title","slug","excerpt","url","status","etaQuarter","tags","voteCount","commentCount","author","createdAt","updatedAt","lockedAt","archivedAt","mergedIntoPostId","content"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns one post with its sanitized body. Posts of other workspaces are reported as not found rather than forbidden, so an id cannot be used to probe another workspace.","summary":"Get a post"},"patch":{"tags":["Posts"],"operationId":"Posts.updatePost","parameters":[{"name":"postId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"boardId":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"},"excerpt":{"type":"string"},"url":{"type":"string"},"status":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["PENDING","REVIEW","PLANNED","IN_PROGRESS","COMPLETED","CLOSED"]}},"required":["id","name","type"],"additionalProperties":false},"etaQuarter":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"voteCount":{"type":"number"},"commentCount":{"type":"number"},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"lockedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"mergedIntoPostId":{"anyOf":[{"type":"string"},{"type":"null"}]},"content":{"type":"string"}},"required":["id","boardId","title","slug","excerpt","url","status","etaQuarter","tags","voteCount","commentCount","author","createdAt","updatedAt","lockedAt","archivedAt","mergedIntoPostId","content"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Updates the fields the request names and returns the post afterwards. An omitted field is left as it is and an explicit null clears a nullable one, so `etaQuarter: null` removes the estimate. A body that names no field is rejected as an invalid request. Moving the post to another board or status records the change in its timeline and, for a status change, notifies its subscribers exactly as the dashboard does. `author` re-attributes the post to the customer the request names, resolved the same way a create resolves it, and retires the previous author's subscription. A post merged into another post is refused.","summary":"Update a post","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"content":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"statusId":{"anyOf":[{"type":"string"},{"type":"null"}]},"boardId":{"anyOf":[{"type":"string"},{"type":"null"}]},"etaQuarter":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"null"}]},"author":{"anyOf":[{"type":"object","properties":{"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactId":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false}}},"required":true}},"delete":{"tags":["Posts"],"operationId":"Posts.deletePost","parameters":[{"name":"postId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Deletes a post and cannot be undone. A key holding this scope deletes without the dashboard's creator and engagement restriction: it is the workspace's own credential, not a member acting on their own posts. Deleting a post that absorbed merged duplicates restores those duplicates to the board rather than orphaning them. A merged post is refused, and a post that is already gone is reported as not found.","summary":"Delete a post"}},"/api/v1/posts/{postId}/activity":{"get":{"tags":["Posts"],"operationId":"Posts.listPostActivity","parameters":[{"name":"postId","in":"path","schema":{"type":"string"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["POST_CREATED","TITLE_CHANGED","CONTENT_CHANGED","STATUS_CHANGED","BOARD_CHANGED","ETA_CHANGED","ASSIGNEE_CHANGED","POST_LOCKED","POST_UNLOCKED","POST_ARCHIVED","POST_UNARCHIVED","TAG_ADDED","TAG_REMOVED","OFFICIAL_UPDATE_PUBLISHED","COMMENT_CREATED","COMMENT_UPDATED","COMMENT_DELETED","VOTE_ADDED","VOTE_REMOVED","AUTHOR_CHANGED","COMMENT_PINNED","COMMENT_UNPINNED","POST_MERGED","POST_MERGED_INTO","POST_UNMERGED"]},"actor":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},{"type":"null"}]},"previousValue":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextValue":{"anyOf":[{"type":"string"},{"type":"null"}]},"commentId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","kind","actor","previousValue","nextValue","commentId","createdAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns one post's history, newest first, as a cursor-paginated page: creation, status and board moves, tag changes, assignment changes, merges, and comment entries. `kind` names what happened and `previousValue`/`nextValue` are the values it moved between — a status id for STATUS_CHANGED, a tag id for TAG_ADDED, a post id for POST_MERGED. Both are null on ASSIGNEE_CHANGED, whose values would be member ids and so are not part of this payload. `actor` is null when the entry was written by an API key, which has no member identity; the dashboard shows the same entry as \"Someone\". A post merged into another is readable and reports its own history, including the merge.","summary":"List a post's timeline"}},"/api/v1/posts/{postId}/tags":{"put":{"tags":["Posts"],"operationId":"Posts.setPostTags","parameters":[{"name":"postId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Replaces the post's tags with the ids given and returns the tags it carries afterwards. An empty list clears them. Ids that do not exist in the workspace are rejected as an invalid request rather than ignored, and the post's timeline records the tags that were added and removed.","summary":"Set which tags a post carries","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"tagIds":{"type":"array","items":{"type":"string"},"description":"The complete set of tag ids the post should carry"}},"required":["tagIds"],"additionalProperties":false}}},"required":true}}},"/api/v1/posts/{postId}/merge":{"post":{"tags":["Posts"],"operationId":"Posts.mergePost","parameters":[{"name":"postId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"409":{"description":"The write collides with something that already exists, such as a name or slug this workspace already uses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CONFLICTEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Archives this post and moves its comments, votes, tags, and subscriptions to the post named by `intoPostId`. Both posts' timelines record the merge, the voters and subscribers of both are notified, and the archived post stays readable — its timeline says where it went. Reversible with unmerge. A post of another workspace, an archived post, a post that has already been merged, and a post that has itself absorbed a duplicate are all refused, the last three with `CONFLICT`.","summary":"Merge a post into another post","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"intoPostId":{"type":"string"}},"required":["intoPostId"],"additionalProperties":false}}},"required":true}}},"/api/v1/posts/{postId}/unmerge":{"post":{"tags":["Posts"],"operationId":"Posts.unmergePost","parameters":[{"name":"postId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"409":{"description":"The write collides with something that already exists, such as a name or slug this workspace already uses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CONFLICTEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Restores a post that was merged into another: its comments, votes, tags, subscriptions, and changelog links return to it and it reappears on its board. The post named by the path is the archived source, so a caller that merged `A` into `B` unmerges by naming `A`. A post that is not merged is refused with `CONFLICT`.","summary":"Restore a merged post"}},"/api/v1/statuses":{"get":{"tags":["Statuses"],"operationId":"Statuses.listStatuses","parameters":[],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["PENDING","REVIEW","PLANNED","IN_PROGRESS","COMPLETED","CLOSED"]},"orderIndex":{"type":"number"},"color":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","type","orderIndex","color"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns every status of the calling workspace in display order, so a caller knows the `statusId` a post may be created or moved with and the label each one renders as. Not paginated: the catalog is small and ordered by the workspace's own `orderIndex`, not by age.","summary":"List the workspace's post statuses"}},"/api/v1/tags":{"get":{"tags":["Tags"],"operationId":"Tags.listTags","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","slug","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns the tags of the calling workspace, newest first, as a cursor-paginated page. Every tag is returned whether or not a post carries it.","summary":"List the workspace's tags"},"post":{"tags":["Tags"],"operationId":"Tags.createTag","parameters":[],"security":[{"apiKey":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","slug","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"409":{"description":"The write collides with something that already exists, such as a name or slug this workspace already uses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CONFLICTEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Creates a tag in the calling workspace and returns it. The name is trimmed; the slug is derived from it. A name, or a name that produces the same slug, already used in the workspace is reported as a conflict rather than creating a near-duplicate.","summary":"Create a tag","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The tag's display name"}},"required":["name"],"additionalProperties":false}}},"required":true}}},"/api/v1/tags/{tagId}":{"get":{"tags":["Tags"],"operationId":"Tags.getTag","parameters":[{"name":"tagId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","slug","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns one tag. Tags of other workspaces are reported as not found rather than forbidden, so an id cannot be used to probe another workspace.","summary":"Get a tag"},"patch":{"tags":["Tags"],"operationId":"Tags.updateTag","parameters":[{"name":"tagId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","slug","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"409":{"description":"The write collides with something that already exists, such as a name or slug this workspace already uses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CONFLICTEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Renames a tag and returns it. The name is the only writable field; the slug is re-derived from it, and a name already used in the workspace is reported as a conflict. Renaming does not change which posts carry the tag.","summary":"Rename a tag","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The tag's new display name"}},"required":["name"],"additionalProperties":false}}},"required":true}},"delete":{"tags":["Tags"],"operationId":"Tags.deleteTag","parameters":[{"name":"tagId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Deletes a tag and removes it from every post that carried it. The tag is gone immediately and cannot be restored; the posts themselves are untouched.","summary":"Delete a tag"}},"/api/v1/posts/{postId}/votes":{"get":{"tags":["Votes"],"operationId":"Votes.listPostVotes","parameters":[{"name":"postId","in":"path","schema":{"type":"string"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"voterId","in":"query","schema":{"type":"string"},"required":false},{"name":"voterExternalId","in":"query","schema":{"type":"string"},"required":false},{"name":"voterEmail","in":"query","schema":{"type":"string"},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"voterId":{"anyOf":[{"type":"string"},{"type":"null"}]},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","postId","voterId","author","createdAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns the votes on one post of the calling workspace, newest first, as a cursor-paginated page. Each vote carries its id and its voter's display identity — a classification (`member` or `end_user`) and a display name and avatar, never an account identifier — and `voterId`, the workspace's own end-user record for the voter, null when a member cast it. `voterId`, `voterExternalId`, and `voterEmail` narrow the page to one customer, matched together. A post that does not exist in the workspace is reported as not found rather than as an empty page, so an id cannot be used to probe another workspace.","summary":"List a post's votes"},"post":{"tags":["Votes"],"operationId":"Votes.createVote","parameters":[{"name":"postId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"voterId":{"anyOf":[{"type":"string"},{"type":"null"}]},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","postId","voterId","author","createdAt"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"409":{"description":"The write collides with something that already exists, such as a name or slug this workspace already uses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CONFLICTEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Adds a vote to a post and returns it. The vote is attributed to the customer the author names — an API key has no user of its own — resolved by userId, contactId, externalId, or email, in that order; a customer with no account is provisioned a shadow one so the vote has an account behind it. Adding a vote the same customer already has is an idempotent success that returns the existing vote. A locked post, or one merged into another post, is refused with CONFLICT.","summary":"Vote on a post on a customer's behalf","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"author":{"type":"object","properties":{"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactId":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}},"required":["author"],"additionalProperties":false}}},"required":true}}},"/api/v1/votes":{"get":{"tags":["Votes"],"operationId":"Votes.listVotes","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"postId","in":"query","schema":{"type":"string"},"required":false},{"name":"boardId","in":"query","schema":{"type":"string"},"required":false},{"name":"voterId","in":"query","schema":{"type":"string"},"required":false},{"name":"voterExternalId","in":"query","schema":{"type":"string"},"required":false},{"name":"voterEmail","in":"query","schema":{"type":"string"},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"voterId":{"anyOf":[{"type":"string"},{"type":"null"}]},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","end_user"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","displayName","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","postId","voterId","author","createdAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Returns the votes of the calling workspace across every board, newest first, as a cursor-paginated page with the same vote shape as a post's list. `postId` and `boardId` narrow it to one post or one board; `voterId`, `voterExternalId`, and `voterEmail` narrow it to one customer, matched together — which is how a caller answers \"has this customer voted, and on what\" in one request. A `postId` or `boardId` that does not exist in the workspace is reported as not found rather than as an empty page.","summary":"List the workspace's votes"}},"/api/v1/posts/{postId}/votes/{voteId}":{"delete":{"tags":["Votes"],"operationId":"Votes.deleteVote","parameters":[{"name":"postId","in":"path","schema":{"type":"string"},"required":true},{"name":"voteId","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"A path parameter, query parameter, header, or body field of the request is malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INVALID_REQUESTEncoded"}}}},"401":{"description":"The request carried no x-api-key header, or the header value was empty. | The API key is unknown, revoked, disabled, or expired.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MISSING_API_KEYEncoded"},{"$ref":"#/components/schemas/INVALID_API_KEYEncoded"}]}}}},"403":{"description":"The API key does not hold the scope this endpoint requires. | The workspace's plan does not include the Public API.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FORBIDDEN_SCOPEEncoded"},{"$ref":"#/components/schemas/PLAN_REQUIRES_UPGRADEEncoded"}]}}}},"404":{"description":"The requested resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NOT_FOUNDEncoded"}}}},"409":{"description":"The write collides with something that already exists, such as a name or slug this workspace already uses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CONFLICTEncoded"}}}},"429":{"description":"The per-key rate limit is exhausted; retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RATE_LIMITEDEncoded"}}},"headers":{"retry-after":{"schema":{"type":"string"},"required":true},"x-ratelimit-limit":{"schema":{"type":"string"},"required":true},"x-ratelimit-remaining":{"schema":{"type":"string"},"required":true},"x-ratelimit-reset":{"schema":{"type":"string"},"required":true}}},"500":{"description":"An unexpected server failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/INTERNAL_ERROREncoded"}}}},"503":{"description":"A dependency the request needs is unavailable; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SERVICE_UNAVAILABLEEncoded"}}}}},"description":"Removes the vote named by `voteId` from the post. The vote is named by its own id rather than by the voter's account: the account identifier behind a vote is never published. A vote that is already gone is reported as not found, and a locked or merged post is refused with CONFLICT. Removing a vote never touches the voter's email subscription.","summary":"Remove a vote from a post"}}},"components":{"schemas":{"CONFLICTEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["CONFLICT"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"SERVICE_UNAVAILABLEEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["SERVICE_UNAVAILABLE"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"INTERNAL_ERROREncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["INTERNAL_ERROR"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"RATE_LIMITEDEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["RATE_LIMITED"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"NOT_FOUNDEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["NOT_FOUND"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"INVALID_REQUESTEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["INVALID_REQUEST"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"PLAN_REQUIRES_UPGRADEEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["PLAN_REQUIRES_UPGRADE"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"FORBIDDEN_SCOPEEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["FORBIDDEN_SCOPE"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"INVALID_API_KEYEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["INVALID_API_KEY"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"MISSING_API_KEYEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["MISSING_API_KEY"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false}},"securitySchemes":{"apiKey":{"description":"A workspace API key, presented in the x-api-key header.","type":"apiKey","name":"x-api-key","in":"header"}}},"security":[],"tags":[{"name":"Audit log","description":"Read the workspace's audit log: what members, API keys, OAuth clients, and the product itself did, and which requests were refused."},{"name":"Boards","description":"Read the workspace's boards and their slugs, so a post can be filed under one."},{"name":"Changelog","description":"Create, publish, edit, and delete the workspace's changelog entries. Reads include drafts and scheduled entries."},{"name":"Comments","description":"Read, create, edit, and delete comments on posts, and pin one comment per post."},{"name":"Companies","description":"Read, create, edit, and delete the workspace's companies — records about its own customers, so a key needs the CRM capability for these endpoints."},{"name":"End users","description":"Read the workspace's end users and create or update them — records about its own customers, so a key needs the end-user capability for these endpoints."},{"name":"Posts","description":"Read, create, edit, and delete posts, and set which tags a post carries."},{"name":"Statuses","description":"Read the workspace's post statuses, so a post can be filed with one."},{"name":"Tags","description":"Read, create, rename, and delete the workspace's tags."},{"name":"Votes","description":"List a post's votes, and add or remove one on a customer's behalf."}]}