Documentation

Create a Share

POST /api/share

Creates a new share. Accepts a JSON body with a required "content" field and optional "command" and "is_hidden" fields.

Example Body:

{
  "content": "your text output here",
  "command": "your_command (optional)",
  "is_hidden": false (optional)
}

Get All Outputs

GET /api/outputs

Returns a JSON list of all non-hidden shares with their full content.

Get a Single Output

GET /api/output/{public_id}

Returns all details for a single share, including raw and HTML content.

Vote on an Output

POST /api/output/{public_id}/upvote

POST /api/output/{public_id}/downvote

Upvotes or downvotes a share. No request body is needed.