{"openapi":"3.0.3","info":{"title":"psh.now","description":"Secure transaction broker between local AI agents and a developer's phone.","version":"0.2.5"},"tags":[{"name":"approvals","description":"Ask the human a question"}],"paths":{"/api/v1/channels":{"post":{"parameters":[],"operationId":"postApiV1Channels","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"maxLength":120,"type":"string"},"agent":{"maxLength":120,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"maxLength":120,"type":"string"},"agent":{"maxLength":120,"type":"string"}}}},"text/plain":{"schema":{"type":"object","properties":{"name":{"maxLength":120,"type":"string"},"agent":{"maxLength":120,"type":"string"}}}}}},"responses":{"200":{}}},"get":{"operationId":"getApiV1Channels","responses":{"200":{}}}},"/api/v1/mint":{"post":{"operationId":"postApiV1Mint","responses":{"200":{}}}},"/api/v1/me/adopt":{"post":{"parameters":[],"operationId":"postApiV1MeAdopt","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["key"],"properties":{"key":{"minLength":8,"maxLength":200,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["key"],"properties":{"key":{"minLength":8,"maxLength":200,"type":"string"}}}},"text/plain":{"schema":{"type":"object","required":["key"],"properties":{"key":{"minLength":8,"maxLength":200,"type":"string"}}}}}},"responses":{"200":{}}}},"/api/v1/me/secret":{"post":{"operationId":"postApiV1MeSecret","responses":{"200":{}}}},"/api/v1/me/secret/reveal":{"post":{"operationId":"postApiV1MeSecretReveal","responses":{"200":{}}}},"/api/v1/me/rotate":{"post":{"operationId":"postApiV1MeRotate","responses":{"200":{}}}},"/api/v1/join/{token}":{"get":{"operationId":"getApiV1JoinByToken","parameters":[{"schema":{"type":"string"},"in":"path","name":"token","required":true}],"responses":{"200":{}}},"post":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":64},"in":"path","name":"token","required":true}],"operationId":"postApiV1JoinByToken","responses":{"200":{}}}},"/api/v1/me/register":{"post":{"parameters":[],"operationId":"postApiV1MeRegister","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"format":"email","maxLength":200,"type":"string"},"firstName":{"maxLength":80,"type":"string"},"lastName":{"maxLength":80,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["email"],"properties":{"email":{"format":"email","maxLength":200,"type":"string"},"firstName":{"maxLength":80,"type":"string"},"lastName":{"maxLength":80,"type":"string"}}}},"text/plain":{"schema":{"type":"object","required":["email"],"properties":{"email":{"format":"email","maxLength":200,"type":"string"},"firstName":{"maxLength":80,"type":"string"},"lastName":{"maxLength":80,"type":"string"}}}}}},"responses":{"200":{}}}},"/api/v1/me/register/verify":{"post":{"parameters":[],"operationId":"postApiV1MeRegisterVerify","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["claimId","code"],"properties":{"claimId":{"minLength":4,"maxLength":32,"type":"string"},"code":{"minLength":4,"maxLength":12,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["claimId","code"],"properties":{"claimId":{"minLength":4,"maxLength":32,"type":"string"},"code":{"minLength":4,"maxLength":12,"type":"string"}}}},"text/plain":{"schema":{"type":"object","required":["claimId","code"],"properties":{"claimId":{"minLength":4,"maxLength":32,"type":"string"},"code":{"minLength":4,"maxLength":12,"type":"string"}}}}}},"responses":{"200":{}}}},"/api/v1/devices/pairing":{"post":{"operationId":"postApiV1DevicesPairing","responses":{"200":{}}}},"/api/v1/qr":{"get":{"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":2048},"in":"query","name":"data","required":true}],"operationId":"getApiV1Qr","responses":{"200":{}}}},"/api/v1/pairing/{token}":{"get":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"token","required":true}],"operationId":"getApiV1PairingByToken","responses":{"200":{}}}},"/api/v1/pairing/{token}/claim":{"post":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"token","required":true}],"operationId":"postApiV1PairingByTokenClaim","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"maxLength":120,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"maxLength":120,"type":"string"}}}},"text/plain":{"schema":{"type":"object","properties":{"name":{"maxLength":120,"type":"string"}}}}}},"responses":{"200":{}}}},"/api/v1/me":{"get":{"operationId":"getApiV1Me","responses":{"200":{}}}},"/api/v1/me/tokens/free":{"post":{"operationId":"postApiV1MeTokensFree","responses":{"200":{}}}},"/api/v1/health":{"get":{"operationId":"getApiV1Health","responses":{"200":{}}}},"/api/v1/me/tokens":{"post":{"parameters":[],"operationId":"postApiV1MeTokens","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requests":{"minimum":1,"maximum":10000000,"type":"number"},"companyName":{"maxLength":200,"type":"string"},"vatNumber":{"maxLength":40,"type":"string"},"country":{"maxLength":80,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"requests":{"minimum":1,"maximum":10000000,"type":"number"},"companyName":{"maxLength":200,"type":"string"},"vatNumber":{"maxLength":40,"type":"string"},"country":{"maxLength":80,"type":"string"}}}},"text/plain":{"schema":{"type":"object","properties":{"requests":{"minimum":1,"maximum":10000000,"type":"number"},"companyName":{"maxLength":200,"type":"string"},"vatNumber":{"maxLength":40,"type":"string"},"country":{"maxLength":80,"type":"string"}}}}}},"responses":{"200":{}}}},"/api/v1/me/keys":{"post":{"parameters":[],"operationId":"postApiV1MeKeys","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"maxLength":60,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"maxLength":60,"type":"string"}}}},"text/plain":{"schema":{"type":"object","properties":{"name":{"maxLength":60,"type":"string"}}}}}},"responses":{"200":{}}},"get":{"operationId":"getApiV1MeKeys","responses":{"200":{}}}},"/api/v1/me/keys/{id}":{"patch":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"patchApiV1MeKeysById","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":60,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":60,"type":"string"}}}},"text/plain":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":60,"type":"string"}}}}}},"responses":{"200":{}}},"delete":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"deleteApiV1MeKeysById","responses":{"200":{}}}},"/api/v1/me/keys/{id}/reveal":{"get":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"getApiV1MeKeysByIdReveal","responses":{"200":{}}}},"/api/auth/agent/request-code":{"post":{"parameters":[],"operationId":"postApiAuthAgentRequest-code","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"format":"email","maxLength":200,"type":"string"},"firstName":{"maxLength":80,"type":"string"},"lastName":{"maxLength":80,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["email"],"properties":{"email":{"format":"email","maxLength":200,"type":"string"},"firstName":{"maxLength":80,"type":"string"},"lastName":{"maxLength":80,"type":"string"}}}},"text/plain":{"schema":{"type":"object","required":["email"],"properties":{"email":{"format":"email","maxLength":200,"type":"string"},"firstName":{"maxLength":80,"type":"string"},"lastName":{"maxLength":80,"type":"string"}}}}}},"responses":{"200":{}}}},"/api/auth/agent/verify-code":{"post":{"parameters":[],"operationId":"postApiAuthAgentVerify-code","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email","code"],"properties":{"email":{"format":"email","maxLength":200,"type":"string"},"code":{"minLength":4,"maxLength":12,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["email","code"],"properties":{"email":{"format":"email","maxLength":200,"type":"string"},"code":{"minLength":4,"maxLength":12,"type":"string"}}}},"text/plain":{"schema":{"type":"object","required":["email","code"],"properties":{"email":{"format":"email","maxLength":200,"type":"string"},"code":{"minLength":4,"maxLength":12,"type":"string"}}}}}},"responses":{"200":{}}}},"/api/v1/auth/lookup":{"post":{"parameters":[],"operationId":"postApiV1AuthLookup","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"minLength":3,"maxLength":200,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["email"],"properties":{"email":{"minLength":3,"maxLength":200,"type":"string"}}}},"text/plain":{"schema":{"type":"object","required":["email"],"properties":{"email":{"minLength":3,"maxLength":200,"type":"string"}}}}}},"responses":{"200":{}}}},"/api/v1/auth/otp":{"post":{"parameters":[],"operationId":"postApiV1AuthOtp","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"minLength":3,"maxLength":200,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["email"],"properties":{"email":{"minLength":3,"maxLength":200,"type":"string"}}}},"text/plain":{"schema":{"type":"object","required":["email"],"properties":{"email":{"minLength":3,"maxLength":200,"type":"string"}}}}}},"responses":{"200":{}}}},"/api/v1/auth/connect":{"post":{"parameters":[],"operationId":"postApiV1AuthConnect","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userKey":{"maxLength":200,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"userKey":{"maxLength":200,"type":"string"}}}},"text/plain":{"schema":{"type":"object","properties":{"userKey":{"maxLength":200,"type":"string"}}}}}},"responses":{"200":{}}}},"/api/v1/profile":{"get":{"operationId":"getApiV1Profile","responses":{"200":{}}},"patch":{"parameters":[],"operationId":"patchApiV1Profile","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"bio":{"maxLength":160,"type":"string"},"link":{"maxLength":300,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"bio":{"maxLength":160,"type":"string"},"link":{"maxLength":300,"type":"string"}}}},"text/plain":{"schema":{"type":"object","properties":{"bio":{"maxLength":160,"type":"string"},"link":{"maxLength":300,"type":"string"}}}}}},"responses":{"200":{}}}},"/api/v1/me/invites":{"get":{"operationId":"getApiV1MeInvites","responses":{"200":{}}}},"/api/v1/me/invites/{id}/accept":{"post":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"postApiV1MeInvitesByIdAccept","responses":{"200":{}}}},"/api/v1/me/invites/{id}/decline":{"post":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"postApiV1MeInvitesByIdDecline","responses":{"200":{}}}},"/api/v1/invites/{token}":{"get":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":64},"in":"path","name":"token","required":true}],"operationId":"getApiV1InvitesByToken","responses":{"200":{}}}},"/api/v1/invites/{token}/accept":{"post":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":64},"in":"path","name":"token","required":true}],"operationId":"postApiV1InvitesByTokenAccept","responses":{"200":{}}}},"/license":{"get":{"operationId":"getLicense","responses":{"200":{}}}},"/docs":{"get":{"operationId":"getDocs","responses":{"200":{}}}},"/self-hosting":{"get":{"operationId":"getSelf-hosting","responses":{"200":{}}}},"/pricing":{"get":{"operationId":"getPricing","responses":{"200":{}}}},"/api/skill/version":{"get":{"operationId":"getApiSkillVersion","responses":{"200":{}}}},"/":{"post":{"parameters":[],"operationId":"postIndex","summary":"Request human approval (blocks)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"maxLength":200,"type":"string"},"message":{"maxLength":20000,"type":"string"},"command":{"maxLength":20000,"type":"string"},"kind":{"maxLength":32,"type":"string"},"cwd":{"maxLength":1024,"type":"string"},"agent":{"maxLength":120,"type":"string"},"session":{"maxLength":32,"type":"string"},"sessionName":{"maxLength":120,"type":"string"},"connection":{"maxLength":32,"type":"string"},"channel":{"maxLength":32,"type":"string"},"channelName":{"maxLength":120,"type":"string"},"connectionName":{"maxLength":120,"type":"string"},"route":{"type":"object","required":["summary","options"],"properties":{"summary":{"maxLength":300,"type":"string"},"rationale":{"maxLength":1000,"type":"string"},"options":{"minItems":2,"maxItems":12,"type":"array","items":{"type":"object","required":["id","label"],"properties":{"id":{"maxLength":64,"type":"string"},"label":{"maxLength":200,"type":"string"},"detail":{"maxLength":500,"type":"string"},"recommended":{"type":"boolean"},"asks":{"type":"array","items":{"type":"object","required":["question","answer"],"properties":{"question":{"maxLength":300,"type":"string"},"answer":{"maxLength":300,"type":"string"}}}}}}}}},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"timeoutMs":{"minimum":1000,"maximum":900000,"type":"number"},"wait":{"type":"boolean"},"expiresInMs":{"minimum":1000,"maximum":86400000,"type":"number"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","properties":{"title":{"maxLength":200,"type":"string"},"message":{"maxLength":20000,"type":"string"},"command":{"maxLength":20000,"type":"string"},"kind":{"maxLength":32,"type":"string"},"cwd":{"maxLength":1024,"type":"string"},"agent":{"maxLength":120,"type":"string"},"session":{"maxLength":32,"type":"string"},"sessionName":{"maxLength":120,"type":"string"},"connection":{"maxLength":32,"type":"string"},"channel":{"maxLength":32,"type":"string"},"channelName":{"maxLength":120,"type":"string"},"connectionName":{"maxLength":120,"type":"string"},"route":{"type":"object","required":["summary","options"],"properties":{"summary":{"maxLength":300,"type":"string"},"rationale":{"maxLength":1000,"type":"string"},"options":{"minItems":2,"maxItems":12,"type":"array","items":{"type":"object","required":["id","label"],"properties":{"id":{"maxLength":64,"type":"string"},"label":{"maxLength":200,"type":"string"},"detail":{"maxLength":500,"type":"string"},"recommended":{"type":"boolean"},"asks":{"type":"array","items":{"type":"object","required":["question","answer"],"properties":{"question":{"maxLength":300,"type":"string"},"answer":{"maxLength":300,"type":"string"}}}}}}}}},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"timeoutMs":{"minimum":1000,"maximum":900000,"type":"number"},"wait":{"type":"boolean"},"expiresInMs":{"minimum":1000,"maximum":86400000,"type":"number"}},"additionalProperties":false}},"text/plain":{"schema":{"type":"object","properties":{"title":{"maxLength":200,"type":"string"},"message":{"maxLength":20000,"type":"string"},"command":{"maxLength":20000,"type":"string"},"kind":{"maxLength":32,"type":"string"},"cwd":{"maxLength":1024,"type":"string"},"agent":{"maxLength":120,"type":"string"},"session":{"maxLength":32,"type":"string"},"sessionName":{"maxLength":120,"type":"string"},"connection":{"maxLength":32,"type":"string"},"channel":{"maxLength":32,"type":"string"},"channelName":{"maxLength":120,"type":"string"},"connectionName":{"maxLength":120,"type":"string"},"route":{"type":"object","required":["summary","options"],"properties":{"summary":{"maxLength":300,"type":"string"},"rationale":{"maxLength":1000,"type":"string"},"options":{"minItems":2,"maxItems":12,"type":"array","items":{"type":"object","required":["id","label"],"properties":{"id":{"maxLength":64,"type":"string"},"label":{"maxLength":200,"type":"string"},"detail":{"maxLength":500,"type":"string"},"recommended":{"type":"boolean"},"asks":{"type":"array","items":{"type":"object","required":["question","answer"],"properties":{"question":{"maxLength":300,"type":"string"},"answer":{"maxLength":300,"type":"string"}}}}}}}}},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"timeoutMs":{"minimum":1000,"maximum":900000,"type":"number"},"wait":{"type":"boolean"},"expiresInMs":{"minimum":1000,"maximum":86400000,"type":"number"}},"additionalProperties":false}}}},"responses":{"200":{}}},"get":{"operationId":"getIndex","responses":{"200":{}}}},"/api/v1/approvals":{"post":{"parameters":[],"operationId":"postApiV1Approvals","summary":"Create an approval request (blocking or async)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"maxLength":200,"type":"string"},"message":{"maxLength":20000,"type":"string"},"command":{"maxLength":20000,"type":"string"},"kind":{"maxLength":32,"type":"string"},"cwd":{"maxLength":1024,"type":"string"},"agent":{"maxLength":120,"type":"string"},"session":{"maxLength":32,"type":"string"},"sessionName":{"maxLength":120,"type":"string"},"connection":{"maxLength":32,"type":"string"},"channel":{"maxLength":32,"type":"string"},"channelName":{"maxLength":120,"type":"string"},"connectionName":{"maxLength":120,"type":"string"},"route":{"type":"object","required":["summary","options"],"properties":{"summary":{"maxLength":300,"type":"string"},"rationale":{"maxLength":1000,"type":"string"},"options":{"minItems":2,"maxItems":12,"type":"array","items":{"type":"object","required":["id","label"],"properties":{"id":{"maxLength":64,"type":"string"},"label":{"maxLength":200,"type":"string"},"detail":{"maxLength":500,"type":"string"},"recommended":{"type":"boolean"},"asks":{"type":"array","items":{"type":"object","required":["question","answer"],"properties":{"question":{"maxLength":300,"type":"string"},"answer":{"maxLength":300,"type":"string"}}}}}}}}},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"timeoutMs":{"minimum":1000,"maximum":900000,"type":"number"},"wait":{"type":"boolean"},"expiresInMs":{"minimum":1000,"maximum":86400000,"type":"number"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","properties":{"title":{"maxLength":200,"type":"string"},"message":{"maxLength":20000,"type":"string"},"command":{"maxLength":20000,"type":"string"},"kind":{"maxLength":32,"type":"string"},"cwd":{"maxLength":1024,"type":"string"},"agent":{"maxLength":120,"type":"string"},"session":{"maxLength":32,"type":"string"},"sessionName":{"maxLength":120,"type":"string"},"connection":{"maxLength":32,"type":"string"},"channel":{"maxLength":32,"type":"string"},"channelName":{"maxLength":120,"type":"string"},"connectionName":{"maxLength":120,"type":"string"},"route":{"type":"object","required":["summary","options"],"properties":{"summary":{"maxLength":300,"type":"string"},"rationale":{"maxLength":1000,"type":"string"},"options":{"minItems":2,"maxItems":12,"type":"array","items":{"type":"object","required":["id","label"],"properties":{"id":{"maxLength":64,"type":"string"},"label":{"maxLength":200,"type":"string"},"detail":{"maxLength":500,"type":"string"},"recommended":{"type":"boolean"},"asks":{"type":"array","items":{"type":"object","required":["question","answer"],"properties":{"question":{"maxLength":300,"type":"string"},"answer":{"maxLength":300,"type":"string"}}}}}}}}},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"timeoutMs":{"minimum":1000,"maximum":900000,"type":"number"},"wait":{"type":"boolean"},"expiresInMs":{"minimum":1000,"maximum":86400000,"type":"number"}},"additionalProperties":false}},"text/plain":{"schema":{"type":"object","properties":{"title":{"maxLength":200,"type":"string"},"message":{"maxLength":20000,"type":"string"},"command":{"maxLength":20000,"type":"string"},"kind":{"maxLength":32,"type":"string"},"cwd":{"maxLength":1024,"type":"string"},"agent":{"maxLength":120,"type":"string"},"session":{"maxLength":32,"type":"string"},"sessionName":{"maxLength":120,"type":"string"},"connection":{"maxLength":32,"type":"string"},"channel":{"maxLength":32,"type":"string"},"channelName":{"maxLength":120,"type":"string"},"connectionName":{"maxLength":120,"type":"string"},"route":{"type":"object","required":["summary","options"],"properties":{"summary":{"maxLength":300,"type":"string"},"rationale":{"maxLength":1000,"type":"string"},"options":{"minItems":2,"maxItems":12,"type":"array","items":{"type":"object","required":["id","label"],"properties":{"id":{"maxLength":64,"type":"string"},"label":{"maxLength":200,"type":"string"},"detail":{"maxLength":500,"type":"string"},"recommended":{"type":"boolean"},"asks":{"type":"array","items":{"type":"object","required":["question","answer"],"properties":{"question":{"maxLength":300,"type":"string"},"answer":{"maxLength":300,"type":"string"}}}}}}}}},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"timeoutMs":{"minimum":1000,"maximum":900000,"type":"number"},"wait":{"type":"boolean"},"expiresInMs":{"minimum":1000,"maximum":86400000,"type":"number"}},"additionalProperties":false}}}},"responses":{"200":{}}},"get":{"parameters":[{"schema":{"anyOf":[{"const":"pending","type":"string"},{"const":"approved","type":"string"},{"const":"denied","type":"string"},{"const":"expired","type":"string"}]},"in":"query","name":"status","required":false},{"schema":{"type":"number","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"operationId":"getApiV1Approvals","responses":{"200":{}}}},"/api/v1/hook":{"post":{"parameters":[],"operationId":"postApiV1Hook","summary":"Legacy alias of /api/v1/approvals","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"maxLength":200,"type":"string"},"message":{"maxLength":20000,"type":"string"},"command":{"maxLength":20000,"type":"string"},"kind":{"maxLength":32,"type":"string"},"cwd":{"maxLength":1024,"type":"string"},"agent":{"maxLength":120,"type":"string"},"session":{"maxLength":32,"type":"string"},"sessionName":{"maxLength":120,"type":"string"},"connection":{"maxLength":32,"type":"string"},"channel":{"maxLength":32,"type":"string"},"channelName":{"maxLength":120,"type":"string"},"connectionName":{"maxLength":120,"type":"string"},"route":{"type":"object","required":["summary","options"],"properties":{"summary":{"maxLength":300,"type":"string"},"rationale":{"maxLength":1000,"type":"string"},"options":{"minItems":2,"maxItems":12,"type":"array","items":{"type":"object","required":["id","label"],"properties":{"id":{"maxLength":64,"type":"string"},"label":{"maxLength":200,"type":"string"},"detail":{"maxLength":500,"type":"string"},"recommended":{"type":"boolean"},"asks":{"type":"array","items":{"type":"object","required":["question","answer"],"properties":{"question":{"maxLength":300,"type":"string"},"answer":{"maxLength":300,"type":"string"}}}}}}}}},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"timeoutMs":{"minimum":1000,"maximum":900000,"type":"number"},"wait":{"type":"boolean"},"expiresInMs":{"minimum":1000,"maximum":86400000,"type":"number"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","properties":{"title":{"maxLength":200,"type":"string"},"message":{"maxLength":20000,"type":"string"},"command":{"maxLength":20000,"type":"string"},"kind":{"maxLength":32,"type":"string"},"cwd":{"maxLength":1024,"type":"string"},"agent":{"maxLength":120,"type":"string"},"session":{"maxLength":32,"type":"string"},"sessionName":{"maxLength":120,"type":"string"},"connection":{"maxLength":32,"type":"string"},"channel":{"maxLength":32,"type":"string"},"channelName":{"maxLength":120,"type":"string"},"connectionName":{"maxLength":120,"type":"string"},"route":{"type":"object","required":["summary","options"],"properties":{"summary":{"maxLength":300,"type":"string"},"rationale":{"maxLength":1000,"type":"string"},"options":{"minItems":2,"maxItems":12,"type":"array","items":{"type":"object","required":["id","label"],"properties":{"id":{"maxLength":64,"type":"string"},"label":{"maxLength":200,"type":"string"},"detail":{"maxLength":500,"type":"string"},"recommended":{"type":"boolean"},"asks":{"type":"array","items":{"type":"object","required":["question","answer"],"properties":{"question":{"maxLength":300,"type":"string"},"answer":{"maxLength":300,"type":"string"}}}}}}}}},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"timeoutMs":{"minimum":1000,"maximum":900000,"type":"number"},"wait":{"type":"boolean"},"expiresInMs":{"minimum":1000,"maximum":86400000,"type":"number"}},"additionalProperties":false}},"text/plain":{"schema":{"type":"object","properties":{"title":{"maxLength":200,"type":"string"},"message":{"maxLength":20000,"type":"string"},"command":{"maxLength":20000,"type":"string"},"kind":{"maxLength":32,"type":"string"},"cwd":{"maxLength":1024,"type":"string"},"agent":{"maxLength":120,"type":"string"},"session":{"maxLength":32,"type":"string"},"sessionName":{"maxLength":120,"type":"string"},"connection":{"maxLength":32,"type":"string"},"channel":{"maxLength":32,"type":"string"},"channelName":{"maxLength":120,"type":"string"},"connectionName":{"maxLength":120,"type":"string"},"route":{"type":"object","required":["summary","options"],"properties":{"summary":{"maxLength":300,"type":"string"},"rationale":{"maxLength":1000,"type":"string"},"options":{"minItems":2,"maxItems":12,"type":"array","items":{"type":"object","required":["id","label"],"properties":{"id":{"maxLength":64,"type":"string"},"label":{"maxLength":200,"type":"string"},"detail":{"maxLength":500,"type":"string"},"recommended":{"type":"boolean"},"asks":{"type":"array","items":{"type":"object","required":["question","answer"],"properties":{"question":{"maxLength":300,"type":"string"},"answer":{"maxLength":300,"type":"string"}}}}}}}}},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"timeoutMs":{"minimum":1000,"maximum":900000,"type":"number"},"wait":{"type":"boolean"},"expiresInMs":{"minimum":1000,"maximum":86400000,"type":"number"}},"additionalProperties":false}}}},"responses":{"200":{}}}},"/mcp":{"get":{"operationId":"getMcp","responses":{"200":{}}},"delete":{"operationId":"deleteMcp","responses":{"200":{}}},"post":{"operationId":"postMcp","summary":"MCP endpoint (streamable HTTP, JSON responses)","responses":{"200":{}}}},"/api/v1/approvals/{id}":{"get":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true},{"schema":{"type":"number","minimum":0,"maximum":55},"in":"query","name":"wait","required":false}],"operationId":"getApiV1ApprovalsById","responses":{"200":{}}}},"/api/v1/approvals/{id}/cancel":{"post":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"postApiV1ApprovalsByIdCancel","responses":{"200":{}}}},"/api/v1/approvals/{id}/decision":{"post":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"postApiV1ApprovalsByIdDecision","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["approved"],"properties":{"approved":{"type":"boolean"},"reason":{"maxLength":500,"type":"string"},"decision":{"maxLength":64,"type":"string"},"answer":{"maxLength":2000,"type":"string"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","required":["approved"],"properties":{"approved":{"type":"boolean"},"reason":{"maxLength":500,"type":"string"},"decision":{"maxLength":64,"type":"string"},"answer":{"maxLength":2000,"type":"string"}},"additionalProperties":false}},"text/plain":{"schema":{"type":"object","required":["approved"],"properties":{"approved":{"type":"boolean"},"reason":{"maxLength":500,"type":"string"},"decision":{"maxLength":64,"type":"string"},"answer":{"maxLength":2000,"type":"string"}},"additionalProperties":false}}}},"responses":{"200":{}}}},"/api/v1/test":{"post":{"operationId":"postApiV1Test","responses":{"200":{}}}},"/api/v1/channels/{id}":{"get":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"getApiV1ChannelsById","responses":{"200":{}}},"delete":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"deleteApiV1ChannelsById","responses":{"200":{}}},"patch":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"patchApiV1ChannelsById","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"maxLength":120,"type":"string"},"description":{"maxLength":400,"type":"string"},"slug":{"maxLength":40,"type":"string"},"color":{"maxLength":20,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"maxLength":120,"type":"string"},"description":{"maxLength":400,"type":"string"},"slug":{"maxLength":40,"type":"string"},"color":{"maxLength":20,"type":"string"}}}},"text/plain":{"schema":{"type":"object","properties":{"name":{"maxLength":120,"type":"string"},"description":{"maxLength":400,"type":"string"},"slug":{"maxLength":40,"type":"string"},"color":{"maxLength":20,"type":"string"}}}}}},"responses":{"200":{}}}},"/api/v1/channels/{id}/invites":{"post":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"postApiV1ChannelsByIdInvites","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"format":"email","maxLength":200,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["email"],"properties":{"email":{"format":"email","maxLength":200,"type":"string"}}}},"text/plain":{"schema":{"type":"object","required":["email"],"properties":{"email":{"format":"email","maxLength":200,"type":"string"}}}}}},"responses":{"200":{}}},"get":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"getApiV1ChannelsByIdInvites","responses":{"200":{}}}},"/api/v1/channels/{id}/invite-link":{"get":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"getApiV1ChannelsByIdInvite-link","responses":{"200":{}}},"post":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"postApiV1ChannelsByIdInvite-link","responses":{"200":{}}},"delete":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"deleteApiV1ChannelsByIdInvite-link","responses":{"200":{}}}},"/api/v1/channels/{id}/invites/{inviteId}/revoke":{"post":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"inviteId","required":true}],"operationId":"postApiV1ChannelsByIdInvitesByInviteIdRevoke","responses":{"200":{}}}},"/api/v1/channels/{id}/invites/{accountId}":{"delete":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"accountId","required":true}],"operationId":"deleteApiV1ChannelsByIdInvitesByAccountId","responses":{"200":{}}}},"/api/v1/channels/{id}/archive":{"post":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"postApiV1ChannelsByIdArchive","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"archived":{"type":"boolean"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"archived":{"type":"boolean"}}}},"text/plain":{"schema":{"type":"object","properties":{"archived":{"type":"boolean"}}}}}},"responses":{"200":{}}}},"/api/v1/channels/{id}/keys":{"get":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"getApiV1ChannelsByIdKeys","responses":{"200":{}}},"post":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"postApiV1ChannelsByIdKeys","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"maxLength":60,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"maxLength":60,"type":"string"}}}},"text/plain":{"schema":{"type":"object","properties":{"name":{"maxLength":60,"type":"string"}}}}}},"responses":{"200":{}}}},"/api/v1/channels/{id}/keys/{keyId}":{"patch":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"keyId","required":true}],"operationId":"patchApiV1ChannelsByIdKeysByKeyId","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":60,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":60,"type":"string"}}}},"text/plain":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":60,"type":"string"}}}}}},"responses":{"200":{}}},"delete":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"keyId","required":true}],"operationId":"deleteApiV1ChannelsByIdKeysByKeyId","responses":{"200":{}}}},"/api/v1/channels/{id}/join-link":{"post":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"postApiV1ChannelsByIdJoin-link","responses":{"200":{}}}},"/api/v1/channels/{id}/members":{"get":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"getApiV1ChannelsByIdMembers","responses":{"200":{}}}},"/api/v1/devices":{"get":{"operationId":"getApiV1Devices","responses":{"200":{}}}},"/api/v1/devices/{id}":{"delete":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"deleteApiV1DevicesById","responses":{"200":{}}},"patch":{"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"id","required":true}],"operationId":"patchApiV1DevicesById","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":60,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":60,"type":"string"}}}},"text/plain":{"schema":{"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":60,"type":"string"}}}}}},"responses":{"200":{}}}},"/api/v1/push/public-key":{"get":{"operationId":"getApiV1PushPublic-key","responses":{"200":{}}}},"/api/v1/push/subscribe":{"post":{"parameters":[],"operationId":"postApiV1PushSubscribe","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["subscription"],"properties":{"subscription":{"type":"object","required":["endpoint","keys"],"properties":{"endpoint":{"type":"string"},"keys":{"type":"object","required":["p256dh","auth"],"properties":{"p256dh":{"type":"string"},"auth":{"type":"string"}}}}}}}},"multipart/form-data":{"schema":{"type":"object","required":["subscription"],"properties":{"subscription":{"type":"object","required":["endpoint","keys"],"properties":{"endpoint":{"type":"string"},"keys":{"type":"object","required":["p256dh","auth"],"properties":{"p256dh":{"type":"string"},"auth":{"type":"string"}}}}}}}},"text/plain":{"schema":{"type":"object","required":["subscription"],"properties":{"subscription":{"type":"object","required":["endpoint","keys"],"properties":{"endpoint":{"type":"string"},"keys":{"type":"object","required":["p256dh","auth"],"properties":{"p256dh":{"type":"string"},"auth":{"type":"string"}}}}}}}}}},"responses":{"200":{}}}},"/api/v1/push/unsubscribe":{"post":{"parameters":[],"operationId":"postApiV1PushUnsubscribe","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["endpoint"],"properties":{"endpoint":{"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["endpoint"],"properties":{"endpoint":{"type":"string"}}}},"text/plain":{"schema":{"type":"object","required":["endpoint"],"properties":{"endpoint":{"type":"string"}}}}}},"responses":{"200":{}}}},"/api/v1/push/status":{"get":{"operationId":"getApiV1PushStatus","responses":{"200":{}}}},"/api/v1/push/test":{"post":{"operationId":"postApiV1PushTest","responses":{"200":{}}}},"/api/v1/billing/status":{"get":{"operationId":"getApiV1BillingStatus","responses":{"200":{}}}},"/api/v1/billing/checkout":{"post":{"parameters":[],"operationId":"postApiV1BillingCheckout","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requests":{"type":"number"},"email":{"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"requests":{"type":"number"},"email":{"type":"string"}}}},"text/plain":{"schema":{"type":"object","properties":{"requests":{"type":"number"},"email":{"type":"string"}}}}}},"responses":{"200":{}}}},"/api/v1/billing/webhook":{"post":{"operationId":"postApiV1BillingWebhook","responses":{"200":{}}}},"/website":{"get":{"operationId":"getWebsite","responses":{"200":{}}}},"/website/":{"get":{"operationId":"getWebsite","responses":{"200":{}}}},"/app":{"get":{"operationId":"getApp","responses":{"200":{}}}},"/login":{"get":{"operationId":"getLogin","responses":{"200":{}}}},"/channels":{"get":{"operationId":"getChannels","responses":{"200":{}}}},"/devices":{"get":{"operationId":"getDevices","responses":{"200":{}}}},"/connect":{"get":{"operationId":"getConnect","responses":{"200":{}}}},"/teams":{"get":{"operationId":"getTeams","responses":{"200":{}}}},"/agents":{"get":{"operationId":"getAgents","responses":{"200":{}}}},"/agents/{slug}":{"get":{"operationId":"getAgentsBySlug","parameters":[{"schema":{"type":"string"},"in":"path","name":"slug","required":true}],"responses":{"200":{}}}},"/alternatives":{"get":{"operationId":"getAlternatives","responses":{"200":{}}}},"/alternatives/{slug}":{"get":{"operationId":"getAlternativesBySlug","parameters":[{"schema":{"type":"string"},"in":"path","name":"slug","required":true}],"responses":{"200":{}}}},"/listed-on":{"get":{"operationId":"getListed-on","responses":{"200":{}}}},"/privacy":{"get":{"operationId":"getPrivacy","responses":{"200":{}}}},"/terms":{"get":{"operationId":"getTerms","responses":{"200":{}}}},"/claim":{"get":{"operationId":"getClaim","responses":{"200":{}}}},"/pair/{token}":{"get":{"operationId":"getPairByToken","parameters":[{"schema":{"type":"string"},"in":"path","name":"token","required":true}],"responses":{"200":{}}}},"/c/{idOrSlug}":{"get":{"operationId":"getCByIdOrSlug","parameters":[{"schema":{"type":"string"},"in":"path","name":"idOrSlug","required":true}],"responses":{"200":{}}}},"/invite/{token}":{"get":{"operationId":"getInviteByToken","parameters":[{"schema":{"type":"string"},"in":"path","name":"token","required":true}],"responses":{"200":{}}}},"/j/{token}":{"get":{"operationId":"getJByToken","parameters":[{"schema":{"type":"string"},"in":"path","name":"token","required":true}],"responses":{"200":{}}}}},"components":{"schemas":{}}}