List comments for a subject
GET/api/comments/{subject_kind}/{subject_id}
listComments
Authentication is not described for this operation in the spec — that does not mean it is public. Check tokens and scopes.
curl
curl -X GET 'https://neosource.dev/api/comments/SUBJECT_KIND/SUBJECT_ID'fetch
fetch("https://neosource.dev/api/comments/SUBJECT_KIND/SUBJECT_ID", {
method: "GET",
});Path parameters
subject_kindrequiredOne of: `issue`, `pull_request`, `pr_review_thread`. (`commit` is reserved but not yet routable.)
subject_idrequiredSubject UUID — interpreted according to `subject_kind`.
Responses
200Comment list
application/json
403Forbidden — one of: forbidden, needs_scope
application/json
Standard errors
Bodies documented once for the whole API — see standard errors.
- 400Bad Request — one of: invalid_input
- 404Not Found — one of: not_found
- 429Rate limited — retry after the `Retry-After` header
- 500Internal server error
- 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
- 504Gateway timeout — the request exceeded the server's handling budget
Schemas
Referenced above. Listed here rather than expanded inline, so the same definition is not repeated at every level.
AccountKind
Rust mirror of the Pg `account_kind` enum (`accounts.kind`). `Ghost` rows are imported-author placeholders (GitHub metadata import, plans/github-metadata-import.md §6): `handle = gh-<github-id>`, `personal_workspace_id` NULL, no password, no sessions. They must never flow through `get_account*` (`AccountRow::into_record` CorruptData-errors on the NULL workspace) — author rendering goes through `PgGithubImportStore::authors_projection`, and claim-by-proof later promotes or merges them.
"human""bot""service""runner""ghost"