| Method |
Path |
Slug |
Description |
Examples |
| GET | /abuse/category | GetAllAbuseCategories | Return all abuse categories | /abuse/category |
| GET | /comment/:id | GetComment | Get a comment | /comment/12500137, /comment/12500137?displayResponses=true, /comment/12500137?displayResponses=true&displayThreaded=true |
| GET | /comment/:id/context | GetCommentContext | Returns the discussion url, key, and page number on which the comment appears in the discussion. Useful for permalinks. | /comment/12500137/context |
| POST | /comment/:id/highlight | PostHighlightToComment | Post a highlight to an existing unhighlighted comment | |
| GET | /comment/:id/permalink | GetCommentPermalink | Redirect to a comment permalink | /comment/1250013/permalink |
| POST | /comment/:id/recommend | RecommendComment | Post a user recommendation to an existing comment | |
| POST | /comment/:id/reportAbuse | ReportAbuseOnComment | ReportAbuse on an existing comment | |
| POST | /comment/:id/unhighlight | PostUnhighlightToComment | Post an unhighlight to an existing highlighted comment | |
| POST | /comment/highlight | HighlightComment | Highlights the comment with Anti-spam bad words | |
| POST | /comment/preview | PreviewComment | Formats the comment into the allowed html | |
| GET | /discussion/:key | GetDiscussion | Get a discussion | /discussion//p/2y7gc, /discussion/isbn:9780387988979 |
| POST | /discussion/:key/comment | PostNewComment | Post a new comment to a discussion | |
| POST | /discussion/:key/comment/:id/reply | PostReplyToComment | Post a reply to an existing comment | |
| GET | /discussion/:key/comments/count | GetCommentCount | Get the number of visible comments recorded for a discussion | /discussion//p/2y7gc/comments/count |
| GET | /discussion/:key/featuredcomments | GetFeaturedComments | Get the featured comments for a discussion as a flat list | /discussion/p/3vkt9/featuredcomments |
| GET | /discussion/:key/highlights | GetDiscussionHighlights | Get the highlighted comments for a discussion as a flat list | /discussion//p/2y7gc/highlights |
| GET | /discussion/:key/recommended | GetRecommendedCommentsForDiscussion | Get the comments for a discussion as a flat list ordered according to user recommendation | /discussion//p/2y7gc/recommended |
| GET | /discussion/:key/staff-comments | GetStaffComments | Get all staff comments to a discussion | |
| GET | /discussion/:key/topcomments | GetDiscussionTopComments | Get the top comments for a discussion as a flat list | /discussion/p/2y7gc/topcomments |
| GET | /discussion/most/staff | GetMostStaffCommentsSince | Get most staff comments since(timestamp) | /discussion/most/staff |
| POST | /discussions | UpdateDiscussions | Creates or updates an array of discussions | |
| GET | /getCommentCounts | GetCommentCounts | Get the number of visible comments recorded for discussions provided in the short-urls param | /getCommentCounts?short-urls=/p/37v3a,/p/36qah&callback=getCommentCounts |
| GET | /healthcheck | GetCDNHealthcheck | Basic healthcheck for CDN and ELB. | |
| GET | /modtoolsearch/comments | SearchComments | Search for profiles in elasticsearch | |
| GET | /modtoolsearch/discussions | SearchDiscussions | Search for profiles in elasticsearch | |
| GET | /modtoolsearch/profiles | SearchProfiles | Search for profiles in elasticsearch | |
| GET | /most/comments | GetMostCommentsSince | Get most comments since(timestamp) | /most/comments |
| GET | /oembed | Oembed | Oembed endpoint for a single comment. | /oembed?id=8436585, /oembed?url=https://discussion.theguardian.com/comment-permalink/8436585 |
| GET | /popular | GetMostPopular | Get most popular | /popular |
| GET | /profile/:userId | GetProfile | Get a user profile | /profile/3853811, /profile/me |
| PATCH | /profile/:userId | UpdateProfile | Update a users profile | /profile/3853811 |
| GET | /profile/:userId/comments | GetAllCommentsForUser | Get all comments posted by user | /profile/3853811/comments |
| GET | /profile/:userId/discussions | GetAllDiscussionsForUser | Get all discussions the user has commented on | /profile/3853811/discussions |
| GET | /profile/:userId/replies | GetAllRepliesToAUser | Get all comments that have been posted in response by user | /profile/3853811/replies |
| POST | /profile/:userId/reportAbuse | ReportAbuseOnProfile | Report abuse on an existing profile | |
| GET | /profile/:userId/stats | GetProfileStats | Returns a count of comments posted, comments picked, and total recommends received. | /profile/3853811/stats |
| GET | /profile/displayName/:displayName | GetProfileByDisplayName | Get user profiles for a given display name | /profile/displayName/nicl |
| GET | /profile/stats/lastSync | GetLastIdentitySync | Get the last identity sync time | /profile/stats/lastSync |
| GET | /recent/highlighted | GetRecentHighlightedComments | Get recent comments that have been highlighted | /recent/highlighted |
| GET | /recent/highlighted/for/:key" | GetRecentHighlightedCommentsForDiscussion | Get recent comments that have been highlighted for an article | /recent/highlighted/for//p/2y7gc |
| GET | /recent/recommended | GetRecentRecommendedComments | Get recent comments that have been recommended | /recent/recommended |
| POST | /score | GetCommentScore | Get a comment toxicity score | /score |
| GET | /search/profile/:userId | SearchTextInUserComments | Search for occurrences of text within a given user's comments | |
| GET | /switchboard | GetSwitchBoardState | Get current dynamo state | |
| POST | /switchboard | UpdateDynamoSwitchboard | Update a dynamoDb switch | |