Skip to content

Wins

Wins are the core resource in Hype Doc — each win represents an achievement or accomplishment.

GET /api/v1/wins

Returns a paginated list of wins, newest first.

ParameterTypeDescription
space_idintegerFilter by space ID
tagstringFilter by tag name
sincedateOnly wins on or after this date (YYYY-MM-DD)
untildateOnly wins on or before this date (YYYY-MM-DD)
qstringFull-text search on win content
pageintegerPage number (default: 1)
per_pageintegerItems per page (default: 25, max: 100)
Terminal window
curl "https://app.myhypedoc.com/api/v1/wins?space_id=1&tag=launch&since=2026-01-01" \
-H "Authorization: Bearer YOUR_TOKEN"
GET /api/v1/wins/:id

Returns a single win by ID.

POST /api/v1/wins
FieldTypeRequiredDescription
win[body]stringYesThe win content (plain text, HTML, or markdown)
win[body_format]stringNo"markdown" to auto-render markdown to HTML. Omit for raw HTML.
win[space_id]integerYesThe space to log the win in
win[occurred_on]dateNoDate in YYYY-MM-DD format (defaults to today)
win[tag_names]array or stringNoTags to apply. Array of strings, or comma-separated string.
Terminal window
curl -X POST https://app.myhypedoc.com/api/v1/wins \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"win": {
"body": "**Shipped** the new onboarding flow with 3 steps",
"body_format": "markdown",
"space_id": 1,
"occurred_on": "2026-01-15",
"tag_names": ["launch", "product"]
}
}'

When body_format is set to "markdown", the body is rendered to HTML using Redcarpet with support for:

  • Autolinks
  • Tables
  • Fenced code blocks
  • Strikethrough
  • Hard line breaks
PATCH /api/v1/wins/:id

Accepts the same fields as create. Only send the fields you want to change. To update tags, include win[tag_names] — this replaces all existing tags.

DELETE /api/v1/wins/:id

Returns 204 No Content on success.

StatusMeaning
401Missing or invalid token
402Free plan limit reached
404Win not found
422Validation error (e.g. missing body)