{"info":{"title":"Endgame Public API","version":"1.0.0"},"servers":[{"url":"https://app.endgame.io"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Endgame API key (eak_*) or WorkOS JWT. Obtain an API key from Settings → API keys."}}},"openapi":"3.1.1","paths":{"/protected-static/objects":{"get":{"operationId":"protectedStatic.list","summary":"List protected-static objects","parameters":[{"name":"prefix","in":"query","schema":{"type":"string","maxLength":1024},"allowEmptyValue":true,"allowReserved":true},{"name":"maxResults","in":"query","schema":{"default":100,"type":"integer","minimum":1,"maximum":1000},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"objects":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"integer"},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated":{"anyOf":[{"type":"string"},{"type":"null"}]},"etag":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["path","size","contentType","updated","etag"]}}},"required":["objects"]}}}}}},"put":{"operationId":"protectedStatic.put","summary":"Upload or replace a protected-static object","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":1024},"contentType":{"type":"string","minLength":1,"maxLength":255},"contentBase64":{"type":"string","minLength":1,"maxLength":10485760}},"required":["path","contentType","contentBase64"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"integer"},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated":{"anyOf":[{"type":"string"},{"type":"null"}]},"etag":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["path","size","contentType","updated","etag"]}}}}}},"delete":{"operationId":"protectedStatic.delete","summary":"Delete a protected-static object","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":1024}},"required":["path"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"deleted":{"const":true}},"required":["path","deleted"]}}}}}}},"/protected-static/objects/content":{"get":{"operationId":"protectedStatic.getContent","summary":"Download a protected-static object's content","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":1024},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/threads":{"post":{"operationId":"threads.create","summary":"Create a thread","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"accountId":{"type":"string"},"secondaryId":{"type":"string"}},"required":["prompt"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"thread":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"accountId":{"anyOf":[{"type":"string"},{"type":"null"}]},"secondaryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"published":{"type":"boolean"},"deleted":{"type":"boolean"},"threadUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["id","title","createdAt","updatedAt","accountId","secondaryId","published","deleted","threadUrl"]},"messageId":{"type":"string"},"responseMessageId":{"type":"string"}},"required":["thread"]}}}}}},"get":{"operationId":"threads.list","summary":"List threads","parameters":[{"name":"cursor","in":"query","schema":{"type":"string"},"allowEmptyValue":true,"allowReserved":true},{"name":"limit","in":"query","schema":{"default":25,"type":"integer","minimum":1,"maximum":100},"allowEmptyValue":true,"allowReserved":true},{"name":"accountId","in":"query","schema":{"type":"string"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"threads":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"accountId":{"anyOf":[{"type":"string"},{"type":"null"}]},"secondaryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"published":{"type":"boolean"},"deleted":{"type":"boolean"},"threadUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["id","title","createdAt","updatedAt","accountId","secondaryId","published","deleted","threadUrl"]}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"truncated":{"type":"boolean"}},"required":["threads","nextCursor","truncated"]}}}}}}},"/threads/{id}":{"get":{"operationId":"threads.get","summary":"Get a thread","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"thread":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"accountId":{"anyOf":[{"type":"string"},{"type":"null"}]},"secondaryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"published":{"type":"boolean"},"deleted":{"type":"boolean"},"threadUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["id","title","createdAt","updatedAt","accountId","secondaryId","published","deleted","threadUrl"]},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"threadId":{"type":"string"},"role":{"enum":["assistant","user"],"type":"string"},"content":{"type":"string"},"status":{"anyOf":[{"enum":["in_progress","corroborating","completed","failed","cancelled"],"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"steps":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"}},"required":["description"]}},{"type":"null"}]},"sources":{"anyOf":[{"type":"array","items":{"type":"object","additionalProperties":{}}},{"type":"null"}]},"attachments":{"anyOf":[{"type":"array","items":{"type":"object","additionalProperties":{}}},{"type":"null"}]},"model":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","threadId","role","content","status","createdAt","completedAt","steps","sources","attachments","model"]}},"status":{"type":"object","properties":{"state":{"enum":["idle","in_progress","error"],"type":"string"},"activeMessageId":{"anyOf":[{"type":"string"},{"type":"null"}]},"latestUpdate":{"anyOf":[{"type":"string"},{"type":"null"}]},"stepCount":{"type":"integer","minimum":0}},"required":["state","activeMessageId","latestUpdate","stepCount"]}},"required":["thread","messages","status"]}}}}}},"patch":{"operationId":"threads.update","summary":"Update thread","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1}},"required":["title"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"thread":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"accountId":{"anyOf":[{"type":"string"},{"type":"null"}]},"secondaryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"published":{"type":"boolean"},"deleted":{"type":"boolean"},"threadUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["id","title","createdAt","updatedAt","accountId","secondaryId","published","deleted","threadUrl"]}},"required":["thread"]}}}}}},"delete":{"operationId":"threads.delete","summary":"Delete thread","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"deleted":{"const":true}},"required":["id","deleted"]}}}}}}},"/internal/feedback":{"get":{"operationId":"internal.feedback.list","summary":"List mcp_feedback submissions","parameters":[{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"allowEmptyValue":true,"allowReserved":true},{"name":"cursor","in":"query","schema":{"type":"string"},"allowEmptyValue":true,"allowReserved":true},{"name":"disposition","in":"query","schema":{"default":"pending","enum":["pending","promoted","dismissed"],"type":"string"},"allowEmptyValue":true,"allowReserved":true},{"name":"limit","in":"query","schema":{"default":500,"type":"integer","minimum":1,"maximum":1000},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"feedback":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"kind":{"enum":["bug","feature_request","data_issue","other"],"type":"string"},"severity":{"anyOf":[{"enum":["low","medium","high"],"type":"string"},{"type":"null"}]},"source":{"enum":["user","agent"],"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"orgId":{"type":"string"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"disposition":{"enum":["pending","promoted","dismissed"],"type":"string"},"linearIssueIdentifier":{"anyOf":[{"type":"string"},{"type":"null"}]},"linearIssueUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","createdAt","kind","severity","source","title","description","orgId","userId","disposition","linearIssueIdentifier","linearIssueUrl"]}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["feedback","nextCursor"]}}}}}}},"/internal/feedback/promote":{"post":{"operationId":"internal.feedback.promote","summary":"Promote mcp_feedback submissions to one Linear issue","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rowIds":{"type":"array","items":{"type":"string"},"minItems":1},"title":{"type":"string","minLength":1,"maxLength":500},"description":{"type":"string","minLength":1,"maxLength":50000},"note":{"type":"string","minLength":1},"projectId":{"type":"string","format":"uuid"}},"required":["rowIds","title","description"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"promoted":{"type":"array","items":{"type":"string"}},"skipped":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"disposition":{"enum":["promoted","dismissed"],"type":"string"}},"required":["id","disposition"]}},"notFound":{"type":"array","items":{"type":"string"}},"issue":{"anyOf":[{"type":"object","properties":{"identifier":{"type":"string"},"url":{"type":"string"}},"required":["identifier","url"]},{"type":"null"}]}},"required":["promoted","skipped","notFound","issue"]}}}}}}},"/internal/feedback/dismiss":{"post":{"operationId":"internal.feedback.dismiss","summary":"Dismiss mcp_feedback submissions","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rowIds":{"type":"array","items":{"type":"string"},"minItems":1},"note":{"type":"string","minLength":1}},"required":["rowIds","note"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"dismissed":{"type":"array","items":{"type":"string"}},"skipped":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"disposition":{"enum":["promoted","dismissed"],"type":"string"}},"required":["id","disposition"]}},"notFound":{"type":"array","items":{"type":"string"}}},"required":["dismissed","skipped","notFound"]}}}}}}}}}