{"openapi":"3.1.0","info":{"title":"Tease API","version":"1"},"tags":[{"name":"Webhook"}],"servers":[{"url":"https://app.tease.club"}],"components":{"schemas":{"Body_put_webhook_v1_webhook_put":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"Body_put_webhook_v1_webhook_put"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/webhook":{"get":{"summary":"Read a webhook","description":"Where this key's finished writes are announced (url null: nowhere).","operationId":"get_webhook_v1_webhook_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"x-api-key-scope":"read","tags":["Webhook"]},"put":{"summary":"Put Webhook","description":"Announce this key's finished writes to an https URL; the signing secret is shown this once.","operationId":"put_webhook_v1_webhook_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_put_webhook_v1_webhook_put"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-api-key-scope":"write","tags":["Webhook"]},"delete":{"summary":"Delete a webhook","description":"Stop announcing this key's writes; calls still owed are cancelled when their turn comes.","operationId":"delete_webhook_v1_webhook_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"x-api-key-scope":"write","tags":["Webhook"]}}}}
