Start Organize
Start planning where every unfiled Saved Item goes, in batches of 50 in the background. Each goes into an existing Folder that clearly fits it, or into a new Folder proposed in the style of the account's Folders; a Saved Item that fits nowhere is left out. Nothing changes until the plan is applied. A run that is already going is returned as it is, and a finished plan is replaced. Returns `503` when the classifier is not configured.
/v1/settings/organizeStart planning where every unfiled Saved Item goes, in batches of 50 in the background. Each goes into an existing Folder that clearly fits it, or into a new Folder proposed in the style of the account's Folders; a Saved Item that fits nowhere is left out. Nothing changes until the plan is applied. A run that is already going is returned as it is, and a finished plan is replaced. Returns 503 when the classifier is not configured.
Authorization
bearer Personal API Key or App Session bearer token.
In: header
Header Parameters
A unique value identifying this write. The first response for a given key is recorded for 24 hours and replayed for every later request that repeats it, so a retry after a timeout cannot create a duplicate. Replayed responses carry Idempotent-Replay: true. A key whose original request is still running gets 409. Use a UUID or a ULID, and reuse a key only when retrying the same request.
length <= 255Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/settings/organize" \ -H "Idempotency-Key: 8f14e45f-ea4e-4a1f-9c2b-6f0a1d3c5e77"{ "status": "idle", "phase": "proposing", "done": 0, "total": 0, "plan": { "newFolders": [ { "key": "string", "name": "string", "emoji": "string", "color": "string" } ], "moves": [ { "savedItemId": "string", "title": "string", "url": "string", "folderId": "string", "newFolderKey": "string" } ], "considered": 0 }}{ "_tag": "Unauthorized", "message": "string"}{ "_tag": "RateLimitExceeded", "message": "string"}{ "_tag": "OrganizeUnavailableError", "message": "string"}Get the Organize run GET
Read the account's Organize run: its progress while it runs, and its plan once it is ready. `status` is `idle` when there is no run.
Update the account settings PATCH
Change some of the account's settings. A setting that is left out keeps its value. Turning `autoFiling` off stops future filing and leaves Saved Items that were already filed where they are.