Skip to main content
New to Corsair? See API access, authentication, and error handling.

Backups

create

backups.create Create backup. Needs an admin API key. (POST /admin/backups.json) Risk: destructive
Input Output

download

backups.download Download backup. Returns the archive as a file. Needs the download token from the email backups.sendDownloadEmail sends. A forum that keeps backups in S3 redirects to the storage URL. Needs an admin API key. Risk: read
Input Output

list

backups.list List backups. Needs an admin API key. (GET /admin/backups.json) Risk: read
Input: empty object Output: object[]

sendDownloadEmail

backups.sendDownloadEmail Send download backup email. Needs an admin API key. Risk: destructive
Input Output

Badges

create

badges.create Create badge. Needs an admin API key. (POST /admin/badges.json) Risk: write
Input Output

delete

badges.delete Delete badge. Needs an admin API key. Cannot be undone. Risk: destructive · Irreversible
Input Output

grant

badges.grant Grant a badge to a user. (POST /user_badges.json) Risk: destructive
Input Output

list

badges.list List badges. Needs an admin API key. (GET /admin/badges.json) Risk: read
Input: empty object Output

listForUser

badges.listForUser List badges for a user. (GET /user-badges/{username}.json) Risk: read
Input Output

update

badges.update Update badge. Needs an admin API key. (PUT /admin/badges/{id}.json) Risk: write
Input Output

Categories

create

categories.create Creates a category. (POST /categories.json) Risk: write
Input
Output

get

categories.get Show category. (GET /c/{id}/show.json) Risk: read
Input Output

list

categories.list Retrieves a list of categories. (GET /categories.json) Risk: read
Input Output

listTopics

categories.listTopics List topics. (GET /c/{slug}/{id}.json) Risk: read
Input Output

update

categories.update Updates a category. (PUT /categories/{id}.json) Risk: write
Input
Output

Events

exportIcs

events.exportIcs Export calendar events in iCalendar format. Needs the Discourse Calendar (post event) plugin: without it the route answers 404. Risk: read
Input Output

list

events.list List calendar events. Needs the Discourse Calendar (post event) plugin: without it the route answers 404. Risk: read
Input Output

Groups

addMembers

groups.addMembers Add group members. (PUT /groups/{id}/members.json) Risk: write
Input Output

create

groups.create Create a group. Needs an admin API key. (POST /admin/groups.json) Risk: write
Input
Output

delete

groups.delete Delete a group. Needs an admin API key. Cannot be undone. Risk: destructive · Irreversible
Input Output

get

groups.get Get a group. (GET /groups/{name}.json) Risk: read
Input Output

getById

groups.getById Get a group by id. (GET /groups/by-id/{id}.json) Risk: read
Input Output

list

groups.list List groups. (GET /groups.json) Risk: read
Input: empty object Output

listMembers

groups.listMembers List group members. (GET /groups/{name}/members.json) Risk: read
Input Output

removeMembers

groups.removeMembers Remove group members. Cannot be undone. (DELETE /groups/{id}/members.json) Risk: destructive · Irreversible
Input Output

update

groups.update Update a group. (PUT /groups/{id}.json) Risk: write
Input
Output

Invites

create

invites.create Create an invite. A 429 here usually means the daily invite allowance (max_invites_per_day) is used up: it is not retried. Risk: destructive
Input Output

createMultiple

invites.createMultiple Create multiple invites. (POST /invites/create-multiple.json) Risk: destructive
Input Output

Notifications

list

notifications.list Get the notifications that belong to the current user. Risk: read
Input: empty object Output

markRead

notifications.markRead Mark notifications as read. (PUT /notifications/mark-read.json) Risk: write
Input Output

Posts

create

posts.create Creates a new topic, a new post, or a private message. Creates a topic (title + raw), a reply (topic_id + raw) or a private message (archetype private_message + target_recipients); it is public on the forum and notifies watchers. Risk: destructive
Input Output

delete

posts.delete delete a single post. Cannot be undone. (DELETE /posts/{id}.json) Risk: destructive · Irreversible
Input Output

get

posts.get Retrieve a single post. This endpoint can be used to get the number of likes on a post using the actions_summary property in the response. actions_summary responses with the id of 2 signify a like. If there are no actions_summary items with the id of 2, that means there are 0 likes. Risk: read
Input Output

list

posts.list List latest posts across topics. (GET /posts.json) Risk: read
Input Output

listReplies

posts.listReplies List replies to a post. (GET /posts/{id}/replies.json) Risk: read
Input Output: object[]

lock

posts.lock Lock a post from being edited. (PUT /posts/{id}/locked.json) Risk: write
Input Output

performAction

posts.performAction Like a post and other actions. (POST /post_actions.json) Risk: destructive
Input Output

update

posts.update Update a single post. (PUT /posts/{id}.json) Risk: write
Input
Output

Private Messages

list

privateMessages.list Get a list of private messages for a user. Risk: read
Input Output

listSent

privateMessages.listSent Get a list of private messages sent for a user. Risk: read
Input Output

query

search.query Search for a term. (GET /search.json) Risk: read
Input Output

Site

get

site.get Get site info. Can be used to fetch all categories and subcategories. Risk: read
Input: empty object Output

getBasicInfo

site.getBasicInfo Get site basic info. Can be used to fetch basic info about a site. Risk: read
Input: empty object Output

Tags

createGroup

tags.createGroup Creates a tag group. (POST /tag_groups.json) Risk: write
Input Output

get

tags.get Get a specific tag. (GET /tag/{name}.json) Risk: read
Input Output

getGroup

tags.getGroup Get a single tag group. (GET /tag_groups/{id}.json) Risk: read
Input Output

list

tags.list Get a list of tags. (GET /tags.json) Risk: read
Input: empty object Output

listGroups

tags.listGroups Get a list of tag groups. (GET /tag_groups.json) Risk: read
Input: empty object Output

updateGroup

tags.updateGroup Update tag group. (PUT /tag_groups/{id}.json) Risk: write
Input Output

Topics

bookmark

topics.bookmark Bookmark topic. (PUT /t/{id}/bookmark.json) Risk: write
Input Output

createTimer

topics.createTimer Create topic timer. (POST /t/{id}/timer.json) Risk: write
Input Output

delete

topics.delete Remove a topic. Cannot be undone. (DELETE /t/{id}.json) Risk: destructive · Irreversible
Input Output

get

topics.get Get a single topic. (GET /t/{id}.json) Risk: read
Input Output

getByExternalId

topics.getByExternalId Get topic by external_id. Discourse answers with a redirect to the topic’s JSON on the forum’s configured hostname; the client follows it and returns the topic. Risk: read
Input Output

getPosts

topics.getPosts Get specific posts from a topic. (GET /t/{id}/posts.json) Risk: read
Input Output

invite

topics.invite Invite to topic. (POST /t/{id}/invite.json) Risk: destructive
Input Output

inviteGroup

topics.inviteGroup Invite group to topic. (POST /t/{id}/invite-group.json) Risk: destructive
Input Output

listLatest

topics.listLatest Get the latest topics. (GET /latest.json) Risk: read
Input Output

listTop

topics.listTop Get the top topics filtered by period. (GET /top.json) Risk: read
Input Output

setNotificationLevel

topics.setNotificationLevel Set notification level. (POST /t/{id}/notifications.json) Risk: write
Input Output

update

topics.update Update a topic. (PUT /t/-/{id}.json) Risk: write
Input
Output

updateStatus

topics.updateStatus Update the status of a topic. (PUT /t/{id}/status.json) Risk: write
Input Output

updateTimestamp

topics.updateTimestamp Update topic timestamp. (PUT /t/{id}/change-timestamp.json) Risk: write
Input Output

Uploads

abortMultipart

uploads.abortMultipart Abort multipart upload. This endpoint aborts the multipart upload initiated with /create-multipart. This should be used when cancelling the upload. It does not matter if parts were already uploaded into the external storage provider. Needs uploads stored on S3 (enable_direct_s3_uploads). Risk: write
Input Output

batchPresignMultipartParts

uploads.batchPresignMultipartParts Generates batches of presigned URLs for multipart parts. Multipart uploads are uploaded in chunks or parts to individual presigned URLs, similar to the one generated by /generate-presigned-put. The part numbers provided must be between 1 and 10000, and a request can have at most 100 part numbers. Needs uploads stored on S3 (enable_direct_s3_uploads). Risk: read
Input Output

completeExternal

uploads.completeExternal Completes a direct external upload. Completes an external upload initialized with /get-presigned-put. The file will be moved from its temporary location in external storage to a final destination in the S3 bucket. An Upload record will also be created in the database in most cases. Needs uploads stored on S3 (enable_direct_s3_uploads). Risk: write
Input Output

completeMultipart

uploads.completeMultipart Complete multipart upload. Completes the multipart upload in the external store, and copies the file from its temporary location to its final location in the store. All of the parts must have been uploaded to the external storage provider. Needs uploads stored on S3 (enable_direct_s3_uploads). Risk: write
Input Output

create

uploads.create Creates an upload. (POST /uploads.json) Risk: write
Input
Output

createMultipart

uploads.createMultipart Creates a multipart external upload. Creates a multipart upload in the external storage provider, storing a temporary reference to the external upload similar to /get-presigned-put. You must have the correct permissions and CORS settings configured in your external provider. We support AWS S3 as the default. Needs uploads stored on S3 (enable_direct_s3_uploads). Risk: write
Input
Output

generatePresignedPut

uploads.generatePresignedPut Initiates a direct external upload. Direct external uploads bypass the usual method of creating uploads via the POST /uploads route, and upload directly to an external provider, which by default is S3. Needs uploads stored on S3 (enable_direct_s3_uploads): a local-storage forum answers 400 or 404. Risk: read
Input
Output

Users

activate

users.activate Activate a user. Needs an admin API key. Risk: write
Input Output

adminGet

users.adminGet Get a user by id. Needs an admin API key. Risk: read
Input Output

adminList

users.adminList List users. Needs an admin API key. (GET /admin/users.json) Risk: read
Input Output: object[]

adminListByFlag

users.adminListByFlag List users by flag. Needs an admin API key. Risk: read
Input Output: object[]

anonymize

users.anonymize Anonymize a user. Replaces the user’s name, email and profile for good. Needs an admin API key. Risk: destructive · Irreversible
Input Output

changePassword

users.changePassword Change password. (PUT /users/password-reset/{token}.json) Risk: destructive · Irreversible
Input Output

create

users.create Creates a user. A forum with hide_email_address_taken on answers success without a user_id (and creates nothing) when the email is taken; with normalize_emails, plus addresses of one inbox count as the same email. Risk: write
Input
Output

deactivate

users.deactivate Deactivate a user. Needs an admin API key. Risk: destructive
Input Output

delete

users.delete Delete a user. Needs an admin API key. Cannot be undone. Risk: destructive · Irreversible
Input Output

get

users.get Get a single user by username. (GET /u/{username}.json) Risk: read
Input Output

getByExternalId

users.getByExternalId Get a user by external_id. (GET /u/by-external/{external_id}.json) Risk: read
Input Output

getByProviderExternalId

users.getByProviderExternalId Get a user by identity provider external ID. Risk: read
Input Output

getEmails

users.getEmails Get email addresses belonging to a user. Risk: read
Input Output

listActions

users.listActions Get a list of user actions. (GET /user_actions.json) Risk: read
Input Output

listDirectory

users.listDirectory Get a public list of users. (GET /directory_items.json) Risk: read
Input Output

logOut

users.logOut Log a user out. Needs an admin API key. (POST /admin/users/{id}/log_out.json) Risk: destructive
Input Output

merge

users.merge Merge a user. Merge a user into another user. Requires admin permissions. The source user cannot be a staff member. The merge runs in the background and deletes the source user when complete. Moves everything the user posted to another user and deletes the first one. Needs an admin API key. Risk: destructive · Irreversible
Input Output

refreshGravatar

users.refreshGravatar Refresh gravatar. (POST /user_avatar/{username}/refresh_gravatar.json) Risk: write
Input Output

sendPasswordResetEmail

users.sendPasswordResetEmail Send password reset email. (POST /session/forgot_password.json) Risk: destructive
Input Output

silence

users.silence Silence a user. Needs an admin API key. (PUT /admin/users/{id}/silence.json) Risk: destructive
Input Output

suspend

users.suspend Suspend a user. Needs an admin API key. (PUT /admin/users/{id}/suspend.json) Risk: destructive
Input Output

update

users.update Update a user. (PUT /u/{username}.json) Risk: write
Input
Output

updateAvatar

users.updateAvatar Update avatar. (PUT /u/{username}/preferences/avatar/pick.json) Risk: write
Input Output

updateEmail

users.updateEmail Update email. (PUT /u/{username}/preferences/email.json) Risk: destructive
Input Output

updateUsername

users.updateUsername Update username. (PUT /u/{username}/preferences/username.json) Risk: destructive
Input Output