{"openapi":"3.1.0","info":{"title":"Tease API","version":"1"},"tags":[{"name":"Banned words"}],"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"},"BannedWords":{"properties":{"words":{"items":{"type":"string"},"type":"array","maxItems":1000,"title":"Words"}},"type":"object","required":["words"],"title":"BannedWords","description":"A list of words or phrases for the account's own banned list."}}},"paths":{"/v1/banned-words":{"get":{"summary":"List banned words","description":"Our dictionary of words OnlyFans blocks (``block``) or penalizes (``flag``).","operationId":"list_dictionary_v1_banned_words_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Category"}},{"name":"risk_level","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Risk Level"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Search"}},{"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"}}],"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","tags":["Banned words"]}},"/v1/accounts/{account_id}/banned-words":{"get":{"summary":"Read account banned words","description":"The words the account may not send: its own list and its organization's, merged.","operationId":"get_account_words_v1_accounts__account_id__banned_words_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"title":"Account Id"}}],"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","tags":["Banned words"]},"post":{"summary":"Add account banned words","description":"Add words to the account's own list; words already on it stay once.","operationId":"add_account_words_v1_accounts__account_id__banned_words_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BannedWords"}}}},"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":["Banned words"]},"put":{"summary":"Replace account banned words","description":"Replace the account's own list (shared by its creator's accounts); `[]` clears it.","operationId":"replace_account_words_v1_accounts__account_id__banned_words_put","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BannedWords"}}}},"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":["Banned words"]}},"/v1/accounts/{account_id}/banned-words/{word}":{"delete":{"summary":"Remove an account banned word","description":"Remove one word from the account's own list (any letter case); 404 when it is not there.","operationId":"remove_account_word_v1_accounts__account_id__banned_words__word__delete","parameters":[{"name":"word","in":"path","required":true,"schema":{"type":"string","maxLength":100,"title":"Word"}},{"name":"account_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"title":"Account Id"}}],"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":["Banned words"]}}}}
