{"openapi":"3.1.0","info":{"title":"bucketmark","version":"0.1.0"},"paths":{"\/api\/devices":{"post":{"summary":"Add Device","description":"The iPhone app, once iOS allowed notifications: the reminder then comes as a push (remind.py, push.py).","operationId":"add_device_api_devices_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeviceIn"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/devices\/{token}":{"delete":{"summary":"Delete Device","operationId":"delete_device_api_devices__token__delete","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{64,200}$","title":"Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/me":{"get":{"summary":"Me","operationId":"me_api_me_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}}},"delete":{"summary":"Delete Me","description":"Deletes the whole family account and everything in it, in every product (App Review 5.1.1(v), PLAN \u00a71.6): every\ntable cascades from core.accounts.","operationId":"delete_me_api_me_delete","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}}},"patch":{"summary":"Patch Me","operationId":"patch_me_api_me_patch","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MePatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/usage":{"get":{"summary":"Usage","description":"The plan and what's used of each limit, for Settings; `free` and `pro` are each plan's limit. `resets_in`: seconds until the\noldest use in the window drops out. pages: an hour; api, mcp, kindle: any 24 hours.","operationId":"usage_api_usage_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}}}},"\/api\/pro\/apple":{"post":{"summary":"Pro From App Store","description":"The iOS app sends each StoreKit transaction it sees (a purchase, a renewal, a restore); Pro follows its dates.","operationId":"pro_from_app_store_api_pro_apple_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AppleIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/items":{"get":{"summary":"List Items","operationId":"list_items_api_items_get","parameters":[{"name":"view","in":"query","required":false,"schema":{"enum":["reading","read","bookmarks","all"],"type":"string","default":"reading","title":"View"}},{"name":"folder","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(none|\\d+)$"},{"type":"null"}],"title":"Folder"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}},"post":{"summary":"Save Item","operationId":"save_item_api_items_post","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SaveIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/items\/{item_id}":{"patch":{"summary":"Patch Item","operationId":"patch_item_api_items__item_id__patch","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ItemPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Item","operationId":"delete_item_api_items__item_id__delete","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/items\/{item_id}\/article":{"get":{"summary":"Item Article","description":"The item with its article body (clean HTML: a fixed set of tags, no attributes) and its highlights.\nA link saved before articles were kept, or whose page couldn't be read then, is fetched now.","operationId":"item_article_api_items__item_id__article_get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/items\/{item_id}\/highlights":{"post":{"summary":"Add Highlight","operationId":"add_highlight_api_items__item_id__highlights_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HighlightIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/items\/{item_id}\/highlights\/{highlight_id}":{"delete":{"summary":"Delete Highlight","operationId":"delete_highlight_api_items__item_id__highlights__highlight_id__delete","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"highlight_id","in":"path","required":true,"schema":{"type":"integer","title":"Highlight Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/items\/{item_id}\/epub":{"get":{"summary":"Item Epub","operationId":"item_epub_api_items__item_id__epub_get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/items\/{item_id}\/kindle":{"post":{"summary":"Item To Kindle","operationId":"item_to_kindle_api_items__item_id__kindle_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/folders":{"get":{"summary":"List Folders","operationId":"list_folders_api_folders_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}}},"post":{"summary":"Create Folder","operationId":"create_folder_api_folders_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FolderIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/folders\/{folder_id}":{"patch":{"summary":"Rename Folder","operationId":"rename_folder_api_folders__folder_id__patch","parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"integer","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FolderIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Folder","operationId":"delete_folder_api_folders__folder_id__delete","parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"integer","title":"Folder Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/folders\/{folder_id}\/share":{"post":{"summary":"Share Folder","operationId":"share_folder_api_folders__folder_id__share_post","parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"integer","title":"Folder Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}},"delete":{"summary":"Unshare Folder","operationId":"unshare_folder_api_folders__folder_id__share_delete","parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"integer","title":"Folder Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/import":{"post":{"summary":"Import Library","description":"The body is the file another service exported, as it is. See transfer.py for what it can read.","operationId":"import_library_api_import_post","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}}}},"\/api\/export":{"get":{"summary":"Export Library","operationId":"export_library_api_export_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}}}},"\/api\/config":{"get":{"summary":"Config","operationId":"config_api_config_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}}}},"\/api\/auth\/google":{"post":{"summary":"Google Login","operationId":"google_login_api_auth_google_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GoogleLogin"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/auth\/email\/start":{"post":{"summary":"Email Start","description":"The same answer whether or not the address has an account: the code decides, not this.","operationId":"email_start_api_auth_email_start_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/EmailStart"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/auth\/email\/verify":{"post":{"summary":"Email Verify","operationId":"email_verify_api_auth_email_verify_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/EmailCode"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/auth\/apple":{"post":{"summary":"Apple Login","description":"Sign in with Apple: the iOS app (App Review 4.8), and the web when the product has a Services ID.\nApple's sub is per team, so every app of the family and the web reach the same account.","operationId":"apple_login_api_auth_apple_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AppleLogin"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/auth\/logout":{"post":{"summary":"Logout","operationId":"logout_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}}}},"\/api\/tokens":{"get":{"summary":"List Tokens","operationId":"list_tokens_api_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}}},"post":{"summary":"Create Token","operationId":"create_token_api_tokens_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TokenIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/extension\/connect":{"post":{"summary":"Connect Extension","description":"Signs the Chrome extension in: the web app's #\/connect page hands this token to it, never through a URL.\nListed extension ids only, so another extension can't open the page and walk away with a token.","operationId":"connect_extension_api_extension_connect_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExtensionIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/native\/connect":{"post":{"summary":"Connect Native","operationId":"connect_native_api_native_connect_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/NativeConnectIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/native\/claim":{"post":{"summary":"Claim Native","operationId":"claim_native_api_native_claim_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/NativeClaimIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/tokens\/{token_id}":{"delete":{"summary":"Delete Token","operationId":"delete_token_api_tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"integer","title":"Token Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/webhooks":{"get":{"summary":"List Webhooks","operationId":"list_webhooks_api_webhooks_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}}},"post":{"summary":"Create Webhook","description":"The answer holds the signing secret, shown this once; receivers check the product's signature header\n(X-Checkmark-Signature: sha256=HMAC(secret, body)).","operationId":"create_webhook_api_webhooks_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}},"\/api\/webhooks\/{hook_id}":{"delete":{"summary":"Delete Webhook","operationId":"delete_webhook_api_webhooks__hook_id__delete","parameters":[{"name":"hook_id","in":"path","required":true,"schema":{"type":"integer","title":"Hook Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AppleIn":{"properties":{"transaction":{"type":"string","maxLength":20000,"minLength":1,"title":"Transaction"},"move":{"type":"boolean","title":"Move","default":false}},"type":"object","required":["transaction"],"title":"AppleIn"},"AppleLogin":{"properties":{"credential":{"type":"string","maxLength":4096,"title":"Credential"},"name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Name"},"web":{"type":"boolean","title":"Web","default":false}},"type":"object","required":["credential"],"title":"AppleLogin"},"DeviceIn":{"properties":{"token":{"type":"string","pattern":"^[0-9a-f]{64,200}$","title":"Token"},"tz":{"type":"integer","maximum":50400,"minimum":-50400,"title":"Tz","default":0}},"type":"object","required":["token"],"title":"DeviceIn"},"EmailCode":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"code":{"type":"string","maxLength":6,"minLength":6,"pattern":"^\\d{6}$","title":"Code"},"native":{"type":"boolean","title":"Native","default":false}},"type":"object","required":["email","code"],"title":"EmailCode"},"EmailStart":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"}},"type":"object","required":["email"],"title":"EmailStart"},"ExtensionIn":{"properties":{"ext":{"type":"string","maxLength":100,"title":"Ext"}},"type":"object","required":["ext"],"title":"ExtensionIn"},"FolderIn":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"FolderIn"},"GoogleLogin":{"properties":{"credential":{"type":"string","maxLength":4096,"title":"Credential"},"native":{"type":"boolean","title":"Native","default":false}},"type":"object","required":["credential"],"title":"GoogleLogin"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#\/components\/schemas\/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HighlightIn":{"properties":{"quote":{"type":"string","maxLength":10000,"minLength":1,"title":"Quote"},"start":{"type":"integer","minimum":0,"title":"Start"}},"type":"object","required":["quote","start"],"title":"HighlightIn"},"ItemPatch":{"properties":{"reading":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reading"},"read":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read"},"bookmarked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bookmarked"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"},"title":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Title"}},"type":"object","title":"ItemPatch"},"MePatch":{"properties":{"kindle_email":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Kindle Email"},"remind":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Remind"},"remind_every":{"anyOf":[{"type":"string","enum":["daily","weekly"]},{"type":"null"}],"title":"Remind Every"}},"type":"object","title":"MePatch"},"NativeClaimIn":{"properties":{"code":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$","title":"Code"},"verifier":{"type":"string","maxLength":128,"minLength":43,"title":"Verifier"}},"type":"object","required":["code","verifier"],"title":"NativeClaimIn"},"NativeConnectIn":{"properties":{"app":{"type":"string","maxLength":20,"title":"App"},"challenge":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$","title":"Challenge"}},"type":"object","required":["app","challenge"],"title":"NativeConnectIn"},"SaveIn":{"properties":{"url":{"type":"string","maxLength":4000,"minLength":1,"title":"Url"},"reading":{"type":"boolean","title":"Reading","default":true},"bookmarked":{"type":"boolean","title":"Bookmarked","default":false},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["url"],"title":"SaveIn"},"TokenIn":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","default":"token"}},"type":"object","title":"TokenIn"},"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"},"WebhookIn":{"properties":{"url":{"type":"string","maxLength":2000,"minLength":1,"title":"Url"}},"type":"object","required":["url"],"title":"WebhookIn"}}}}