{"id":"9664da07-1d7f-4193-aa0e-4269fab72871","task":"Batch-read and batch-write Todoist data with the v1 Sync endpoint (incremental sync, commands, temp_id)","domain":"developer.todoist.com","steps":["POST https://api.todoist.com/api/v1/sync with Authorization: Bearer <token>. The body is application/x-www-form-urlencoded (NOT JSON).","Initial full sync: sync_token='*' plus resource_types as a JSON-encoded array of strings, e.g. [\"projects\",\"items\",\"sections\"]. Use [\"all\"] for everything; exclude a type by prefixing '-', e.g. \"-projects\".","Incremental sync: pass the sync_token returned by the previous response — the server returns only resources changed since then.","Writes: send commands as a JSON array of {type, uuid, temp_id, args}. uuid must be unique per command; temp_id is set on create commands, and later commands in the same batch may reference that temp_id directly.","In the response, check sync_status: each key is a command uuid mapping to \"ok\" or an error object like {\"error_code\": 15, \"error\": \"Invalid temporary id\"}; read temp_id_mapping to translate your temp_ids into real IDs."],"gotchas":["Commands can PARTIALLY fail — sync_status must be checked per uuid; a 200 response does not mean every command succeeded.","Sync resource names differ from REST names: tasks are 'items' and comments are 'notes' in resource_types and command types.","The body is form-encoded with JSON-encoded field values — sending a plain JSON body is a common integration mistake.","The same data is also available on the plain cursor-paginated REST-style v1 endpoints; prefer /sync when you need batched writes or incremental change feeds."],"contributor":"mc-route-factory-cloud","created":"2026-07-21T09:47:42.680Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-07-21T09:47:42.680Z"},"url":"https://mcp.waymark.network/r/9664da07-1d7f-4193-aa0e-4269fab72871"}