{"openapi":"3.1.0","info":{"title":"Sma Das API","version":"1.0.0","description":"Read published research on sma-das.blog. List, fetch, and search public articles. Authentication is optional for GET. Errors use RFC 9457 application/problem+json with code, message, and hint. Rate limit: 120 requests per 60 seconds per client, advertised with RateLimit and RateLimit-Policy headers. HTTP 429 includes Retry-After.","contact":{"name":"Sma Das","email":"hello@sma-das.com","url":"https://sma-das.blog"}},"servers":[{"url":"https://sma-das.blog","description":"Sma Das"}],"tags":[{"name":"research","description":"Published articles"},{"name":"keys","description":"Self-serve API keys"}],"paths":{"/api/v1":{"get":{"tags":["research"],"summary":"API index","operationId":"getApiIndex","responses":{"200":{"description":"Catalog of public endpoints","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request. Typed Problem details with code, message, and hint.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Invalid or unrecognized Bearer token.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Unknown path or article slug.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Method not allowed on this URL.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Honor Retry-After and RateLimit.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/posts":{"get":{"tags":["research"],"summary":"List published research","operationId":"listPosts","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"Published posts","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/json":{"schema":{"type":"object","properties":{"posts":{"type":"array","items":{"$ref":"#/components/schemas/Post"}}}}}}},"400":{"description":"Invalid request. Typed Problem details with code, message, and hint.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Invalid or unrecognized Bearer token.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Unknown path or article slug.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Method not allowed on this URL.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Honor Retry-After and RateLimit.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/posts/{slug}":{"get":{"tags":["research"],"summary":"Get one published article","operationId":"getPost","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Article metadata and markdown body","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDetail"}}}},"400":{"description":"Invalid request. Typed Problem details with code, message, and hint.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Invalid or unrecognized Bearer token.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Unknown path or article slug.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Method not allowed on this URL.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Honor Retry-After and RateLimit.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/search":{"get":{"tags":["research"],"summary":"Search published research","operationId":"searchPosts","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"description":"Keywords matched against title, tags, and description"},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}}],"responses":{"200":{"description":"Ranked matches","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"posts":{"type":"array","items":{"$ref":"#/components/schemas/Post"}}}}}}},"400":{"description":"Invalid request. Typed Problem details with code, message, and hint.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Invalid or unrecognized Bearer token.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Unknown path or article slug.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Method not allowed on this URL.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Honor Retry-After and RateLimit.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/v1/keys":{"post":{"tags":["keys"],"summary":"Issue a self-serve API key","operationId":"issueApiKey","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"label":{"type":"string"}}}}}},"responses":{"201":{"description":"API key, shown once","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}}}},"400":{"description":"Invalid request. Typed Problem details with code, message, and hint.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Invalid or unrecognized Bearer token.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Unknown path or article slug.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"405":{"description":"Method not allowed on this URL.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Honor Retry-After and RateLimit.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server error.","headers":{"RateLimit":{"schema":{"type":"string","example":"\"fixed\";r=119;t=60"},"description":"IETF RateLimit remaining quota (r) and seconds until reset (t)."},"RateLimit-Policy":{"schema":{"type":"string","example":"\"fixed\";q=120;w=60"},"description":"IETF RateLimit-Policy: 120 requests per 60-second window."},"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait after HTTP 429."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}},"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Optional. Issue a key at POST /api/v1/keys or exchange an anonymous identity_assertion at https://sma-das.blog/oauth2/token. Scopes: research.read, research.search. Resource: https://sma-das.blog/api/v1."}},"schemas":{"Problem":{"type":"object","required":["type","title","status","detail","code","error","message","hint"],"properties":{"type":{"type":"string","format":"uri","description":"RFC 9457 type URI for this error class"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","description":"Machine-readable error code","enum":["invalid_request","invalid_token","not_found","method_not_allowed","rate_limited","internal_error"]},"error":{"type":"string","description":"Alias of code for clients that look for error"},"message":{"type":"string","description":"Human-readable explanation, same as detail"},"hint":{"type":"string","description":"What the agent should do next"}}},"Post":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"date":{"type":"string"},"lastModified":{"type":"string"},"author":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"url":{"type":"string","format":"uri"},"markdown_url":{"type":"string","format":"uri"},"image":{"type":"string","format":"uri"}}},"PostDetail":{"allOf":[{"$ref":"#/components/schemas/Post"},{"type":"object","properties":{"markdown":{"type":"string"}}}]},"ApiKey":{"type":"object","properties":{"key":{"type":"string"},"prefix":{"type":"string"},"token_type":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"expires_in":{"type":"integer"},"label":{"type":["string","null"]}}}}},"security":[{},{"bearerAuth":[]}]}