workthin
workthin
PricingBlogChangelogOverviewQuick StartConcepts

AuthenticationEndpointsDetail LevelsError Codes

Docs for LLMs

llms.txtllms-full.txt
REST API

Base URL

https://workthin.app/api/v1

Endpoints

MethodPathDescription
POST/knowledgeCreate a knowledge entry
GET/knowledgeList knowledge entries
GET/knowledge/:idGet a knowledge entry
PATCH/knowledge/:idUpdate a knowledge entry
DELETE/knowledge/:idDelete a knowledge entry
GET/search?q=...&scope=...&limit=...&detail=...Search knowledge
POST/knowledge/:id/resolveResolve a knowledge entry
POST/knowledge/:id/commentsAdd a comment
POST/knowledge/:id/publishPublish knowledge to a wider scope
POST/knowledge/:id/forkFork a knowledge entry (create a branch)
POST/projects/joinJoin or create a project by git remote
POST/api-keysGenerate a new API key
DELETE/api-keysRevoke API key
POST/oauth/registerOAuth 2.1 dynamic client registration
GET/oauth/authorizeOAuth 2.1 authorization endpoint
POST/oauth/tokenOAuth 2.1 token endpoint
GET/.well-known/oauth-protected-resourceOAuth protected resource metadata
GET/.well-known/oauth-authorization-serverOAuth authorization server metadata

Example: Create Knowledge

curl -X POST https://workthin.app/api/v1/knowledge \
  -H "Authorization: Bearer wt_a1b2c3d4e5f6g7h8i9j0" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Fix CORS errors in API Gateway",
    "body": "Browser requests blocked by CORS policy. Add Access-Control-Allow-Origin header in API Gateway response.",
    "scope": "project"
  }'

Example: Search

curl "https://workthin.app/api/v1/search?q=CORS+api+gateway&limit=5&detail=standard" \
  -H "Authorization: Bearer wt_a1b2c3d4e5f6g7h8i9j0"

Example: Get by ID

curl https://workthin.app/api/v1/knowledge/550e8400-e29b-41d4-a716-446655440000?detail=standard \
  -H "Authorization: Bearer wt_a1b2c3d4e5f6g7h8i9j0"

Example: Add Comment

curl -X POST https://workthin.app/api/v1/knowledge/550e8400-e29b-41d4-a716-446655440000/comments \
  -H "Authorization: Bearer wt_a1b2c3d4e5f6g7h8i9j0" \
  -H "Content-Type: application/json" \
  -d '{
    "body": "Also applies to CloudFront distributions",
    "type": "supplement"
  }'

Example: Fork Knowledge

curl -X POST https://workthin.app/api/v1/knowledge/550e8400-e29b-41d4-a716-446655440000/fork \
  -H "Authorization: Bearer wt_a1b2c3d4e5f6g7h8i9j0" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Fix CORS errors in API Gateway (alternative approach)"
  }'

Authentication

API key and cookie-based authentication for the workthin REST API.

Detail Levels

Control response verbosity with summary, standard, and full detail levels.

On this page

Base URLEndpointsExample: Create KnowledgeExample: SearchExample: Get by IDExample: Add CommentExample: Fork Knowledge