# Refresh the latest public comment snapshot



URL: /docs/reference/publications/refreshPublicationComments

```json
{"openapi":"3.0.3","info":{"title":"Postdot API","description":"The HTTP API for the lightweight, self-hosted Postdot publication orchestrator.","version":"0.1.0"},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Postdot API key","description":"A user-owned Postdot API key sent as `Authorization: Bearer <token>`. Its project scope is limited by the creator’s current access."},"sessionCookie":{"type":"apiKey","in":"cookie","name":"better-auth.session_token","description":"The Better Auth email/password session cookie used by the web application."}},"schemas":{}},"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"tags":[{"name":"System","description":"Service health and runtime information."},{"name":"Access","description":"Instance membership and invitations."},{"name":"Projects","description":"Project lifecycle and access."},{"name":"Channels","description":"Project publication destinations."},{"name":"Posts","description":"Source posts and publication creation."},{"name":"Publications","description":"Publication workflow operations."},{"name":"Taxonomy","description":"Project categories and publication tags."},{"name":"Media","description":"Project media assets and uploads."},{"name":"Settings","description":"Instance-level runtime configuration."},{"name":"Audit","description":"Project audit history."},{"name":"Notifications","description":"Signed-in user notification inboxes with optional project context."},{"name":"Analytics","description":"Provider-neutral publication and execution analytics."},{"name":"Provider Analytics","description":"Persisted provider-owned metric observations."}],"paths":{"/api/projects/{projectId}/publications/{publicationId}/comments/refresh":{"post":{"operationId":"refreshPublicationComments","summary":"Refresh the latest public comment snapshot","tags":["Publications"],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"publicationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{}}},"multipart/form-data":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"type":"object","required":["publicationId","provider","snapshot","lastAttemptAt","lastError"],"properties":{"publicationId":{"type":"string"},"provider":{"type":"string","enum":["bluesky","mastodon"]},"snapshot":{"anyOf":[{"type":"object","required":["fetchedAt","rootUri","availability","truncated","comments"],"properties":{"fetchedAt":{"type":"integer","minimum":0},"rootUri":{"type":"string"},"availability":{"anyOf":[{"type":"string","const":"available"},{"anyOf":[{"type":"string","const":"blocked"},{"type":"string","const":"disabled"},{"type":"string","const":"invalid_response"},{"type":"string","const":"not_authorized"},{"type":"string","const":"not_found"},{"type":"string","const":"not_supported"},{"type":"string","const":"partial_response"},{"type":"string","const":"rate_limited"},{"type":"string","const":"temporarily_unavailable"}]}]},"truncated":{"type":"boolean"},"comments":{"type":"array","items":{"type":"object","required":["id","parentUri","depth","availability","authorDid","authorHandle","text","createdAt","externalUrl"],"properties":{"id":{"type":"string"},"parentUri":{"anyOf":[{"type":"string"},{"type":"null"}]},"depth":{"type":"integer","minimum":0,"maximum":6},"availability":{"anyOf":[{"type":"string","const":"available"},{"type":"string","const":"blocked"},{"type":"string","const":"not_found"},{"type":"string","const":"invalid_response"}]},"authorDid":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorHandle":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"externalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"maxItems":100}}},{"type":"null"}]},"lastAttemptAt":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"lastError":{"anyOf":[{"anyOf":[{"type":"string","const":"blocked"},{"type":"string","const":"disabled"},{"type":"string","const":"invalid_response"},{"type":"string","const":"not_authorized"},{"type":"string","const":"not_found"},{"type":"string","const":"not_supported"},{"type":"string","const":"partial_response"},{"type":"string","const":"rate_limited"},{"type":"string","const":"temporarily_unavailable"}]},{"type":"null"}]}}}}}},"400":{"description":"Response for status 400","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"401":{"description":"Response for status 401","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"403":{"description":"Response for status 403","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"404":{"description":"Response for status 404","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Response for status 422","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}},"servers":[{"url":"https://postbot.example","description":"Replace with your Postdot instance origin."}]}
```
