{"openapi":"3.1.0","info":{"title":"Tease API","version":"1"},"tags":[{"name":"Mass messages"}],"servers":[{"url":"https://app.tease.club"}],"components":{"schemas":{"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/accounts/{account_id}/mass-messaging":{"get":{"summary":"List Scheduled Mass Messages","description":"Available on Fansly and OnlyFans. A read of what Tease stored for the account; `fresh=true` reads the platform page live first on of; on fansly it answers 409 `live_read_not_available`. A section whose Read is off in the account's Settings answers `fresh=true` with 409 `read_off` (`section`, `settings_url`, no `retry_after`); `GET /v1/accounts/{account_id}` lists such sections in `reads_off`.","operationId":"GET__v1_accounts__id__mass_messaging_v1_accounts__account_id__mass_messaging_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"title":"Account Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Cursor"}},{"name":"fresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Fresh"}},{"name":"wait","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":30,"minimum":0},{"type":"null"}],"title":"Wait"}}],"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":"read","x-tease-catalog":"account","x-tease-live":["of"],"tags":["Mass messages"]},"post":{"summary":"Send Mass Message","description":"Available on Fansly and OnlyFans. Answers 202 with a write id; follow it with `GET /v1/writes/{write_id}`. The key needs **Allow changes**.","operationId":"POST__v1_accounts__id__mass_messaging_v1_accounts__account_id__mass_messaging_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"title":"Account Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Cursor"}},{"name":"fresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Fresh"}},{"name":"wait","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":30,"minimum":0},{"type":"null"}],"title":"Wait"}}],"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":"platform_write","x-tease-catalog":"account","tags":["Mass messages"]}},"/v1/accounts/{account_id}/mass-messaging/{mass_message_id}":{"delete":{"summary":"Cancel Scheduled Mass Message","description":"Available on Fansly and OnlyFans. Answers 202 with a write id; follow it with `GET /v1/writes/{write_id}`. The key needs **Allow changes**.","operationId":"DELETE__v1_accounts__id__mass_messaging__mass_message_id__v1_accounts__account_id__mass_messaging__mass_message_id__delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"title":"Account Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Cursor"}},{"name":"fresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Fresh"}},{"name":"wait","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":30,"minimum":0},{"type":"null"}],"title":"Wait"}}],"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":"platform_write","x-tease-catalog":"account","tags":["Mass messages"]}}}}
