Documentation

API reference · feedback
Sections

feedback

Used by the website. These routes don't accept an API key.

GET/feedback

List feedback reports, newest first (owner only)

Site owners only

Returns "items", "total" and "next_cursor"; when next_cursor is not null, call again with cursor=next_cursor.

Parameters
NameInTypeDescription
statusquery"new" | "approved" | "archived" | nullOnly reports with this status
limitqueryinteger | nullReports per page (default 25, at most 100)
cursorquerystring | nullnext_cursor from the previous page
Response: FeedbackList
FieldTypeDescription
items *FeedbackReportOut[]
category *"bug" | "feature" | "question" | "other"
created_at *string
id *integer
message *string
owner_note *string | null
page_url *string | null
paper_id *integer | null
status *"new" | "approved" | "archived"
updated_at *string
user_email *string | nullThe sender's email; null for an anonymous report
user_id *integer | nullThe sender's account id; null for an anonymous report
next_cursor *string | null
total *integer
curl
curl 'https://api.papervantage.com/feedback' \
  -H "Authorization: Bearer $COGNITO_ACCESS_TOKEN"

POST/feedback

Send feedback: a bug, a feature request, a question or anything else

Website sign-in or anonymous

Open to signed-in users and (where the environment allows anonymous requests) visitors. At most 5 per hour and 20 per day per account, and 10 per hour and 40 per day per address; beyond that the answer is 429. The owner is emailed once per report.

Request body (JSON)
FieldTypeDescription
category *"bug" | "feature" | "question" | "other"What kind of feedback: bug, feature, question or other
message *stringThe feedback itself, up to 5000 characters
page_urlstring | nullThe page it is about; only the origin and path are kept (no query or fragment)
paper_idinteger | nullThe paper being read when it was written, if any
Response: FeedbackReportOut
FieldTypeDescription
category *"bug" | "feature" | "question" | "other"
created_at *string
id *integer
message *string
owner_note *string | null
page_url *string | null
paper_id *integer | null
status *"new" | "approved" | "archived"
updated_at *string
user_email *string | nullThe sender's email; null for an anonymous report
user_id *integer | nullThe sender's account id; null for an anonymous report
curl
curl -X POST 'https://api.papervantage.com/feedback' \
  -H "Authorization: Bearer $COGNITO_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"category":"bug","message":"<message>"}'

PATCH/feedback/{report_id}

Set a feedback report's status and/or the owner's note (owner only)

Site owners only
Parameters
NameInTypeDescription
report_id *pathintegerThe report's id, from GET /feedback
Request body (JSON)
FieldTypeDescription
owner_notestring | nullThe owner's private note (empty clears it)
status"new" | "approved" | "archived" | nullNew triage status: new, approved or archived
Response: FeedbackReportOut
FieldTypeDescription
category *"bug" | "feature" | "question" | "other"
created_at *string
id *integer
message *string
owner_note *string | null
page_url *string | null
paper_id *integer | null
status *"new" | "approved" | "archived"
updated_at *string
user_email *string | nullThe sender's email; null for an anonymous report
user_id *integer | nullThe sender's account id; null for an anonymous report
curl
curl -X PATCH 'https://api.papervantage.com/feedback/1' \
  -H "Authorization: Bearer $COGNITO_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"owner_note":"<owner_note>"}'

Next: git