{"openapi":"3.1.0","info":{"title":"Tease API","version":"1"},"tags":[{"name":"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}/automated-messages":{"get":{"summary":"Get Automated Messages","description":"Available on Fansly. A read of what Tease stored for the account; not read live: `fresh=true` answers 409 `live_read_not_available`.","operationId":"GET__v1_accounts__id__automated_messages_v1_accounts__account_id__automated_messages_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":[],"tags":["Messages"]}},"/v1/accounts/{account_id}/messages-by-ids":{"get":{"summary":"Get Messages by Ids","description":"Available on Fansly. A read of what Tease stored for the account; not read live: `fresh=true` answers 409 `live_read_not_available`.","operationId":"GET__v1_accounts__id__messages_by_ids_v1_accounts__account_id__messages_by_ids_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":[],"tags":["Messages"]}},"/v1/accounts/{account_id}/unread-messages":{"get":{"summary":"List Unread Messages","description":"Available on Fansly. A read of what Tease stored for the account; not read live: `fresh=true` answers 409 `live_read_not_available`.","operationId":"GET__v1_accounts__id__unread_messages_v1_accounts__account_id__unread_messages_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":[],"tags":["Messages"]}},"/v1/accounts/{account_id}/giphy/trending":{"get":{"summary":"List Trending GIFs","description":"Available on OnlyFans. A read of what Tease stored for the account; not read live: `fresh=true` answers 409 `live_read_not_available`.","operationId":"GET__v1_accounts__id__giphy_trending_v1_accounts__account_id__giphy_trending_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":[],"tags":["Messages"]}},"/v1/accounts/{account_id}/chats/{chat_id}/messages":{"post":{"summary":"Send Chat 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__chats__chat_id__messages_v1_accounts__account_id__chats__chat_id__messages_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":["Messages"]}},"/v1/accounts/{account_id}/chats/{chat_id}/messages/ack":{"post":{"summary":"Acknowledge Chat Messages","description":"Available on Fansly. Answers 202 with a write id; follow it with `GET /v1/writes/{write_id}`. The key needs **Allow changes**.","operationId":"POST__v1_accounts__id__chats__chat_id__messages_ack_v1_accounts__account_id__chats__chat_id__messages_ack_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":["Messages"]}},"/v1/accounts/{account_id}/chats/{chat_id}/messages/pinned":{"get":{"summary":"List Pinned Chat Messages","description":"Available on OnlyFans. A read of what Tease stored for the account; not read live: `fresh=true` answers 409 `live_read_not_available`.","operationId":"GET__v1_accounts__id__chats__chat_id__messages_pinned_v1_accounts__account_id__chats__chat_id__messages_pinned_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":[],"tags":["Messages"]}},"/v1/accounts/{account_id}/chats/{chat_id}/messages/search":{"get":{"summary":"Search Chat Messages","description":"Available on OnlyFans. A read of what Tease stored for the account; not read live: `fresh=true` answers 409 `live_read_not_available`.","operationId":"GET__v1_accounts__id__chats__chat_id__messages_search_v1_accounts__account_id__chats__chat_id__messages_search_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":[],"tags":["Messages"]}},"/v1/accounts/{account_id}/chats/{chat_id}/messages/{message_id}":{"delete":{"summary":"Delete Chat 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__chats__chat_id__messages__message_id__v1_accounts__account_id__chats__chat_id__messages__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":["Messages"]}},"/v1/accounts/{account_id}/chats/{chat_id}/messages/{message_id}/like":{"post":{"summary":"Like Message","description":"Available on 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__chats__chat_id__messages__message_id__like_v1_accounts__account_id__chats__chat_id__messages__message_id__like_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":["Messages"]}},"/v1/accounts/{account_id}/chats/{chat_id}/messages/{message_id}/pin":{"post":{"summary":"Pin Message","description":"Available on 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__chats__chat_id__messages__message_id__pin_v1_accounts__account_id__chats__chat_id__messages__message_id__pin_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":["Messages"]}},"/v1/accounts/{account_id}/chats/{chat_id}/messages/{message_id}/reactions":{"post":{"summary":"Add Reaction to Chat Message","description":"Available on Fansly. Answers 202 with a write id; follow it with `GET /v1/writes/{write_id}`. The key needs **Allow changes**.","operationId":"POST__v1_accounts__id__chats__chat_id__messages__message_id__reactions_v1_accounts__account_id__chats__chat_id__messages__message_id__reactions_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":["Messages"]},"delete":{"summary":"Remove Reaction from Chat Message","description":"Available on Fansly. Answers 202 with a write id; follow it with `GET /v1/writes/{write_id}`. The key needs **Allow changes**.","operationId":"DELETE__v1_accounts__id__chats__chat_id__messages__message_id__reactions_v1_accounts__account_id__chats__chat_id__messages__message_id__reactions_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":["Messages"]}},"/v1/accounts/{account_id}/chats/{chat_id}/messages/{message_id}/unlike":{"delete":{"summary":"Unlike Message","description":"Available on 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__chats__chat_id__messages__message_id__unlike_v1_accounts__account_id__chats__chat_id__messages__message_id__unlike_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":["Messages"]}},"/v1/accounts/{account_id}/chats/{chat_id}/messages/{message_id}/unpin":{"delete":{"summary":"Unpin Message","description":"Available on 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__chats__chat_id__messages__message_id__unpin_v1_accounts__account_id__chats__chat_id__messages__message_id__unpin_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":["Messages"]}}}}
