Events

An event is one block of time on the Reassign 24-hour planner. Use these routes to poll for changes, to read and search events, and to write events.

The machine-readable spec of all public endpoints: openapi.json.

RouteScope
GET /events, GET /events/{id}, GET /events/searchevents:read or events:write
POST /eventsevents:write

The events:write scope also gives read access. Each route needs a trial or Pro plan. Refer to Authentication and Errors.

  • On POST /events, Reassign checks the scope before it reads the body. A token without events:write gets 403 with the code scope, also when the body is not valid.
  • The old event routes are removed: POST /events/batch, PATCH /events/{id}, DELETE /events/{id}, and GET /reviews/{date}. A call to one of them gets 401 without valid auth. Else it gets 404 with the code not_found. Use POST /events in their place.

To read the events of one or more days, use GET /schedule. Refer to Scheduling.

The event model

The API uses one event object in all reads and all write echoes. Refer to Concepts for the full planner model.

Time spans

  • A span is start and end. Each value is a local datetime "YYYY-MM-DDTHH:MM", with no seconds and no offset.
  • The times are in the time zone of the account. Each response that has a span gives the time zone one time, in the top-level timezone field.
  • end must be after start. An overnight event ends on the next date, for example start "2026-09-23T22:00" and end "2026-09-24T01:00".
  • An event that ends at midnight ends at "<next day>T00:00", for example "2026-09-24T00:00".
  • The day of the event is the date part of start.
  • POST /events refuses an event shorter than 5 minutes or longer than 168 hours (7 days).

Ids of recurring events

  • A bare series id addresses the full series.
  • seriesId@YYYY-MM-DD addresses one occurrence. Reads give each occurrence this id.
  • Each occurrence of a series has the fields seriesId and originalDate. They are the two parts of its id, also on a moved occurrence. A one-off event and a series echo by its bare id do not have them.
  • A changed occurrence keeps the id seriesId@<original date>, also after a move to another day. Thus the date part can be different from the date of start.
  • scope: "future" is the only scope value. Use it only with an occurrence id. It addresses that occurrence and all later occurrences.
  • An occurrence id on an event that does not repeat is an error. A date that is not an occurrence of the rule is also an error.
  • When you change one occurrence, its id does not change. The reads, GET /events/search, GET /events/{id}, and the write result give seriesId@<original date>.
  • An update on the occurrence id of a deleted occurrence puts the occurrence back, with the fields that you send. An undo deletes it again.
  • A changed occurrence carries the series' recurrence. It also inherits the series' calendarId, mirrorCalendarIds, and mirrorStyles unless it chose its own calendar.
  • Older write results gave a changed occurrence a separate stored id. That id still works as a write address. No read gives it now.

Fields

  • Name
    start
    Type
    string, required
    Description
  • Name
    end
    Type
    string, required
    Description
  • Name
    id
    Type
    string, required
    Description
  • Name
    seriesId
    Type
    string
    Description
  • Name
    originalDate
    Type
    string
    Description
  • Name
    kind
    Type
    "blocking" | "non_blocking" | "reference", required
    Description
  • Name
    name
    Type
    string, required
    Description
  • Name
    notes
    Type
    string
    Description
  • Name
    source
    Type
    "apple_calendar" | "apple_health" | "apple_reminders" | "caldav" | "google" | "google_health" | "google_tasks" | "linear" | "microsoft" | "microsoft_todo" | "ticktick" | "todoist" | "reassign", required
    Description
  • Name
    sourceUrl
    Type
    string
    Description
  • Name
    meeting
    Type
    object
    Description
    2 fields
    • Name
      url
      Type
      string, required
      Description
    • Name
      label
      Type
      string, required
      Description
  • Name
    location
    Type
    object
    Description
    2 fields
    • Name
      text
      Type
      string, required
      Description
    • Name
      url
      Type
      string
      Description
  • Name
    recurrence
    Type
    string
    Description
  • Name
    allDaySpan
    Type
    object
    Description
    4 fields
    • Name
      startDate
      Type
      string, required
      Description

      The first day of the event.

    • Name
      endDate
      Type
      string, required
      Description

      The last day of the event, inclusive.

    • Name
      days
      Type
      integer, required
      Description
    • Name
      dayIndex
      Type
      integer, required
      Description

      The position of this day in the event, from 1.

  • Name
    warning
    Type
    string
    Description
  • Name
    areaId
    Type
    string | null, required
    Description
  • Name
    activityTypeId
    Type
    string | null, required
    Description
  • Name
    projectId
    Type
    string | null, required
    Description
  • Name
    priority
    Type
    integer, required
    Description
  • Name
    calendarId
    Type
    string | null
    Description
  • Name
    homePending
    Type
    true
    Description

    Present when calendarId is a move to another calendar that the sync has not done yet. source still names the provider of the current calendar.

  • Name
    mirrorCalendarIds
    Type
    string[]
    Description
  • Name
    mirrorStyles
    Type
    map of "full" | "private" | "busy"
    Description
  • Name
    readOnly
    Type
    true
    Description

    The event is on a calendar that the user does not own. An update may change only mirrorCalendarIds and mirrorStyles, not with scope: "future". Any other field is read_only.

  • Name
    focusIntervals
    Type
    object
    Description
    2 fields
    • Name
      focusMin
      Type
      integer, required
      Description
    • Name
      breakMin
      Type
      integer, required
      Description
  • Name
    completedFocusIntervals
    Type
    integer
    Description
  • Name
    focusState
    Type
    "running" | "running_scheduled" | "paused" | "paused_scheduled"
    Description
  • Name
    focusBreaks
    Type
    object[]
    Description
    2 fields
    • Name
      start
      Type
      string, required
      Description
    • Name
      end
      Type
      string, required
      Description
  • Name
    focusExact
    Type
    object
    Description

    First-party only. The stored session to the millisecond, as local instants: start, end, breaks, and actualStart and actualEnd when recorded. Omitted when the event has no rhythm, marker, break or actual time.

    5 fields
    • Name
      start
      Type
      string, required
      Description

      A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

    • Name
      end
      Type
      string, required
      Description

      A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

    • Name
      breaks
      Type
      object[], required
      Description
      2 fields
      • Name
        start
        Type
        string, required
        Description

        A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

      • Name
        end
        Type
        string, required
        Description

        A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

    • Name
      actualStart
      Type
      string
      Description

      A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

    • Name
      actualEnd
      Type
      string
      Description

      A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

  • Name
    exactStart
    Type
    string
    Description

    First-party only. The local instant of the start of a blocking event, only when it is not a whole minute.

  • Name
    focusRevision
    Type
    string
    Description

    First-party only. An opaque version of the session state, which expected.revision of a focus op repeats. Present on a blocking event and on a row with a marker.

  • Name
    taskDone
    Type
    true
    Description
  • Name
    energyRole
    Type
    string
    Description
  • Name
    checklist
    Type
    object
    Description
    1 fields
    • Name
      items
      Type
      object[], required
      Description
      3 fields
      • Name
        id
        Type
        string, required
        Description
      • Name
        text
        Type
        string, required
        Description
      • Name
        done
        Type
        boolean, required
        Description
  • Name
    reflect
    Type
    object
    Description
    2 forms
    • One form: Without actualStart, actualEnd
      • Name
        status
        Type
        "kept" | "skipped" | "changed" | "added", required
        Description
    • One form: With actualStart, actualEnd
      • Name
        status
        Type
        "changed", required
        Description
      • Name
        actualStart
        Type
        string, required
        Description

        It can be on the day before the event, as a Health night is.

      • Name
        actualEnd
        Type
        string, required
        Description
  • An optional value that is empty is not in the object. For example, an event with no notes has no notes field.
  • areaId, activityTypeId, and projectId are always in the object. The value is null when the event has no area, no activity type, or no project.
  • priority is always in the object: 0 none, 1 low, 2 medium, 3 high, or 4 urgent.
  • An event that you schedule from the Inbox takes the project of its Inbox item.
  • The API refers to areas, activity types, and projects by id only. GET /schedule gives the areas, activityTypes, and projects lists with the names.
  • readOnly: true shows an event on a calendar that the user does not own, or an event from a Health source (source is apple_health or google_health). The API refuses update, shift, and delete on it with read_only (403). The message is This event is read-only here. Make this change in its source calendar ("<calendar>"). Nothing changed. The part in parentheses is there only when Reassign knows the calendar name. The reflect and checklist ops work on it.
  • A changed occurrence of a series on a calendar that the user does not own also has readOnly: true. When the occurrence has no calendar link of its own, it shows the source of its series.
  • A span with no later end minute reads as 1 minute, for example a focus session of 20 seconds. This also applies to an actual span in reflect.
  • Two update forms work on a read-only event:
    • calendarId: null on the bare series id. The edits that the op carries also apply, because the event is local after the op.
    • An update that changes only the copies. Refer to Copies of a read-only event.
  • calendarId is the home calendar that the user chose. After a move to another calendar, it is the new calendar, also before the sync moves the event.
  • homePending: true shows a move to another calendar that the sync did not do yet. source still names the provider of the current calendar. The field is absent when no move waits. Refer to A move that waits.
  • energyRole is the energy role of the event, as free text, for example sleep. It is absent when the event has no role.
  • taskDone: true shows that the linked task is closed. The field is absent in all other cases. Refer to Done on any day.
  • focusState and focusBreaks show a live focus session. focusExact, exactStart, and focusRevision go only to some callers. Refer to Focus sessions.
  • allDaySpan shows one all-day event on one or more days. Refer to All-day events.

All-day events

Reassign stores an all-day event from a connected calendar as one event with a count of days. The API has no field to create an all-day event.

  • A read gives the event on each of its days, with the same bare id. The id has no @YYYY-MM-DD part, and the event has no seriesId or originalDate.
  • On each day, start is 00:00 of that day, and end is 00:00 of the next day.
  • allDaySpan has startDate (the first day), endDate (the last day, included), days, and dayIndex (the position of this day in the event, from 1).
  • The kind of an all-day event is always reference.

The write rules:

  • A change applies to all the days of the event. Send the bare id. An occurrence id fails with validation: "<id>" is one all-day event, so an occurrence id "@<date>" doesn't apply. Use the bare id. A change applies to all of its days.
  • A kind change on an event that stays an all-day event fails with read_only: This is an all-day event — it is always a reference, so its type can't be changed to blocking or non-blocking.
  • New hours on an event that is linked to a calendar fail with validation: This all-day event is linked to a calendar, so its hours stay locked.
  • New hours on an event that is not linked to a calendar, or a new recurrence, make it a normal event. With a recurrence, the series starts on the first day of the event.
  • A new recurrence on an event that is linked to a calendar stays in Reassign. The updated result has notice: It repeats in Reassign only. The calendar event does not repeat.
  • A delete of an all-day event that Reassign did not create in the calendar removes it from the dial only. The result has notice: Removed from the dial. It stays in the calendar.
  • A clear does not delete an all-day event of more than one day. The result has skippedMultiDay (a count) and notice, for example A multi-day event stays. Open it to remove all of its days. Delete the event by its id.

Writable and output-only fields

You can copy the writable fields of a read into a write without a change. The server calculates the output-only fields. A write op that sends an output-only field fails with validation.

FieldOn a write
idupdate: the address. An occurrence id from a read works. create: optional, and it must be a UUID. The server makes a UUID when you do not send one.
start, end, kind, name, notes, sourceUrl, recurrence, areaId, activityTypeId, projectId, priority, calendarId, mirrorCalendarIds, mirrorStyles, focusIntervalsWritable on create and update.
checklistWritable on create. After that, use the checklist op. Its items have the shape of checklist.items in a read.
source, homePending, meeting, location, warning, readOnly, completedFocusIntervals, focusState, focusBreaks, focusExact, exactStart, focusRevision, taskDone, energyRole, allDaySpan, reflect, seriesId, originalDateOutput-only. To write reflect, use the reflect op. The focus op writes the session fields, and the complete op writes taskDone.

The warning field shows a start time that a daylight saving change skips on that date.

Search results also have an output-only score for the name match. Leave it out when building a write from a search result.


GET/api/v1/events

Poll for changes (Beta)

Get the stored events that changed after a cursor, oldest first. Use it to keep a copy of the events in sync. Scope: events:read.

  • On the first poll, do not send cursor.
  • Each response has a cursor. Send it as cursor on the next poll. Do not change or parse it.
  • A cursor that this API did not write returns 422 validation.
  • limit is 1 to 500. The default is 100. Other values return 422.
  • When hasMore is true, more rows wait. Send the next poll at once.
  • The cursor holds the exact position of the last row. A page boundary does not skip or repeat a row.
  • When no event changed, the response has no rows and a cursor that you can send again.

The rows are different from the event model:

  • The response has one row for each stored event. It does not expand a recurring event into its occurrences.
  • A changed occurrence is a separate stored event. Its row has the stored id of that event, not seriesId@<original date>. No other read gives this id. GET /events/{id} with it returns the occurrence with the id seriesId@<original date>.
  • The response does not show deleted events.
  • A row has only id, name, start, end, recurrence (for a series), allDaySpan (for an all-day event), areaId, activityTypeId, and updatedAt. updatedAt is an ISO 8601 instant.
  • An all-day event has one row. Its start and end are of its first day. Its allDaySpan has startDate, endDate, and days, and no dayIndex. Refer to All-day events.
  • An event with no name has the name "(untitled)".

To read a day, use GET /schedule.

Query parameters

  • Name
    cursor
    Type
    string
    Description

    The opaque cursor of the last poll. The rows that changed after it return. Omit it on the first poll.

  • Name
    limit
    Type
    string
    Description

    The page size, 1 to 500 (default 100).

Response fields

  • Name
    events
    Type
    object[], required
    Description
    9 fields
    • Name
      start
      Type
      string, required
      Description
    • Name
      end
      Type
      string, required
      Description
    • Name
      id
      Type
      string, required
      Description
    • Name
      name
      Type
      string, required
      Description
    • Name
      recurrence
      Type
      string
      Description
    • Name
      allDaySpan
      Type
      object
      Description
      3 fields
      • Name
        startDate
        Type
        string, required
        Description
      • Name
        endDate
        Type
        string, required
        Description
      • Name
        days
        Type
        integer, required
        Description
    • Name
      areaId
      Type
      string | null, required
      Description
    • Name
      activityTypeId
      Type
      string | null, required
      Description
    • Name
      updatedAt
      Type
      string, required
      Description
  • Name
    cursor
    Type
    string, required
    Description
  • Name
    hasMore
    Type
    boolean, required
    Description
  • Name
    timezone
    Type
    string, required
    Description

Responses

StatusCodesMeaning
200—Success.
401unauthorizedNo Bearer token and no session cookie, or the token is invalid, expired, or revoked. The response carries a WWW-Authenticate challenge that points at the protected-resource metadata.
403permissionscopeA token without events:read or events:write gets scope "This token is not authorized to read events (requires events:read or events:write scope)." An account without Reassign Pro access gets permission "Reassign needs an active subscription." The 14-day free trial includes Reassign Pro. A cookie session from another site gets permission "Cross-origin request."
422validationA query parameter is not valid. The message names the first bad field by its path. A repeated or unknown query parameter is also a 422.
429rate_limitedToo many requests. The edge firewall limits each IP to 2000 requests per minute across /api/v1; that 429 comes from the edge and can have a body that is not this JSON and no Retry-After header. When an edge 429 has no Retry-After, retry after 60 seconds. The app also limits each Bearer credential to 600 requests per minute, and some routes limit each user. These limits return this body. This app 429 always has Retry-After: retry after that number of seconds.
503internalA fault on our side. The request is safe to retry.

Request

GET
/api/v1/events
curl "https://reassign.app/api/v1/events" \
  -H "Authorization: Bearer rsk_live_YOUR_TOKEN"

Response

{
  "events": [
    {
      "id": "b7f1c2a0-1d2e-4f3a-9b8c-5d6e7f801234",
      "name": "Team sync",
      "start": "2026-08-13T09:00",
      "end": "2026-08-13T10:30",
      "areaId": "3c9d2a41-6b7e-4f80-9a1b-2c3d4e5f6071",
      "activityTypeId": "5e6f7081-92a3-4b4c-8d5e-6f708192a3b4",
      "updatedAt": "2026-08-13T08:40:00.000Z"
    }
  ],
  "cursor": "MjAyNi0wOC0xM1QwODo0MDowMC4xMjM0NTZafGI3ZjFjMmEwLTFkMmUtNGYzYS05YjhjLTVkNmU3ZjgwMTIzNA",
  "hasMore": false,
  "timezone": "Europe/Ljubljana"
}

POST/api/v1/events

Write events

Create, change, move, reflect, and delete events. This route is the one event write of the API. Send 1 to 50 ops, and an optional partial. Scope: events:write.

Ops

Each op has an op field with its name.

opWhat it does
createMakes an event. Send start, end, and name. Add recurrence (an RRULE) for a series.
updateChanges an event. Send id and only the fields to change. A new start or end moves the event, also to another day. A start with no end keeps the duration. An end with no start keeps the start.
shiftMoves an event by byMinutes (a whole number, not 0, from -1440 to 1440). A negative value moves it earlier. The duration and the exact minute stay.
reflectRecords how a past event went: status is kept, skipped, changed, or added. Refer to Day reviews.
checklistChanges the checklist. items replaces the full list (100 items or less). check and uncheck take item ids (100 or less).
deleteDeletes an event, a series, one occurrence, or (with scope: "future") an occurrence and all later ones. With mode: "delete", it also deletes the linked task in its app. Refer to Delete the linked task.
clearDeletes all events from from to to, both dates included. The range is 31 days or less.
focusRuns one action of a live focus session. Only the Reassign apps and a Personal Access Token can send it. Refer to Focus sessions.
completeCloses or reopens the task that is linked to an event, on any day. Only the Reassign apps and a Personal Access Token can send it. Refer to Done on any day.

Examples of tasks

TaskOp to send
Add a meeting tomorrow from 09:00 to 10:00create with start "2026-09-24T09:00", end "2026-09-24T10:00", and name
Add an event from 22:00 to 01:00create with an end on the next date
Move an event to tomorrow at 09:00update with id and start "2026-09-24T09:00"
Make an event end at 18:00update with id and end only
Move an event 30 minutes latershift with byMinutes 30
Remove the area of an eventupdate with areaId null
Put an event in a projectupdate with projectId
Mark an event as urgentupdate with priority 4
Change one occurrence of a seriesupdate with the id seriesId@2026-09-24
Change an occurrence and all later onesupdate with the id seriesId@2026-09-24 and scope "future"
Stop a seriesupdate with the bare series id and recurrence null
End a series before a datedelete with the id seriesId@2026-09-24 and scope "future"
Put one occurrence on another calendarupdate with the id seriesId@2026-09-24 and calendarId
Delete an event and its task in the task appdelete with the bare id and mode "delete"
Mark a past event as donereflect with status "kept"
Record the real time of a past eventreflect with status "changed", actualStart, and actualEnd
Tick off a checklist itemchecklist with check and the item id
Delete all events of a weekclear with from and to

Rules of the fields

  • areaId and activityTypeId take an id or null. On update, null removes the link, and an omitted key keeps the link. On create, null and an omitted key are the same.
  • On create, kind is a manual choice, also the default blocking. AI classification does not change it.
  • On create, an areaId or an activityTypeId that you send is a manual choice. A field with no id stays open for AI classification.
  • On update, areaId: null or activityTypeId: null is a manual choice of no link. AI classification does not fill that field again, also when it was already empty.
  • projectId takes the id of a live project from the projects list of GET /schedule. On update, null removes the project and keeps the area. This also applies to an occurrence id, with or without scope: "future". An omitted key keeps the project. On create, null and an omitted key are the same.
  • When an op sets a new project and no areaId, the event takes the area of the project. This also replaces an area that you set before. It also applies to an op on an occurrence id.
  • An unknown project, or an archived project, fails the row with not_found: No live project with id "<id>". An archived project that the event already has can stay.
  • On an event from a task of a task app, a new projectId that needs a move of the task fails with read_only: A scheduled task keeps the project of its list. Change the project in the Inbox. Change the project in the Inbox.
  • priority is a whole number from 0 to 4. On create, an omitted priority is 0. On update, an omitted priority keeps the value. priority: 0 sets the value to 0, also on an occurrence id, with or without scope: "future".
  • An undo puts back the project, the priority, and the area of the event.
  • On an event that came from a task of a task app, a priority change can also go to the task in its app. Reassign sends it only after a pull of the task records its priority. Refer to Backlog.
  • calendarId is the home calendar. On create, send null to keep the event only on the dial. When you omit it, the event goes to the default calendar of the account, if one is set. Otherwise it stays on the dial only. mirrorCalendarIds lists the calendars that get a one-way copy. On update, [] removes all copies.
  • On update, an omitted calendarId keeps the home calendar. mirrorCalendarIds checks only the ids that the op adds. An id that is already on the event can stay, also when its calendar is now read-only or disconnected.
  • On update, calendarId: null removes the event from its home calendar. It also deletes all the copies in mirrorCalendarIds. The event then stays on the dial only.
    • To remove a series from its calendar, send the bare series id and no scope. On an occurrence id, or with scope: "future", calendarId: null puts only the new row on the dial. Refer to One occurrence or a split.
    • It can carry start, end, name, notes, areaId, activityTypeId, projectId, priority, and kind. These edits apply first, in the same write.
    • With mirrorCalendarIds, mirrorStyles, recurrence, recurrenceEnd, sourceUrl, or focusIntervals, it is a validation error. Send that change in a separate op.
    • On an event that is already on the dial only, calendarId: null is not a change. The copies stay. To remove them, send mirrorCalendarIds: [].
    • On an event with no calendar link and no stored home, calendarId: null keeps the event on the dial only. A later edit then does not send the event to the default calendar. The stored id of a changed occurrence of such a series fails with validation: calendarId:null unlinks the whole series. Target the bare series id, not an occurrence of it.
  • A one-off event on the dial only can have copies. On create, send calendarId: null with mirrorCalendarIds.
  • A series with copies needs a home calendar. These ops fail with validation and the message Copies of a series need a home calendar. Give the series a calendarId, or remove its mirrorCalendarIds.:
    • A create with recurrence, mirrorCalendarIds, and calendarId: null. An omitted calendarId also fails when the account has no default calendar.
    • An update that adds recurrence to a dial-only event with copies.
    • An update that adds mirrorCalendarIds to a dial-only series.
  • A series that came from a connected calendar is an exception. After calendarId: null, Reassign keeps the identity of the calendar series. An update can then add mirrorCalendarIds. A read does not show this identity.
  • mirrorStyles sets how much each copy shows. Refer to Copy styles.
  • On update, sourceUrl: null removes the link, recurrence: null stops the repeat, and focusIntervals: null removes the focus rhythm.
  • recurrenceEnd needs recurrence. focusIntervals is valid only on a blocking event.
  • recurrence must be a safe RRULE, else the op fails with validation. Refer to Recurrence rules.
  • recurrence and sourceUrl belong to the full series. On one occurrence, the same value as now is not a change. A new value is an error. On an occurrence that you changed before, the value of that occurrence is the current value.
  • calendarId and mirrorCalendarIds also work on one occurrence and on a split. mirrorStyles also works on a split, but not on one occurrence. Refer to One occurrence or a split.
  • An update that moves a series to another day needs a rule that occurs on that day. After the move, each changed occurrence and each one-day delete must also fall on the rule. Else the op fails with validation.
  • The API rejects a key that it does not know, and a key that has no effect.

Recurrence rules

Reassign checks each recurrence that a write sends. A rule that fails a check gives validation. The message is Invalid recurrence "<rule>". Use an RRULE, e.g. "FREQ=WEEKLY;BYDAY=MO"., except where this list gives a different message.

  • The rule has 1,000 characters or less. A longer rule gets Recurrence is too long (maximum 1000 characters).
  • The rule has one RRULE line. It can also have EXDATE lines. EXRULE, RDATE, DTSTART, and TZID fail.
  • The parts are only FREQ, UNTIL, COUNT, INTERVAL, BYDAY, BYMONTHDAY, BYYEARDAY, BYWEEKNO, BYMONTH, BYSETPOS, and WKST. Each part has one =, and each value is in its range. INTERVAL is a positive whole number.
  • FREQ is DAILY, WEEKLY, MONTHLY, or YEARLY. A sub-day FREQ, or a BYHOUR, BYMINUTE, or BYSECOND part, gets a message that starts with Sub-day recurrence isn't supported.
  • BYSETPOS has 8 values or less. BYMONTH and BYYEARDAY cannot be in the same rule.
  • The rule must occur in the first year from 2000-01-01, or by 2028-12-31 for a rule that can skip a year. Else the message is Invalid recurrence "<rule>". The rule has no occurrence. Thus a rule that occurs only from a different start date fails, for example FREQ=DAILY;INTERVAL=7;BYDAY=MO.
  • The rule must not occur two times on one day.

A series that came from a calendar can keep a rule that fails these checks. A read skips a series with a rule that Reassign cannot expand, and gives the rest of the schedule. A write that needs an occurrence of that rule fails with validation.

One occurrence or a split

The calendar fields work as in the editor of the web app.

TargetcalendarId, mirrorCalendarIdsmirrorStyles
The bare series idChanges the full series.Changes the full series.
seriesId@YYYY-MM-DDChanges that occurrence only. The series does not change. A later request on the same occurrence changes that occurrence again.Fails with validation. A copy of one occurrence uses the style of its series.
seriesId@YYYY-MM-DD and scope: "future"Splits the series. The new series starts on that day with the stored home, copies, and copy styles. The values of the op replace them. The series before the split does not change.Gives the new series its own styles.
  • The validation message for mirrorStyles on one occurrence is mirrorStyles belongs to the whole series. A copy of one occurrence uses the style of the series. Target the bare series id, or add scope:"future" to the occurrence id.
  • calendarId: null on an occurrence id, or with scope: "future", puts only the new row on the dial. It deletes no calendar event.
  • calendarId: null on an occurrence that has its own calendar event fails with validation: calendarId:null with an occurrence id puts only a new copy of that day on the dial. This target is the whole series or a day with its own calendar event. Send calendarId:null with the bare series id to unlink it.
  • A split of a series on the dial only gives the new series no stored copies and no copy styles.
  • A split that gives a new series on the dial only and with copies or copy styles fails with validation: Copies of a series need a home calendar. The new series from this day is on the dial only. Send a calendarId, or send mirrorCalendarIds [] and no mirrorStyles.

Copies of a read-only event

You can change the copies of a readOnly event, as in the web app. The home calendar stays locked.

  • The update can have only op, id, scope, mirrorCalendarIds, mirrorStyles, and a calendarId equal to the current home. Thus a read can go back into the op.
  • Any other field fails with read_only, also with the current value. A new calendarId also fails with read_only.
  • A bare id changes the event or the series. An occurrence id changes the copies of that day only.
  • On an occurrence that you did not change before, an occurrence id with a copy set equal to the current set fails with read_only. Thus the op makes no empty change of the occurrence.
  • scope: "future" fails with read_only, because a split changes the rule of the series.

A move that waits

After an update with a new calendarId, the sync moves the event to the new calendar. Until then, a read gives:

  • calendarId: the new calendar.
  • homePending: true.
  • source: the provider of the current calendar.

While the move waits, an update with the new calendarId is not a change. An update with the id of the current calendar stops the move.

Copy styles

mirrorStyles maps a copy calendar id to a style. A read gives it only when the event has a style. Use busy to block the time on a second calendar and hide the details.

StyleTitle of the copyNotes of the copyAt the provider
fullThe event titleThe event notesA normal event
privateThe event titleThe event notesA private event
busyThe busy title of the copy calendar, or "Busy"NoneA private event with no reminders
  • Each key must be in the mirrorCalendarIds of the op. When an update has no mirrorCalendarIds, the current copies apply. Else the op fails with validation: mirrorStyles has calendar "<id>", which is not in the event's mirrorCalendarIds. Add it to mirrorCalendarIds, or remove it from mirrorStyles.
  • A value that is not full, private, or busy fails the schema check with validation. The row has error.issues with a path of ["mirrorStyles", "<id>"]. Refer to Validation errors.
  • On create, {} is the same as no map. On update, mirrorStyles replaces the map. {} removes all styles.
  • A calendar that is not in the map uses the default style of that calendar. Without a default, the style is full. GET /schedule gives the default as integrations.sources[].calendars[].copyStyle.
  • A private or busy copy of a non_blocking or reference event shows as free.
  • The style belongs to the full series. On an occurrence id, a new value fails with validation. With scope: "future", the new series gets the styles of the op.
  • A changed occurrence inherits the styles of its series.

The reflect op

  • The occurrence must be on a past day in the account's time zone. Today and future days fail with validation, even when today's event has already ended.
  • actualStart and actualEnd go together. Send them only with changed or added.
  • With added, the actual times become the time of the event. actualStart must be on the day of the event.
  • With changed, actualStart can also be on the day before the event, up to 24 hours before the day. An earlier start fails with validation: actualStart must be on the event's day <day> or the day before. Thus a read actualStart from the day before, for example the start of a night, can go back into a write.
  • To mark one occurrence of a series, send its occurrence id. A bare series id is an error.
  • The actual span must be from 5 minutes to 168 hours. Else the row fails with Event is too short (minimum 5 minutes). or Event is too long (maximum 168 hours).

Focus sessions

A live focus session is state on the event, so each app reads the same session. Only these callers can use the focus op and read focusExact, exactStart, and focusRevision: the Reassign apps, the web session, and a Personal Access Token. GET /me gives them capabilities: ["focusSync"]. A connected OAuth app gets a permission error row: This action is available only to the Reassign apps and to a Personal Access Token, not to a connected app. The MCP tools do not have the focus or complete op.

Each caller reads these fields:

  • focusState: running, running_scheduled, paused, or paused_scheduled. It is absent when no session runs on the event.
  • focusBreaks: the breaks of the session, as [{ start, end }]. The times are cut to the minute. A break of more than 0 seconds reads as 1 minute or more. A paused session has the open pause as its last break.

Only the callers above read these fields:

  • focusExact: the stored session to the millisecond, as local instants "YYYY-MM-DDTHH:MM:SS.mmm": start, end, breaks, and actualStart and actualEnd when Reassign has them. Use it for the phase and the timer, because two phases can read the same in the minute fields.
  • exactStart: the local instant of the start of a blocking event, only when the start is not a whole minute.
  • focusRevision: an opaque version of the session state. A blocking event and an event with a session have it.

The op is { "op": "focus", "action", "id", "focusIntervals", "expected" }. The server uses its own clock. Send only the action.

actionTargetEffect
startNo id, or a new UUID for the new blockMakes a running block of 2 hours, or up to the next blocking event. focusIntervals sets the rhythm. When you omit it, the rhythm is 25/5. null gives no rhythm. The result is created.
start with expectedA planned blocking event that holds nowMakes the event the session: focusState is running_scheduled. The event keeps its span, rhythm, and breaks. The result is { updated, ended }. Refer to Start a planned event.
pauseA session, or a blocking event that runs nowStarts a break now.
continueA session, or a blocking event that ran overEnds the pause. At or after the session limit, it ends the block and makes a new running block. The result is { created, previousId }.
skip_breakA running session in an automatic breakEnds the break now.
finishA session, or a blocking event that runs now or ran overEnds the session now, and records actualStart and actualEnd. A block from start with no time left is deleted, and the result is deletedIds.
discardA block with the state running or pausedDeletes the block. The result is deletedIds.
  • Each action except a start of a new block needs id and expected. expected.revision is the focusRevision of your read. When the stored state is different, the row fails with stale. Read the event again.
  • skip_break also needs expected.breakStart: the start of the break that the client saw, as a local instant.
  • A continue after the session limit also needs expected.pastLimit: true. Without it, the row fails with stale, and no new block starts.
  • A start with no expected makes a new block. A retry with the same id gives the same block while it runs. After the block ends, the retry fails with conflict. An id of an event that has no session also fails with conflict, because this form only makes a new block.
  • An account has one live session. A start with no expected while another event has a session fails with conflict. The conflicts row names that event. Finish it first.
  • For one occurrence of a series, send its occurrence id. A bare series id fails with validation, except for a session on the series itself.
  • An event on a calendar that you cannot change takes pause, continue on a session, skip_break, and finish. finish keeps the hours and records only the actual span. A continue on a block that ran over, and a discard, fail with read_only, because they change the time or delete the event.
  • A sleep block with no session takes only finish, from the second half of the block. Other actions fail with validation.
  • A batch can have one focus op. A second focus op fails with validation.
  • Put the focus op before each op that adds, moves, or removes an event. An op that adds, moves, or removes no event, for example complete, can come before it. Else the focus op fails with validation: Send the `focus` op first in a batch: its grant reads only stored events.
  • A repeat of pause, of continue on a running session, or of finish with a current revision changes nothing. It gives the event and no undoToken.
  • Each other action that applies gives an undoToken. The undo puts back the session, the breaks, the hours, the rhythm, and the actual span. A later session write on the same event makes an older token stale.

Start a planned event

Send { "op": "focus", "action": "start", "id": "<event id>", "expected": { "revision": "<focusRevision>" } } to start a planned event as the session.

  • The event must hold now: its start is 2 minutes or less after the server clock, and its end is after the server clock. Else the row fails with validation: The event does not hold now. Move it to now first, then start it.
  • To start a later event, move it to now with an update first. Then read its new focusRevision from the result, and send the start in a second call. One batch cannot have both ops, because the focus op must come first, and a batch targets each event id one time.
  • For one occurrence of a series, send its occurrence id. The first start makes a changed occurrence for that day.
  • focusIntervals, expected.breakStart, and expected.pastLimit fail with validation here.
  • The start ends the session on another event, as finish does. It also ends each other blocking event that runs now, at now, and records its actual span. An actual span that the event already has stays.
  • ended lists the other events that the start ended, with their new end. A block from a start with no time left is deleted, and the result also has deletedIds.
  • A repeat on the event of the session changes nothing. It gives the event, ended: [], and no undoToken.
CaseCode
An event on a calendar that you cannot changeread_only: Someone else organizes this event, so it cannot start here.
A non-blocking event, a sleep block, a bare series id, or an event that does not hold nowvalidation
A paused sessionvalidation: The session is paused. Send `continue` to go on.
A different revision, or an event with actual timesstale
A blocking event that you cannot change runs now, or has the other sessionconflict: "<name>" runs now, and someone else organizes it, so its time cannot change here. Finish it first. The conflicts row names it.
An unknown or deleted eventnot_found

GET /schedule also gives liveSession to these callers. Refer to Scheduling.

Delete the linked task

A delete of an event that links to a task completes the task in its app. Add mode: "delete" to delete the task in its app permanently, as Delete task in the web app does. Each caller can send it.

  • Only a full event with a task link takes it. Send the bare id with no scope.
  • These cases fail with validation:
    • An occurrence id or a scope: `mode: "delete"` deletes the whole event and its task. Send the event id with no scope and no occurrence date.
    • An event with no task link: This event has no task link. Delete it without `mode: "delete"`.
    • An old history copy of a task: This task is an old history copy, so its app takes no delete. Delete the event without `mode: "delete"`.
  • The delete also ends each changed occurrence of a series.
  • A Linear issue goes to the Linear trash.
  • An undo stops the task delete while Reassign did not send it yet, and puts the event back. After Reassign sent the delete, the undo row fails with conflict: The change already went out, so it cannot be undone. While Reassign sends it, the message is The change is being sent now. Try the undo again in a moment.

Done on any day

The op { "op": "complete", "id", "done" } closes (true) or reopens (false) the task that is linked to an event, on any day. The callers are the same as for the focus op.

  • The event does not change. It stays on the day, with no reflect status and no actual time. A read gives taskDone: true when the task is closed.
  • An occurrence id works. Reassign uses the task link of the occurrence, else the task link of its series.
  • An event with no task link fails with validation: Event "<id>" has no linked task.
  • done: false on a task app that cannot reopen a task fails with read_only: This task cannot reopen here. Reopen it in its own app.
  • A write on a closed copy of a task fails with read_only: This task is a closed copy. It cannot change here.
  • A repeat of the current state changes nothing, and gives the event.
  • The op gives no undoToken. To reverse it, send the other done value.
  • The reflect op does not change. It is still for past days only.

Order and batch rules

  • The API applies the ops in their order. An op sees the result of the ops before it. For example, a delete frees the time for a later create.
  • The API reads the result rows after all ops commit. Thus a later op can change the row of an earlier op, for example a scope: "future" split.
  • An op can target an event id one time only in each call. A second op on the same id is an error row.
  • A call can have one scope: "future" op for each series. It cannot also have an op on the bare series id. The later op is a validation error row.
  • A scope: "future" update also changes an overridden occurrence on the split date. With a new start or end, it replaces that override with the new series occurrence. With other fields, it applies those fields to the override, keeps its own time, and returns that occurrence. Later overrides keep their individual fields.
  • A scope: "future" split of a dial-only series with copies gives the new series no copies and no mirrorStyles. The old series keeps its copies.
  • A blocking event that overlaps another blocking event fails with conflict. The error row has conflicts. It can also have up to 3 nearestSlots.
  • A non_blocking or reference event can overlap other events. It does not cause a conflict.

Atomic and partial batches

By default, the batch is atomic. When one op fails, the API applies no op. Each valid op then has status: "skipped" and a reason.

With partial: true, the API applies each op that it can. The failed ops are error rows.

  • When one or more ops apply, the status is 200. The body has results, and undoToken with expiresAt when the server recorded an undo receipt.
  • Reassign does not reject a batch after its writes land. When the read of a written op fails after the write, that op is an error row with the code internal and the message The change was saved, but the read-back failed. Read it again. The body keeps any recorded undoToken.
  • When no op applies, the body is the error envelope and results. The status follows error.code, as the Responses table shows.

The top-level timezone is there only when a row has a span: a created or updated event, conflicts, or nearestSlots. For example, a batch of only delete or clear ops has no timezone.

A batch where no op applies is a rejected batch. This is also true for partial: true when all ops fail. The error.message of a rejected batch is the message of the one failed op. When more ops fail, it tells you to look in results. A rejected batch has no undoToken.

Rows

Each item of results has index (0-based), status (ok, error, or skipped), and one of result, error, or reason.

An ok row can also have warnings: ["classification_pending"]. The write succeeded and queued AI classification. AI classification can fill eligible fields after the reply, for example an area that you did not set. It does not change the kind of a create, or an areaId or activityTypeId that a create sent. This warning appears only when the account and plan allow classification. Read the event again if you need its latest classification.

Opresult
createcreated: the new event. Also firstOccurrence when the series does not occur on the day of start.
update, shift, reflect, checklistupdated: the event after the change. Also firstOccurrence when a new rule does not occur on the stored first day. An update can also have notice. Refer to All-day events.
deletedeletedIds. A scope: "future" delete also gives updated: the series that now ends earlier. It can also have notice.
clearbreakdown (counts of one-off events, occurrences, and changed occurrences), items (up to 50 names and dates), and truncated. Also skippedReadOnly (a count) when it kept events of a read-only calendar, and skippedMultiDay with notice when it kept all-day events of more than one day.
focuscreated for start, { updated, ended } for a start with expected, updated for most other actions, deletedIds when the block goes, or created with previousId for a continue past the session limit. Refer to Focus sessions.
completeupdated: the event, with taskDone: true when the task is closed.

An op that the API cannot read does not fail the full request. It becomes an error row with the code validation. The message names the problem, for example an unknown op or a bad field. The full request fails with 422 only when the body is not valid, for example when ops is empty or has more than 50 items. These items are also error rows:

Itemerror.message
Not an object (also null or an array)Each op must be an object.
An unknown opUnknown op "<op>". Use one of: create, update, shift, reflect, checklist, delete, clear, focus, complete.
An object with no opUnknown op undefined. Use one of: create, update, shift, reflect, checklist, delete, clear, focus, complete.
A bad fieldInvalid "<op>" op. `<path>`: <reason>, for example Invalid "create" op. `start`: …
A create id that is not a UUIDInvalid "create" op. `id`: id must be a UUID; omit it to let the server generate one.

Each of these rows also has error.issues. Refer to Validation errors.

Undo

A write that records an undo receipt returns one undoToken and its expiresAt (30 minutes) at the top level. Send the token to POST /actions/undo to reverse the full write. Refer to Scheduling. A write that changes nothing has no undoToken. If the server cannot record the undo, the response also has no undoToken, and the change stays. Thus, a response with no undoToken does not prove that nothing changed.

Request body

  • Name
    ops
    Type
    object[], required
    Description
    9 forms
    • One form: op: "create"
      • Name
        id
        Type
        string
        Description

        Optional client-minted UUID event id, so the caller can read the new event back by a known id. Omit it and the server mints one.

      • Name
        start
        Type
        string, required
        Description

        Local datetime "YYYY-MM-DDTHH:MM" (no seconds, offset or Z). The end must be after the start; an overnight or multi-day event just ends on a later day. Its day is the event's day.

      • Name
        end
        Type
        string, required
        Description

        Local datetime "YYYY-MM-DDTHH:MM" (no seconds, offset or Z). The end must be after the start; an overnight or multi-day event just ends on a later day.

      • Name
        name
        Type
        string, required
        Description
      • Name
        notes
        Type
        string
        Description
      • Name
        sourceUrl
        Type
        string
        Description

        Where this was captured from — the http(s) page address. Shown as a source chip; never parsed. Set it only for something grabbed off a real page, not for an intention the user typed.

      • Name
        checklist
        Type
        object
        Description

        Starter microtasks written to the new event's checklist.

        1 fields
        • Name
          items
          Type
          object[], required
          Description
          3 fields
          • Name
            id
            Type
            string
            Description

            Keep an existing item's id; omit for a new item.

          • Name
            text
            Type
            string, required
            Description
          • Name
            done
            Type
            boolean
            Description

            true ticks the item off, false clears it; omit to keep the current state (a new item starts not done).

      • Name
        areaId
        Type
        string | null
        Description

        The area id (from the schedule read). null or omitted leaves it unset.

      • Name
        activityTypeId
        Type
        string | null
        Description

        The activity type id (from the schedule read). null or omitted leaves it unset.

      • Name
        projectId
        Type
        string | null
        Description

        A live project id from get_schedule projects. When the project changes and the op sets no areaId, the event takes the area of the project. null or omitted leaves it unset.

      • Name
        priority
        Type
        integer
        Description

        0 none, 1 low, 2 medium, 3 high, 4 urgent. Omit for 0.

      • Name
        recurrence
        Type
        string
        Description

        How the event repeats, as an RRULE (e.g. "FREQ=WEEKLY;BYDAY=MO,WE,FR"). Omit for a one-off.

      • Name
        recurrenceEnd
        Type
        string
        Description

        Inclusive last day of the repeat, "YYYY-MM-DD". Needs recurrence.

      • Name
        kind
        Type
        "blocking" | "non_blocking" | "reference"
        Description

        "blocking" (default) cannot overlap others; "non_blocking" is an overlay (e.g. a fasting band or an away/OOO marker) that may overlap and never conflicts; "reference" is something the user wants to SEE but isn't doing (e.g. a kid's training they drop off at) — non-blocking, and don't move, delete, or schedule work into it unless asked.

      • Name
        focusIntervals
        Type
        object
        Description

        Split a BLOCKING block into a repeating focus/break rhythm (pomodoro), e.g. {focusMin:25,breakMin:5}. The breaks fall BETWEEN the focus intervals and the block always ends on a focus. A non_blocking or reference event rejects it.

        2 fields
        • Name
          focusMin
          Type
          integer, required
          Description
        • Name
          breakMin
          Type
          integer, required
          Description
      • Name
        calendarId
        Type
        string | null
        Description

        The home calendar: a calendar id (from the calendars list or the schedule's integrations). Omit it to use the account's default calendar if one is set, else the event stays on the dial only. null keeps the event on the dial only. A calendar id needs a plan with calendar sync; whole-series only.

      • Name
        mirrorCalendarIds
        Type
        string[]
        Description

        The one-way copy calendars, as calendar ids. It must not contain the home calendarId. On update it REPLACES the set; [] clears it. An id already on the event may stay even if its calendar is read-only now; only an added id is checked. Adding an id requires Reassign Pro. On an occurrence id it forks that day, and with scope:"future" it splits the series; only the new row changes. A read-only event takes it when the op changes only mirrorCalendarIds and mirrorStyles, not with scope:"future".

      • Name
        mirrorStyles
        Type
        map of "full" | "private" | "busy"
        Description

        How much each copy shows, per copy calendar id: 'full' (default) copies the title and notes; 'private' keeps them but marks the copy private; 'busy' is a shield: a private copy with a neutral title (the calendar's busy title, else "Busy"), no notes, and no reminders. Each key must be in the event's mirrorCalendarIds. A calendar left out uses that calendar's default copy style. On update it REPLACES the map; {} clears it. Needs a plan with calendar sync. The whole series or scope:"future" only: one occurrence uses the style of its series. A read-only event takes it when the op changes only mirrorCalendarIds and mirrorStyles.

    • One form: op: "update"
      • Name
        id
        Type
        string, required
        Description

        The event id from a read. A bare series id addresses the whole series; seriesId@YYYY-MM-DD addresses one occurrence by its ORIGINAL date (the read's originalDate), also after the occurrence moved.

      • Name
        scope
        Type
        "future"
        Description

        Only with a seriesId@YYYY-MM-DD id: "future" edits that occurrence and every later one. Omit it to edit only that occurrence; a bare series id edits the whole series.

      • Name
        start
        Type
        string
        Description

        Local datetime "YYYY-MM-DDTHH:MM" (no seconds, offset or Z). The end must be after the start; an overnight or multi-day event just ends on a later day. A new start moves the event, also to another day (on an occurrence id, that occurrence only). A lone start keeps the duration.

      • Name
        end
        Type
        string
        Description

        Local datetime "YYYY-MM-DDTHH:MM" (no seconds, offset or Z). The end must be after the start; an overnight or multi-day event just ends on a later day. A lone end keeps the start.

      • Name
        name
        Type
        string
        Description
      • Name
        notes
        Type
        string
        Description
      • Name
        sourceUrl
        Type
        string | null
        Description

        Where this was captured from — the http(s) page address. Shown as a source chip; never parsed. Set it only for something grabbed off a real page, not for an intention the user typed.

      • Name
        areaId
        Type
        string | null
        Description

        The area id (from the schedule read). null clears the link; omit to keep it.

      • Name
        activityTypeId
        Type
        string | null
        Description

        The activity type id (from the schedule read). null clears the link; omit to keep it.

      • Name
        projectId
        Type
        string | null
        Description

        A live project id from get_schedule projects. When the project changes and the op sets no areaId, the event takes the area of the project. null clears the project and keeps the area; omit to keep it.

      • Name
        priority
        Type
        integer
        Description

        0 none, 1 low, 2 medium, 3 high, 4 urgent. Omit to keep it.

      • Name
        recurrence
        Type
        string | null
        Description

        A new RRULE for the series; null stops the repeat.

      • Name
        recurrenceEnd
        Type
        string
        Description

        Inclusive last day of the repeat, "YYYY-MM-DD". Needs recurrence.

      • Name
        kind
        Type
        "blocking" | "non_blocking" | "reference"
        Description

        Change the event kind: "blocking", "non_blocking", or "reference" (see-only — non-blocking, don't schedule work into it).

      • Name
        calendarId
        Type
        string | null
        Description

        Re-home the event: a calendar id (from the calendars list or the schedule's integrations) moves it to that calendar; null unlinks it and deletes its mirror copies (keeps the dial block); on an event with no calendar, null keeps it on the dial only. An unlink may carry start, end, name, notes, areaId, activityTypeId and kind, applied first in the same write. Omit to keep the current home. A calendar id needs a plan with calendar sync. On an occurrence id it forks that day, and with scope:"future" it splits the series; only the new row changes. Refused on a read-only event.

      • Name
        mirrorCalendarIds
        Type
        string[]
        Description

        The one-way copy calendars, as calendar ids. It must not contain the home calendarId. On update it REPLACES the set; [] clears it. An id already on the event may stay even if its calendar is read-only now; only an added id is checked. Adding an id requires Reassign Pro. On an occurrence id it forks that day, and with scope:"future" it splits the series; only the new row changes. A read-only event takes it when the op changes only mirrorCalendarIds and mirrorStyles, not with scope:"future".

      • Name
        mirrorStyles
        Type
        map of "full" | "private" | "busy"
        Description

        How much each copy shows, per copy calendar id: 'full' (default) copies the title and notes; 'private' keeps them but marks the copy private; 'busy' is a shield: a private copy with a neutral title (the calendar's busy title, else "Busy"), no notes, and no reminders. Each key must be in the event's mirrorCalendarIds. A calendar left out uses that calendar's default copy style. On update it REPLACES the map; {} clears it. Needs a plan with calendar sync. The whole series or scope:"future" only: one occurrence uses the style of its series. A read-only event takes it when the op changes only mirrorCalendarIds and mirrorStyles.

      • Name
        focusIntervals
        Type
        object | null
        Description

        Split a BLOCKING block into a repeating focus/break rhythm (pomodoro), e.g. {focusMin:25,breakMin:5}. The breaks fall BETWEEN the focus intervals and the block always ends on a focus. A non_blocking or reference event rejects it. Pass null to remove an existing rhythm.

        2 fields
        • Name
          focusMin
          Type
          integer, required
          Description
        • Name
          breakMin
          Type
          integer, required
          Description
    • One form: op: "shift"
      • Name
        id
        Type
        string, required
        Description

        The event id from a read. A bare series id addresses the whole series; seriesId@YYYY-MM-DD addresses one occurrence by its ORIGINAL date (the read's originalDate), also after the occurrence moved.

      • Name
        byMinutes
        Type
        integer, required
        Description

        Minutes to shift by; negative is earlier.

      • Name
        scope
        Type
        "future"
        Description

        Only with a seriesId@YYYY-MM-DD id: "future" edits that occurrence and every later one. Omit it to edit only that occurrence; a bare series id edits the whole series.

    • One form: op: "reflect"
      • Name
        id
        Type
        string, required
        Description

        The event id, echoed verbatim from a schedule or search read. To mark one occurrence of a recurring event, pass the seriesId@YYYY-MM-DD id the read returned for that day — don't fabricate the @date yourself.

      • Name
        status
        Type
        "kept" | "skipped" | "changed" | "added", required
        Description

        How a past planned event actually went. "kept" = happened as planned; "skipped" = didn't happen; "changed" = happened but differently (pass actualStart + actualEnd to record the real time); "added" = unplanned but happened (its actualStart + actualEnd become the event's time). Marking only records the reflection — it never renames or re-times the plan.

      • Name
        actualStart
        Type
        string
        Description

        When it actually started. Local datetime "YYYY-MM-DDTHH:MM" (no seconds, offset or Z). The end must be after the start; an overnight or multi-day event just ends on a later day. Send it with actualEnd, only for "changed" or "added". A "changed" start can be on the day before the event.

      • Name
        actualEnd
        Type
        string
        Description

        When it actually ended. Local datetime "YYYY-MM-DDTHH:MM" (no seconds, offset or Z). The end must be after the start; an overnight or multi-day event just ends on a later day. Send it with actualStart, only for "changed" or "added".

    • One form: op: "checklist"
      • Name
        id
        Type
        string, required
        Description

        The event id, echoed verbatim from a schedule or search read. A bare series id edits the template of the whole series; the seriesId@YYYY-MM-DD id edits or ticks off that one occurrence.

      • Name
        items
        Type
        object[]
        Description

        REPLACE the whole checklist with these microtasks, in order — add, rename, remove, and reorder are all expressed as the resulting list. Read the current items first, then send the full desired list. Pass [] to clear the checklist. A checkoff on a removed item is dropped automatically.

        3 fields
        • Name
          id
          Type
          string
          Description

          Keep an existing item's id; omit for a new item.

        • Name
          text
          Type
          string, required
          Description
        • Name
          done
          Type
          boolean
          Description

          true ticks the item off, false clears it; omit to keep the current state (a new item starts not done).

      • Name
        check
        Type
        string[]
        Description

        Item ids to mark DONE for the occurrence. On a recurring event this ticks off that occurrence only.

      • Name
        uncheck
        Type
        string[]
        Description

        Item ids to mark NOT-done for the occurrence.

    • One form: op: "delete"
      • Name
        id
        Type
        string, required
        Description

        The event id from a read. A bare series id addresses the whole series; seriesId@YYYY-MM-DD addresses one occurrence by its ORIGINAL date (the read's originalDate), also after the occurrence moved.

      • Name
        scope
        Type
        "future"
        Description

        Only with a seriesId@YYYY-MM-DD id: "future" edits that occurrence and every later one. Omit it to edit only that occurrence; a bare series id edits the whole series.

      • Name
        mode
        Type
        "delete"
        Description

        "delete" also deletes the linked task in its app permanently, as the app's Delete task does. Only a whole event with a task link takes it: send no scope and no occurrence id.

    • One form: op: "clear"
      • Name
        from
        Type
        string, required
        Description

        First day to clear, ISO "YYYY-MM-DD".

      • Name
        to
        Type
        string, required
        Description

        Last day to clear (inclusive), ISO "YYYY-MM-DD". Equal to from for one day.

    • One form: op: "focus"
      • Name
        action
        Type
        "start" | "pause" | "continue" | "skip_break" | "finish" | "discard", required
        Description

        The session action, as the web Focus panel names it.

      • Name
        id
        Type
        string
        Description

        The event id from a read. On start with expected, the planned blocking event that holds now; it becomes the session. On start with no expected, an optional client-minted UUID of a new block, so a retry does not start a second session.

      • Name
        focusIntervals
        Type
        object | null
        Description

        Split a BLOCKING block into a repeating focus/break rhythm (pomodoro), e.g. {focusMin:25,breakMin:5}. The breaks fall BETWEEN the focus intervals and the block always ends on a focus. A non_blocking or reference event rejects it. Pass null to remove an existing rhythm.

        2 fields
        • Name
          focusMin
          Type
          integer, required
          Description
        • Name
          breakMin
          Type
          integer, required
          Description
      • Name
        expected
        Type
        object
        Description
        3 fields
        • Name
          revision
          Type
          string, required
          Description

          The focusRevision of the read. A different stored state gives stale.

        • Name
          breakStart
          Type
          string
          Description

          skip_break only: the start of the automatic break that the client saw.

        • Name
          pastLimit
          Type
          true
          Description

          continue only: the client saw the session at its limit, so it asks for a new block. Without it a continue past the limit gives stale.

    • One form: op: "complete"
      • Name
        id
        Type
        string, required
        Description

        The event id from a read. A bare series id addresses the whole series; seriesId@YYYY-MM-DD addresses one occurrence by its ORIGINAL date (the read's originalDate), also after the occurrence moved.

      • Name
        done
        Type
        boolean, required
        Description

        True closes the linked task; false reopens it.

  • Name
    partial
    Type
    boolean
    Description

    Apply the ops that succeed instead of all or nothing.

Response fields

  • Name
    timezone
    Type
    string
    Description
  • Name
    undoToken
    Type
    string
    Description
  • Name
    expiresAt
    Type
    string
    Description
  • Name
    results
    Type
    object[], required
    Description
    3 forms
    • One form: status: "ok"
      • Name
        index
        Type
        integer, required
        Description
      • Name
        result
        Type
        object, required
        Description
        6 forms
        • One form: Without updated, previousId, ended, deletedIds, breakdown, items, truncated
          • Name
            created
            Type
            object, required
            Description
            35 fields
            • Name
              start
              Type
              string, required
              Description
            • Name
              end
              Type
              string, required
              Description
            • Name
              id
              Type
              string, required
              Description
            • Name
              seriesId
              Type
              string
              Description
            • Name
              originalDate
              Type
              string
              Description
            • Name
              kind
              Type
              "blocking" | "non_blocking" | "reference", required
              Description
            • Name
              name
              Type
              string, required
              Description
            • Name
              notes
              Type
              string
              Description
            • Name
              source
              Type
              "apple_calendar" | "apple_health" | "apple_reminders" | "caldav" | "google" | "google_health" | "google_tasks" | "linear" | "microsoft" | "microsoft_todo" | "ticktick" | "todoist" | "reassign", required
              Description
            • Name
              sourceUrl
              Type
              string
              Description
            • Name
              meeting
              Type
              object
              Description
              2 fields
              • Name
                url
                Type
                string, required
                Description
              • Name
                label
                Type
                string, required
                Description
            • Name
              location
              Type
              object
              Description
              2 fields
              • Name
                text
                Type
                string, required
                Description
              • Name
                url
                Type
                string
                Description
            • Name
              recurrence
              Type
              string
              Description
            • Name
              allDaySpan
              Type
              object
              Description
              4 fields
              • Name
                startDate
                Type
                string, required
                Description

                The first day of the event.

              • Name
                endDate
                Type
                string, required
                Description

                The last day of the event, inclusive.

              • Name
                days
                Type
                integer, required
                Description
              • Name
                dayIndex
                Type
                integer, required
                Description

                The position of this day in the event, from 1.

            • Name
              warning
              Type
              string
              Description
            • Name
              areaId
              Type
              string | null, required
              Description
            • Name
              activityTypeId
              Type
              string | null, required
              Description
            • Name
              projectId
              Type
              string | null, required
              Description
            • Name
              priority
              Type
              integer, required
              Description
            • Name
              calendarId
              Type
              string | null
              Description
            • Name
              homePending
              Type
              true
              Description

              Present when calendarId is a move to another calendar that the sync has not done yet. source still names the provider of the current calendar.

            • Name
              mirrorCalendarIds
              Type
              string[]
              Description
            • Name
              mirrorStyles
              Type
              map of "full" | "private" | "busy"
              Description
            • Name
              readOnly
              Type
              true
              Description

              The event is on a calendar that the user does not own. An update may change only mirrorCalendarIds and mirrorStyles, not with scope: "future". Any other field is read_only.

            • Name
              focusIntervals
              Type
              object
              Description
              2 fields
              • Name
                focusMin
                Type
                integer, required
                Description
              • Name
                breakMin
                Type
                integer, required
                Description
            • Name
              completedFocusIntervals
              Type
              integer
              Description
            • Name
              focusState
              Type
              "running" | "running_scheduled" | "paused" | "paused_scheduled"
              Description
            • Name
              focusBreaks
              Type
              object[]
              Description
              2 fields
              • Name
                start
                Type
                string, required
                Description
              • Name
                end
                Type
                string, required
                Description
            • Name
              focusExact
              Type
              object
              Description

              First-party only. The stored session to the millisecond, as local instants: start, end, breaks, and actualStart and actualEnd when recorded. Omitted when the event has no rhythm, marker, break or actual time.

              5 fields
              • Name
                start
                Type
                string, required
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                end
                Type
                string, required
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                breaks
                Type
                object[], required
                Description
                2 fields
                • Name
                  start
                  Type
                  string, required
                  Description

                  A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

                • Name
                  end
                  Type
                  string, required
                  Description

                  A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                actualStart
                Type
                string
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                actualEnd
                Type
                string
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

            • Name
              exactStart
              Type
              string
              Description

              First-party only. The local instant of the start of a blocking event, only when it is not a whole minute.

            • Name
              focusRevision
              Type
              string
              Description

              First-party only. An opaque version of the session state, which expected.revision of a focus op repeats. Present on a blocking event and on a row with a marker.

            • Name
              taskDone
              Type
              true
              Description
            • Name
              energyRole
              Type
              string
              Description
            • Name
              checklist
              Type
              object
              Description
              1 fields
              • Name
                items
                Type
                object[], required
                Description
                3 fields
                • Name
                  id
                  Type
                  string, required
                  Description
                • Name
                  text
                  Type
                  string, required
                  Description
                • Name
                  done
                  Type
                  boolean, required
                  Description
            • Name
              reflect
              Type
              object
              Description
              2 forms
              • One form: Without actualStart, actualEnd
                • Name
                  status
                  Type
                  "kept" | "skipped" | "changed" | "added", required
                  Description
              • One form: With actualStart, actualEnd
                • Name
                  status
                  Type
                  "changed", required
                  Description
                • Name
                  actualStart
                  Type
                  string, required
                  Description

                  It can be on the day before the event, as a Health night is.

                • Name
                  actualEnd
                  Type
                  string, required
                  Description
          • Name
            firstOccurrence
            Type
            string
            Description
        • One form: Without created, previousId, ended, deletedIds, breakdown, items, truncated
          • Name
            updated
            Type
            object, required
            Description
            35 fields
            • Name
              start
              Type
              string, required
              Description
            • Name
              end
              Type
              string, required
              Description
            • Name
              id
              Type
              string, required
              Description
            • Name
              seriesId
              Type
              string
              Description
            • Name
              originalDate
              Type
              string
              Description
            • Name
              kind
              Type
              "blocking" | "non_blocking" | "reference", required
              Description
            • Name
              name
              Type
              string, required
              Description
            • Name
              notes
              Type
              string
              Description
            • Name
              source
              Type
              "apple_calendar" | "apple_health" | "apple_reminders" | "caldav" | "google" | "google_health" | "google_tasks" | "linear" | "microsoft" | "microsoft_todo" | "ticktick" | "todoist" | "reassign", required
              Description
            • Name
              sourceUrl
              Type
              string
              Description
            • Name
              meeting
              Type
              object
              Description
              2 fields
              • Name
                url
                Type
                string, required
                Description
              • Name
                label
                Type
                string, required
                Description
            • Name
              location
              Type
              object
              Description
              2 fields
              • Name
                text
                Type
                string, required
                Description
              • Name
                url
                Type
                string
                Description
            • Name
              recurrence
              Type
              string
              Description
            • Name
              allDaySpan
              Type
              object
              Description
              4 fields
              • Name
                startDate
                Type
                string, required
                Description

                The first day of the event.

              • Name
                endDate
                Type
                string, required
                Description

                The last day of the event, inclusive.

              • Name
                days
                Type
                integer, required
                Description
              • Name
                dayIndex
                Type
                integer, required
                Description

                The position of this day in the event, from 1.

            • Name
              warning
              Type
              string
              Description
            • Name
              areaId
              Type
              string | null, required
              Description
            • Name
              activityTypeId
              Type
              string | null, required
              Description
            • Name
              projectId
              Type
              string | null, required
              Description
            • Name
              priority
              Type
              integer, required
              Description
            • Name
              calendarId
              Type
              string | null
              Description
            • Name
              homePending
              Type
              true
              Description

              Present when calendarId is a move to another calendar that the sync has not done yet. source still names the provider of the current calendar.

            • Name
              mirrorCalendarIds
              Type
              string[]
              Description
            • Name
              mirrorStyles
              Type
              map of "full" | "private" | "busy"
              Description
            • Name
              readOnly
              Type
              true
              Description

              The event is on a calendar that the user does not own. An update may change only mirrorCalendarIds and mirrorStyles, not with scope: "future". Any other field is read_only.

            • Name
              focusIntervals
              Type
              object
              Description
              2 fields
              • Name
                focusMin
                Type
                integer, required
                Description
              • Name
                breakMin
                Type
                integer, required
                Description
            • Name
              completedFocusIntervals
              Type
              integer
              Description
            • Name
              focusState
              Type
              "running" | "running_scheduled" | "paused" | "paused_scheduled"
              Description
            • Name
              focusBreaks
              Type
              object[]
              Description
              2 fields
              • Name
                start
                Type
                string, required
                Description
              • Name
                end
                Type
                string, required
                Description
            • Name
              focusExact
              Type
              object
              Description

              First-party only. The stored session to the millisecond, as local instants: start, end, breaks, and actualStart and actualEnd when recorded. Omitted when the event has no rhythm, marker, break or actual time.

              5 fields
              • Name
                start
                Type
                string, required
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                end
                Type
                string, required
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                breaks
                Type
                object[], required
                Description
                2 fields
                • Name
                  start
                  Type
                  string, required
                  Description

                  A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

                • Name
                  end
                  Type
                  string, required
                  Description

                  A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                actualStart
                Type
                string
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                actualEnd
                Type
                string
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

            • Name
              exactStart
              Type
              string
              Description

              First-party only. The local instant of the start of a blocking event, only when it is not a whole minute.

            • Name
              focusRevision
              Type
              string
              Description

              First-party only. An opaque version of the session state, which expected.revision of a focus op repeats. Present on a blocking event and on a row with a marker.

            • Name
              taskDone
              Type
              true
              Description
            • Name
              energyRole
              Type
              string
              Description
            • Name
              checklist
              Type
              object
              Description
              1 fields
              • Name
                items
                Type
                object[], required
                Description
                3 fields
                • Name
                  id
                  Type
                  string, required
                  Description
                • Name
                  text
                  Type
                  string, required
                  Description
                • Name
                  done
                  Type
                  boolean, required
                  Description
            • Name
              reflect
              Type
              object
              Description
              2 forms
              • One form: Without actualStart, actualEnd
                • Name
                  status
                  Type
                  "kept" | "skipped" | "changed" | "added", required
                  Description
              • One form: With actualStart, actualEnd
                • Name
                  status
                  Type
                  "changed", required
                  Description
                • Name
                  actualStart
                  Type
                  string, required
                  Description

                  It can be on the day before the event, as a Health night is.

                • Name
                  actualEnd
                  Type
                  string, required
                  Description
          • Name
            firstOccurrence
            Type
            string
            Description
          • Name
            notice
            Type
            string
            Description

            What happened to the calendar event, when it stays in place.

        • One form: With previousId
          • Name
            created
            Type
            object, required
            Description
            35 fields
            • Name
              start
              Type
              string, required
              Description
            • Name
              end
              Type
              string, required
              Description
            • Name
              id
              Type
              string, required
              Description
            • Name
              seriesId
              Type
              string
              Description
            • Name
              originalDate
              Type
              string
              Description
            • Name
              kind
              Type
              "blocking" | "non_blocking" | "reference", required
              Description
            • Name
              name
              Type
              string, required
              Description
            • Name
              notes
              Type
              string
              Description
            • Name
              source
              Type
              "apple_calendar" | "apple_health" | "apple_reminders" | "caldav" | "google" | "google_health" | "google_tasks" | "linear" | "microsoft" | "microsoft_todo" | "ticktick" | "todoist" | "reassign", required
              Description
            • Name
              sourceUrl
              Type
              string
              Description
            • Name
              meeting
              Type
              object
              Description
              2 fields
              • Name
                url
                Type
                string, required
                Description
              • Name
                label
                Type
                string, required
                Description
            • Name
              location
              Type
              object
              Description
              2 fields
              • Name
                text
                Type
                string, required
                Description
              • Name
                url
                Type
                string
                Description
            • Name
              recurrence
              Type
              string
              Description
            • Name
              allDaySpan
              Type
              object
              Description
              4 fields
              • Name
                startDate
                Type
                string, required
                Description

                The first day of the event.

              • Name
                endDate
                Type
                string, required
                Description

                The last day of the event, inclusive.

              • Name
                days
                Type
                integer, required
                Description
              • Name
                dayIndex
                Type
                integer, required
                Description

                The position of this day in the event, from 1.

            • Name
              warning
              Type
              string
              Description
            • Name
              areaId
              Type
              string | null, required
              Description
            • Name
              activityTypeId
              Type
              string | null, required
              Description
            • Name
              projectId
              Type
              string | null, required
              Description
            • Name
              priority
              Type
              integer, required
              Description
            • Name
              calendarId
              Type
              string | null
              Description
            • Name
              homePending
              Type
              true
              Description

              Present when calendarId is a move to another calendar that the sync has not done yet. source still names the provider of the current calendar.

            • Name
              mirrorCalendarIds
              Type
              string[]
              Description
            • Name
              mirrorStyles
              Type
              map of "full" | "private" | "busy"
              Description
            • Name
              readOnly
              Type
              true
              Description

              The event is on a calendar that the user does not own. An update may change only mirrorCalendarIds and mirrorStyles, not with scope: "future". Any other field is read_only.

            • Name
              focusIntervals
              Type
              object
              Description
              2 fields
              • Name
                focusMin
                Type
                integer, required
                Description
              • Name
                breakMin
                Type
                integer, required
                Description
            • Name
              completedFocusIntervals
              Type
              integer
              Description
            • Name
              focusState
              Type
              "running" | "running_scheduled" | "paused" | "paused_scheduled"
              Description
            • Name
              focusBreaks
              Type
              object[]
              Description
              2 fields
              • Name
                start
                Type
                string, required
                Description
              • Name
                end
                Type
                string, required
                Description
            • Name
              focusExact
              Type
              object
              Description

              First-party only. The stored session to the millisecond, as local instants: start, end, breaks, and actualStart and actualEnd when recorded. Omitted when the event has no rhythm, marker, break or actual time.

              5 fields
              • Name
                start
                Type
                string, required
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                end
                Type
                string, required
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                breaks
                Type
                object[], required
                Description
                2 fields
                • Name
                  start
                  Type
                  string, required
                  Description

                  A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

                • Name
                  end
                  Type
                  string, required
                  Description

                  A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                actualStart
                Type
                string
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                actualEnd
                Type
                string
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

            • Name
              exactStart
              Type
              string
              Description

              First-party only. The local instant of the start of a blocking event, only when it is not a whole minute.

            • Name
              focusRevision
              Type
              string
              Description

              First-party only. An opaque version of the session state, which expected.revision of a focus op repeats. Present on a blocking event and on a row with a marker.

            • Name
              taskDone
              Type
              true
              Description
            • Name
              energyRole
              Type
              string
              Description
            • Name
              checklist
              Type
              object
              Description
              1 fields
              • Name
                items
                Type
                object[], required
                Description
                3 fields
                • Name
                  id
                  Type
                  string, required
                  Description
                • Name
                  text
                  Type
                  string, required
                  Description
                • Name
                  done
                  Type
                  boolean, required
                  Description
            • Name
              reflect
              Type
              object
              Description
              2 forms
              • One form: Without actualStart, actualEnd
                • Name
                  status
                  Type
                  "kept" | "skipped" | "changed" | "added", required
                  Description
              • One form: With actualStart, actualEnd
                • Name
                  status
                  Type
                  "changed", required
                  Description
                • Name
                  actualStart
                  Type
                  string, required
                  Description

                  It can be on the day before the event, as a Health night is.

                • Name
                  actualEnd
                  Type
                  string, required
                  Description
          • Name
            previousId
            Type
            string, required
            Description
        • One form: With ended
          • Name
            updated
            Type
            object, required
            Description
            35 fields
            • Name
              start
              Type
              string, required
              Description
            • Name
              end
              Type
              string, required
              Description
            • Name
              id
              Type
              string, required
              Description
            • Name
              seriesId
              Type
              string
              Description
            • Name
              originalDate
              Type
              string
              Description
            • Name
              kind
              Type
              "blocking" | "non_blocking" | "reference", required
              Description
            • Name
              name
              Type
              string, required
              Description
            • Name
              notes
              Type
              string
              Description
            • Name
              source
              Type
              "apple_calendar" | "apple_health" | "apple_reminders" | "caldav" | "google" | "google_health" | "google_tasks" | "linear" | "microsoft" | "microsoft_todo" | "ticktick" | "todoist" | "reassign", required
              Description
            • Name
              sourceUrl
              Type
              string
              Description
            • Name
              meeting
              Type
              object
              Description
              2 fields
              • Name
                url
                Type
                string, required
                Description
              • Name
                label
                Type
                string, required
                Description
            • Name
              location
              Type
              object
              Description
              2 fields
              • Name
                text
                Type
                string, required
                Description
              • Name
                url
                Type
                string
                Description
            • Name
              recurrence
              Type
              string
              Description
            • Name
              allDaySpan
              Type
              object
              Description
              4 fields
              • Name
                startDate
                Type
                string, required
                Description

                The first day of the event.

              • Name
                endDate
                Type
                string, required
                Description

                The last day of the event, inclusive.

              • Name
                days
                Type
                integer, required
                Description
              • Name
                dayIndex
                Type
                integer, required
                Description

                The position of this day in the event, from 1.

            • Name
              warning
              Type
              string
              Description
            • Name
              areaId
              Type
              string | null, required
              Description
            • Name
              activityTypeId
              Type
              string | null, required
              Description
            • Name
              projectId
              Type
              string | null, required
              Description
            • Name
              priority
              Type
              integer, required
              Description
            • Name
              calendarId
              Type
              string | null
              Description
            • Name
              homePending
              Type
              true
              Description

              Present when calendarId is a move to another calendar that the sync has not done yet. source still names the provider of the current calendar.

            • Name
              mirrorCalendarIds
              Type
              string[]
              Description
            • Name
              mirrorStyles
              Type
              map of "full" | "private" | "busy"
              Description
            • Name
              readOnly
              Type
              true
              Description

              The event is on a calendar that the user does not own. An update may change only mirrorCalendarIds and mirrorStyles, not with scope: "future". Any other field is read_only.

            • Name
              focusIntervals
              Type
              object
              Description
              2 fields
              • Name
                focusMin
                Type
                integer, required
                Description
              • Name
                breakMin
                Type
                integer, required
                Description
            • Name
              completedFocusIntervals
              Type
              integer
              Description
            • Name
              focusState
              Type
              "running" | "running_scheduled" | "paused" | "paused_scheduled"
              Description
            • Name
              focusBreaks
              Type
              object[]
              Description
              2 fields
              • Name
                start
                Type
                string, required
                Description
              • Name
                end
                Type
                string, required
                Description
            • Name
              focusExact
              Type
              object
              Description

              First-party only. The stored session to the millisecond, as local instants: start, end, breaks, and actualStart and actualEnd when recorded. Omitted when the event has no rhythm, marker, break or actual time.

              5 fields
              • Name
                start
                Type
                string, required
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                end
                Type
                string, required
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                breaks
                Type
                object[], required
                Description
                2 fields
                • Name
                  start
                  Type
                  string, required
                  Description

                  A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

                • Name
                  end
                  Type
                  string, required
                  Description

                  A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                actualStart
                Type
                string
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                actualEnd
                Type
                string
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

            • Name
              exactStart
              Type
              string
              Description

              First-party only. The local instant of the start of a blocking event, only when it is not a whole minute.

            • Name
              focusRevision
              Type
              string
              Description

              First-party only. An opaque version of the session state, which expected.revision of a focus op repeats. Present on a blocking event and on a row with a marker.

            • Name
              taskDone
              Type
              true
              Description
            • Name
              energyRole
              Type
              string
              Description
            • Name
              checklist
              Type
              object
              Description
              1 fields
              • Name
                items
                Type
                object[], required
                Description
                3 fields
                • Name
                  id
                  Type
                  string, required
                  Description
                • Name
                  text
                  Type
                  string, required
                  Description
                • Name
                  done
                  Type
                  boolean, required
                  Description
            • Name
              reflect
              Type
              object
              Description
              2 forms
              • One form: Without actualStart, actualEnd
                • Name
                  status
                  Type
                  "kept" | "skipped" | "changed" | "added", required
                  Description
              • One form: With actualStart, actualEnd
                • Name
                  status
                  Type
                  "changed", required
                  Description
                • Name
                  actualStart
                  Type
                  string, required
                  Description

                  It can be on the day before the event, as a Health night is.

                • Name
                  actualEnd
                  Type
                  string, required
                  Description
          • Name
            ended
            Type
            object[], required
            Description

            The other events that the start ended: a finished marker, or a blocking event that ran now.

            35 fields
            • Name
              start
              Type
              string, required
              Description
            • Name
              end
              Type
              string, required
              Description
            • Name
              id
              Type
              string, required
              Description
            • Name
              seriesId
              Type
              string
              Description
            • Name
              originalDate
              Type
              string
              Description
            • Name
              kind
              Type
              "blocking" | "non_blocking" | "reference", required
              Description
            • Name
              name
              Type
              string, required
              Description
            • Name
              notes
              Type
              string
              Description
            • Name
              source
              Type
              "apple_calendar" | "apple_health" | "apple_reminders" | "caldav" | "google" | "google_health" | "google_tasks" | "linear" | "microsoft" | "microsoft_todo" | "ticktick" | "todoist" | "reassign", required
              Description
            • Name
              sourceUrl
              Type
              string
              Description
            • Name
              meeting
              Type
              object
              Description
              2 fields
              • Name
                url
                Type
                string, required
                Description
              • Name
                label
                Type
                string, required
                Description
            • Name
              location
              Type
              object
              Description
              2 fields
              • Name
                text
                Type
                string, required
                Description
              • Name
                url
                Type
                string
                Description
            • Name
              recurrence
              Type
              string
              Description
            • Name
              allDaySpan
              Type
              object
              Description
              4 fields
              • Name
                startDate
                Type
                string, required
                Description

                The first day of the event.

              • Name
                endDate
                Type
                string, required
                Description

                The last day of the event, inclusive.

              • Name
                days
                Type
                integer, required
                Description
              • Name
                dayIndex
                Type
                integer, required
                Description

                The position of this day in the event, from 1.

            • Name
              warning
              Type
              string
              Description
            • Name
              areaId
              Type
              string | null, required
              Description
            • Name
              activityTypeId
              Type
              string | null, required
              Description
            • Name
              projectId
              Type
              string | null, required
              Description
            • Name
              priority
              Type
              integer, required
              Description
            • Name
              calendarId
              Type
              string | null
              Description
            • Name
              homePending
              Type
              true
              Description

              Present when calendarId is a move to another calendar that the sync has not done yet. source still names the provider of the current calendar.

            • Name
              mirrorCalendarIds
              Type
              string[]
              Description
            • Name
              mirrorStyles
              Type
              map of "full" | "private" | "busy"
              Description
            • Name
              readOnly
              Type
              true
              Description

              The event is on a calendar that the user does not own. An update may change only mirrorCalendarIds and mirrorStyles, not with scope: "future". Any other field is read_only.

            • Name
              focusIntervals
              Type
              object
              Description
              2 fields
              • Name
                focusMin
                Type
                integer, required
                Description
              • Name
                breakMin
                Type
                integer, required
                Description
            • Name
              completedFocusIntervals
              Type
              integer
              Description
            • Name
              focusState
              Type
              "running" | "running_scheduled" | "paused" | "paused_scheduled"
              Description
            • Name
              focusBreaks
              Type
              object[]
              Description
              2 fields
              • Name
                start
                Type
                string, required
                Description
              • Name
                end
                Type
                string, required
                Description
            • Name
              focusExact
              Type
              object
              Description

              First-party only. The stored session to the millisecond, as local instants: start, end, breaks, and actualStart and actualEnd when recorded. Omitted when the event has no rhythm, marker, break or actual time.

              5 fields
              • Name
                start
                Type
                string, required
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                end
                Type
                string, required
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                breaks
                Type
                object[], required
                Description
                2 fields
                • Name
                  start
                  Type
                  string, required
                  Description

                  A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

                • Name
                  end
                  Type
                  string, required
                  Description

                  A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                actualStart
                Type
                string
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                actualEnd
                Type
                string
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

            • Name
              exactStart
              Type
              string
              Description

              First-party only. The local instant of the start of a blocking event, only when it is not a whole minute.

            • Name
              focusRevision
              Type
              string
              Description

              First-party only. An opaque version of the session state, which expected.revision of a focus op repeats. Present on a blocking event and on a row with a marker.

            • Name
              taskDone
              Type
              true
              Description
            • Name
              energyRole
              Type
              string
              Description
            • Name
              checklist
              Type
              object
              Description
              1 fields
              • Name
                items
                Type
                object[], required
                Description
                3 fields
                • Name
                  id
                  Type
                  string, required
                  Description
                • Name
                  text
                  Type
                  string, required
                  Description
                • Name
                  done
                  Type
                  boolean, required
                  Description
            • Name
              reflect
              Type
              object
              Description
              2 forms
              • One form: Without actualStart, actualEnd
                • Name
                  status
                  Type
                  "kept" | "skipped" | "changed" | "added", required
                  Description
              • One form: With actualStart, actualEnd
                • Name
                  status
                  Type
                  "changed", required
                  Description
                • Name
                  actualStart
                  Type
                  string, required
                  Description

                  It can be on the day before the event, as a Health night is.

                • Name
                  actualEnd
                  Type
                  string, required
                  Description
          • Name
            deletedIds
            Type
            string[]
            Description

            An ad-hoc block with no time left, which the finish deleted.

        • One form: With deletedIds
          • Name
            deletedIds
            Type
            string[], required
            Description
          • Name
            updated
            Type
            object
            Description
            35 fields
            • Name
              start
              Type
              string, required
              Description
            • Name
              end
              Type
              string, required
              Description
            • Name
              id
              Type
              string, required
              Description
            • Name
              seriesId
              Type
              string
              Description
            • Name
              originalDate
              Type
              string
              Description
            • Name
              kind
              Type
              "blocking" | "non_blocking" | "reference", required
              Description
            • Name
              name
              Type
              string, required
              Description
            • Name
              notes
              Type
              string
              Description
            • Name
              source
              Type
              "apple_calendar" | "apple_health" | "apple_reminders" | "caldav" | "google" | "google_health" | "google_tasks" | "linear" | "microsoft" | "microsoft_todo" | "ticktick" | "todoist" | "reassign", required
              Description
            • Name
              sourceUrl
              Type
              string
              Description
            • Name
              meeting
              Type
              object
              Description
              2 fields
              • Name
                url
                Type
                string, required
                Description
              • Name
                label
                Type
                string, required
                Description
            • Name
              location
              Type
              object
              Description
              2 fields
              • Name
                text
                Type
                string, required
                Description
              • Name
                url
                Type
                string
                Description
            • Name
              recurrence
              Type
              string
              Description
            • Name
              allDaySpan
              Type
              object
              Description
              4 fields
              • Name
                startDate
                Type
                string, required
                Description

                The first day of the event.

              • Name
                endDate
                Type
                string, required
                Description

                The last day of the event, inclusive.

              • Name
                days
                Type
                integer, required
                Description
              • Name
                dayIndex
                Type
                integer, required
                Description

                The position of this day in the event, from 1.

            • Name
              warning
              Type
              string
              Description
            • Name
              areaId
              Type
              string | null, required
              Description
            • Name
              activityTypeId
              Type
              string | null, required
              Description
            • Name
              projectId
              Type
              string | null, required
              Description
            • Name
              priority
              Type
              integer, required
              Description
            • Name
              calendarId
              Type
              string | null
              Description
            • Name
              homePending
              Type
              true
              Description

              Present when calendarId is a move to another calendar that the sync has not done yet. source still names the provider of the current calendar.

            • Name
              mirrorCalendarIds
              Type
              string[]
              Description
            • Name
              mirrorStyles
              Type
              map of "full" | "private" | "busy"
              Description
            • Name
              readOnly
              Type
              true
              Description

              The event is on a calendar that the user does not own. An update may change only mirrorCalendarIds and mirrorStyles, not with scope: "future". Any other field is read_only.

            • Name
              focusIntervals
              Type
              object
              Description
              2 fields
              • Name
                focusMin
                Type
                integer, required
                Description
              • Name
                breakMin
                Type
                integer, required
                Description
            • Name
              completedFocusIntervals
              Type
              integer
              Description
            • Name
              focusState
              Type
              "running" | "running_scheduled" | "paused" | "paused_scheduled"
              Description
            • Name
              focusBreaks
              Type
              object[]
              Description
              2 fields
              • Name
                start
                Type
                string, required
                Description
              • Name
                end
                Type
                string, required
                Description
            • Name
              focusExact
              Type
              object
              Description

              First-party only. The stored session to the millisecond, as local instants: start, end, breaks, and actualStart and actualEnd when recorded. Omitted when the event has no rhythm, marker, break or actual time.

              5 fields
              • Name
                start
                Type
                string, required
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                end
                Type
                string, required
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                breaks
                Type
                object[], required
                Description
                2 fields
                • Name
                  start
                  Type
                  string, required
                  Description

                  A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

                • Name
                  end
                  Type
                  string, required
                  Description

                  A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                actualStart
                Type
                string
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

              • Name
                actualEnd
                Type
                string
                Description

                A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

            • Name
              exactStart
              Type
              string
              Description

              First-party only. The local instant of the start of a blocking event, only when it is not a whole minute.

            • Name
              focusRevision
              Type
              string
              Description

              First-party only. An opaque version of the session state, which expected.revision of a focus op repeats. Present on a blocking event and on a row with a marker.

            • Name
              taskDone
              Type
              true
              Description
            • Name
              energyRole
              Type
              string
              Description
            • Name
              checklist
              Type
              object
              Description
              1 fields
              • Name
                items
                Type
                object[], required
                Description
                3 fields
                • Name
                  id
                  Type
                  string, required
                  Description
                • Name
                  text
                  Type
                  string, required
                  Description
                • Name
                  done
                  Type
                  boolean, required
                  Description
            • Name
              reflect
              Type
              object
              Description
              2 forms
              • One form: Without actualStart, actualEnd
                • Name
                  status
                  Type
                  "kept" | "skipped" | "changed" | "added", required
                  Description
              • One form: With actualStart, actualEnd
                • Name
                  status
                  Type
                  "changed", required
                  Description
                • Name
                  actualStart
                  Type
                  string, required
                  Description

                  It can be on the day before the event, as a Health night is.

                • Name
                  actualEnd
                  Type
                  string, required
                  Description
          • Name
            notice
            Type
            string
            Description

            What happened to the calendar event, when it stays in place.

        • One form: With breakdown, items, truncated
          • Name
            breakdown
            Type
            object, required
            Description
            3 fields
            • Name
              oneOff
              Type
              integer, required
              Description
            • Name
              recurringOccurrence
              Type
              integer, required
              Description
            • Name
              override
              Type
              integer, required
              Description
          • Name
            items
            Type
            object[], required
            Description
            2 fields
            • Name
              date
              Type
              string, required
              Description
            • Name
              name
              Type
              string, required
              Description
          • Name
            truncated
            Type
            boolean, required
            Description
          • Name
            skippedMultiDay
            Type
            integer
            Description

            The multi-day all-day events that a clear leaves in place.

          • Name
            notice
            Type
            string
            Description
      • Name
        warnings
        Type
        "classification_pending"[]
        Description
    • One form: status: "error"
      • Name
        index
        Type
        integer, required
        Description
      • Name
        error
        Type
        object, required
        Description
        11 fields
        • Name
          code
          Type
          "conflict" | "not_found" | "validation" | "permission" | "scope" | "stale" | "read_only" | "rate_limited" | "internal", required
          Description
        • Name
          message
          Type
          string, required
          Description
        • Name
          issues
          Type
          object[]
          Description
          3 fields
          • Name
            path
            Type
            string | integer[], required
            Description
          • Name
            message
            Type
            string, required
            Description
          • Name
            expected
            Type
            string
            Description
        • Name
          feature
          Type
          string
          Description
        • Name
          conflictingRows
          Type
          object[]
          Description
          3 fields
          • Name
            entity
            Type
            string, required
            Description
          • Name
            id
            Type
            string, required
            Description
          • Name
            reason
            Type
            "changed" | "deleted" | "newly_present", required
            Description
        • Name
          conflictingRowsTruncated
          Type
          true
          Description
        • Name
          usage
          Type
          object
          Description
          5 fields
          • Name
            events
            Type
            integer, required
            Description
          • Name
            inboxItems
            Type
            integer, required
            Description
          • Name
            trackers
            Type
            integer, required
            Description
          • Name
            calendars
            Type
            integer, required
            Description
          • Name
            projects
            Type
            integer
            Description
        • Name
          reassignTargets
          Type
          object[]
          Description
          2 fields
          • Name
            id
            Type
            string, required
            Description
          • Name
            name
            Type
            string, required
            Description
        • Name
          unlinkedCheckout
          Type
          object
          Description
          3 fields
          • Name
            sessionId
            Type
            string, required
            Description
          • Name
            paymentReceived
            Type
            boolean, required
            Description
          • Name
            supportUrl
            Type
            string, required
            Description
        • Name
          conflicts
          Type
          object[]
          Description
          2 forms
          • One form: With id
            • Name
              start
              Type
              string, required
              Description
            • Name
              end
              Type
              string, required
              Description
            • Name
              id
              Type
              string, required
              Description
            • Name
              name
              Type
              string, required
              Description
          • One form: With batchIndex
            • Name
              start
              Type
              string, required
              Description
            • Name
              end
              Type
              string, required
              Description
            • Name
              batchIndex
              Type
              integer, required
              Description
            • Name
              name
              Type
              string, required
              Description
        • Name
          nearestSlots
          Type
          object[]
          Description
          4 fields
          • Name
            start
            Type
            string, required
            Description
          • Name
            end
            Type
            string, required
            Description
          • Name
            score
            Type
            number
            Description
          • Name
            reason
            Type
            string
            Description
    • One form: status: "skipped"
      • Name
        index
        Type
        integer, required
        Description
      • Name
        reason
        Type
        string, required
        Description

Responses

StatusCodesMeaning
200—Success.
400batch_rejectedEvery op failed, and the failed ops have different codes. The code is batch_rejected.
401unauthorizedNo Bearer token and no session cookie, or the token is invalid, expired, or revoked. The response carries a WWW-Authenticate challenge that points at the protected-resource metadata.
403permissionscoperead_onlyA token without events:write gets scope "This token is not authorized to modify events (missing events:write scope)." An account without Reassign Pro access gets permission "Reassign needs an active subscription." The 14-day free trial includes Reassign Pro. A cookie session from another site gets permission "Cross-origin request." A rejected batch also answers 403 when every failed op has the same code: read_only (the event or the target calendar is not writable, or the op changes the kind of an all-day calendar event) or permission (a calendar sync needs Reassign Pro).
404not_foundAn op names an item that does not exist.
409conflictThe request conflicts with the current state: conflict "The time overlaps an existing event." or conflict "The time overlaps an earlier op in this batch." or conflict "An event with this ID already exists."
422validationThe request body is not valid. The message names the first bad field by its path. A repeated or unknown query parameter is also a 422.
429rate_limitedToo many requests. The edge firewall limits each IP to 2000 requests per minute across /api/v1; that 429 comes from the edge and can have a body that is not this JSON and no Retry-After header. When an edge 429 has no Retry-After, retry after 60 seconds. The app also limits each Bearer credential to 600 requests per minute, and some routes limit each user. These limits return this body. This app 429 always has Retry-After: retry after that number of seconds.
503internalA fault on our side. The request is safe to retry.

Most error responses: When no op of the batch applied, the body also has the results rows, so the caller sees which op failed.

Request

POST
/api/v1/events
curl -X POST "https://reassign.app/api/v1/events" \
  -H "Authorization: Bearer rsk_live_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "ops": [
    {
      "op": "create",
      "name": "Deep work",
      "start": "2026-08-14T09:00",
      "end": "2026-08-14T10:30",
      "areaId": "3c9d2a41-6b7e-4f80-9a1b-2c3d4e5f6071",
      "activityTypeId": "5e6f7081-92a3-4b4c-8d5e-6f708192a3b4",
      "notes": "Draft the launch post.",
      "calendarId": "8a1f0c2e-3b4d-4e5f-9a0b-1c2d3e4f5061"
    },
    {
      "op": "update",
      "id": "c4d5e6f7-0819-4a2b-8c3d-4e5f60718293@2026-08-15",
      "start": "2026-08-15T16:00"
    },
    {
      "op": "delete",
      "id": "c4d5e6f7-0819-4a2b-8c3d-4e5f60718293@2026-08-16"
    }
  ]
}'

Response

{
  "timezone": "Europe/Ljubljana",
  "undoToken": "00000000-0000-4000-8000-000000000001",
  "expiresAt": "2026-08-13T09:12:00.000Z",
  "results": [
    {
      "index": 0,
      "status": "ok",
      "result": {
        "created": {
          "id": "b7f1c2a0-1d2e-4f3a-9b8c-5d6e7f801234",
          "start": "2026-08-14T09:00",
          "end": "2026-08-14T10:30",
          "kind": "blocking",
          "name": "Deep work",
          "notes": "Draft the launch post.",
          "source": "reassign",
          "areaId": "3c9d2a41-6b7e-4f80-9a1b-2c3d4e5f6071",
          "activityTypeId": "5e6f7081-92a3-4b4c-8d5e-6f708192a3b4",
          "projectId": null,
          "priority": 0,
          "calendarId": "8a1f0c2e-3b4d-4e5f-9a0b-1c2d3e4f5061",
          "focusRevision": "c17e0d4ba926f358"
        }
      }
    },
    {
      "index": 1,
      "status": "ok",
      "result": {
        "updated": {
          "id": "c4d5e6f7-0819-4a2b-8c3d-4e5f60718293@2026-08-15",
          "seriesId": "c4d5e6f7-0819-4a2b-8c3d-4e5f60718293",
          "originalDate": "2026-08-15",
          "start": "2026-08-15T16:00",
          "end": "2026-08-15T17:30",
          "kind": "blocking",
          "name": "Deep work",
          "recurrence": "FREQ=DAILY",
          "source": "reassign",
          "areaId": "3c9d2a41-6b7e-4f80-9a1b-2c3d4e5f6071",
          "activityTypeId": "5e6f7081-92a3-4b4c-8d5e-6f708192a3b4",
          "projectId": null,
          "priority": 0,
          "focusRevision": "3be07a91c4d2f685"
        }
      }
    },
    {
      "index": 2,
      "status": "ok",
      "result": {
        "deletedIds": [
          "c4d5e6f7-0819-4a2b-8c3d-4e5f60718293@2026-08-16"
        ]
      }
    }
  ]
}

GET/api/v1/events/{id}

Get an event

Get one event and the timezone of its span. Scope: events:read.

  • A one-off event: send its id.
  • One occurrence of a series: send the occurrence id seriesId@YYYY-MM-DD.
  • A bare series id returns 404 not_found. The API looks for the id in the events of the first day of the series, and there each occurrence has an occurrence id.
  • A changed occurrence keeps its id seriesId@<original date>. This id finds the occurrence also after a move to another day.
  • A stored id of a changed occurrence from an older write result also works. The response then gives event.id as seriesId@<original date>.
  • An unknown id returns 404 with the message Event not found.

Path parameters

  • Name
    id
    Type
    string, required
    Description

    The event id, or seriesId@YYYY-MM-DD for one occurrence.

Response fields

  • Name
    event
    Type
    object, required
    Description
    35 fields
    • Name
      start
      Type
      string, required
      Description
    • Name
      end
      Type
      string, required
      Description
    • Name
      id
      Type
      string, required
      Description
    • Name
      seriesId
      Type
      string
      Description
    • Name
      originalDate
      Type
      string
      Description
    • Name
      kind
      Type
      "blocking" | "non_blocking" | "reference", required
      Description
    • Name
      name
      Type
      string, required
      Description
    • Name
      notes
      Type
      string
      Description
    • Name
      source
      Type
      "apple_calendar" | "apple_health" | "apple_reminders" | "caldav" | "google" | "google_health" | "google_tasks" | "linear" | "microsoft" | "microsoft_todo" | "ticktick" | "todoist" | "reassign", required
      Description
    • Name
      sourceUrl
      Type
      string
      Description
    • Name
      meeting
      Type
      object
      Description
      2 fields
      • Name
        url
        Type
        string, required
        Description
      • Name
        label
        Type
        string, required
        Description
    • Name
      location
      Type
      object
      Description
      2 fields
      • Name
        text
        Type
        string, required
        Description
      • Name
        url
        Type
        string
        Description
    • Name
      recurrence
      Type
      string
      Description
    • Name
      allDaySpan
      Type
      object
      Description
      4 fields
      • Name
        startDate
        Type
        string, required
        Description

        The first day of the event.

      • Name
        endDate
        Type
        string, required
        Description

        The last day of the event, inclusive.

      • Name
        days
        Type
        integer, required
        Description
      • Name
        dayIndex
        Type
        integer, required
        Description

        The position of this day in the event, from 1.

    • Name
      warning
      Type
      string
      Description
    • Name
      areaId
      Type
      string | null, required
      Description
    • Name
      activityTypeId
      Type
      string | null, required
      Description
    • Name
      projectId
      Type
      string | null, required
      Description
    • Name
      priority
      Type
      integer, required
      Description
    • Name
      calendarId
      Type
      string | null
      Description
    • Name
      homePending
      Type
      true
      Description

      Present when calendarId is a move to another calendar that the sync has not done yet. source still names the provider of the current calendar.

    • Name
      mirrorCalendarIds
      Type
      string[]
      Description
    • Name
      mirrorStyles
      Type
      map of "full" | "private" | "busy"
      Description
    • Name
      readOnly
      Type
      true
      Description

      The event is on a calendar that the user does not own. An update may change only mirrorCalendarIds and mirrorStyles, not with scope: "future". Any other field is read_only.

    • Name
      focusIntervals
      Type
      object
      Description
      2 fields
      • Name
        focusMin
        Type
        integer, required
        Description
      • Name
        breakMin
        Type
        integer, required
        Description
    • Name
      completedFocusIntervals
      Type
      integer
      Description
    • Name
      focusState
      Type
      "running" | "running_scheduled" | "paused" | "paused_scheduled"
      Description
    • Name
      focusBreaks
      Type
      object[]
      Description
      2 fields
      • Name
        start
        Type
        string, required
        Description
      • Name
        end
        Type
        string, required
        Description
    • Name
      focusExact
      Type
      object
      Description

      First-party only. The stored session to the millisecond, as local instants: start, end, breaks, and actualStart and actualEnd when recorded. Omitted when the event has no rhythm, marker, break or actual time.

      5 fields
      • Name
        start
        Type
        string, required
        Description

        A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

      • Name
        end
        Type
        string, required
        Description

        A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

      • Name
        breaks
        Type
        object[], required
        Description
        2 fields
        • Name
          start
          Type
          string, required
          Description

          A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

        • Name
          end
          Type
          string, required
          Description

          A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

      • Name
        actualStart
        Type
        string
        Description

        A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

      • Name
        actualEnd
        Type
        string
        Description

        A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

    • Name
      exactStart
      Type
      string
      Description

      First-party only. The local instant of the start of a blocking event, only when it is not a whole minute.

    • Name
      focusRevision
      Type
      string
      Description

      First-party only. An opaque version of the session state, which expected.revision of a focus op repeats. Present on a blocking event and on a row with a marker.

    • Name
      taskDone
      Type
      true
      Description
    • Name
      energyRole
      Type
      string
      Description
    • Name
      checklist
      Type
      object
      Description
      1 fields
      • Name
        items
        Type
        object[], required
        Description
        3 fields
        • Name
          id
          Type
          string, required
          Description
        • Name
          text
          Type
          string, required
          Description
        • Name
          done
          Type
          boolean, required
          Description
    • Name
      reflect
      Type
      object
      Description
      2 forms
      • One form: Without actualStart, actualEnd
        • Name
          status
          Type
          "kept" | "skipped" | "changed" | "added", required
          Description
      • One form: With actualStart, actualEnd
        • Name
          status
          Type
          "changed", required
          Description
        • Name
          actualStart
          Type
          string, required
          Description

          It can be on the day before the event, as a Health night is.

        • Name
          actualEnd
          Type
          string, required
          Description
  • Name
    timezone
    Type
    string, required
    Description

Responses

StatusCodesMeaning
200—Success.
401unauthorizedNo Bearer token and no session cookie, or the token is invalid, expired, or revoked. The response carries a WWW-Authenticate challenge that points at the protected-resource metadata.
403permissionscopeA token without events:read or events:write gets scope "This token is not authorized to read events (requires events:read or events:write scope)." An account without Reassign Pro access gets permission "Reassign needs an active subscription." The 14-day free trial includes Reassign Pro. A cookie session from another site gets permission "Cross-origin request."
404not_foundThe resource that the request names does not exist.
422validationThe request has a query parameter; this operation takes none.
429rate_limitedToo many requests. The edge firewall limits each IP to 2000 requests per minute across /api/v1; that 429 comes from the edge and can have a body that is not this JSON and no Retry-After header. When an edge 429 has no Retry-After, retry after 60 seconds. The app also limits each Bearer credential to 600 requests per minute, and some routes limit each user. These limits return this body. This app 429 always has Retry-After: retry after that number of seconds.
503internalA fault on our side. The request is safe to retry.

Request

GET
/api/v1/events/{id}
curl "https://reassign.app/api/v1/events/EVENT_ID" \
  -H "Authorization: Bearer rsk_live_YOUR_TOKEN"

Response

{
  "event": {
    "id": "b7f1c2a0-1d2e-4f3a-9b8c-5d6e7f801234",
    "start": "2026-08-13T09:00",
    "end": "2026-08-13T10:30",
    "kind": "blocking",
    "name": "Team sync",
    "source": "google",
    "meeting": {
      "url": "https://us02web.zoom.us/j/1234567890",
      "label": "Zoom"
    },
    "location": {
      "text": "Room 4, 2nd floor",
      "url": "https://www.google.com/maps/search/?api=1&query=Room%204%2C%202nd%20floor"
    },
    "areaId": "3c9d2a41-6b7e-4f80-9a1b-2c3d4e5f6071",
    "activityTypeId": "5e6f7081-92a3-4b4c-8d5e-6f708192a3b4",
    "projectId": null,
    "priority": 0,
    "calendarId": "8a1f0c2e-3b4d-4e5f-9a0b-1c2d3e4f5061",
    "mirrorCalendarIds": [
      "a1b2c3d4-5e6f-4071-8293-a4b5c6d7e8f9"
    ],
    "focusRevision": "9f2c41d07ab3e658"
  },
  "timezone": "Europe/Ljubljana"
}

GET/api/v1/events/search

Search events

Find events by name. The search does not look in the notes. Scope: events:read.

  • query is required. An empty value returns 422 validation.

  • The default window is from 7 days before today to 30 days after from (or after today).

  • With only to, the window starts 7 days before today. If to is less than 30 days after that start, the window starts 30 days before to. If the window is then more than 92 days, it starts 91 days before to.

  • A to before from returns 422 with the message `to` must be on or after `from`.

  • The window is 92 days or less. A wider window returns 422 with the message Range too wide (max 92 days).

  • The window includes each event that overlaps a day of the window. This includes an overnight event that started the day before. An event that ends exactly at 00:00 of the first day is not in the window. timeOfDay still uses the start time of the event.

  • timeOfDay keeps the events that start in that part of the day:

    timeOfDayStart time
    morning05:00 to 12:00
    afternoon12:00 to 17:00
    evening17:00 to 21:00
    nightAll other times
  • Each event in events has the full event model and a score from 0 to 1 for its name match. A series shows one time, as the occurrence that matches best, with its occurrence id. Thus a query that names a renamed occurrence gets that occurrence. When more occurrences match equally well, the search gives the one nearest to today: the first on or after today, else the last before today.

  • A score of 1 is an exact match, 0.9 is a prefix, and 0.75 is a substring. Matches below 0.34 are omitted. Results are best match first.

  • ambiguous is true when more than one event matches equally well.

Query parameters

  • Name
    query
    Type
    string, required
    Description

    Text to match against event names, e.g. "standup", "gym".

  • Name
    from
    Type
    string
    Description

    Range start, ISO date, e.g. "2026-06-01". Defaults to 7 days ago.

  • Name
    to
    Type
    string
    Description

    Range end, ISO date, e.g. "2026-07-01". Defaults to +30 days.

  • Name
    areaId
    Type
    string
    Description

    Only match events linked to this area id.

  • Name
    activityTypeId
    Type
    string
    Description

    Only match events linked to this activity-type id.

  • Name
    timeOfDay
    Type
    "morning" | "afternoon" | "evening" | "night"
    Description

    Only match events that start in this part of the day.

Response fields

  • Name
    events
    Type
    object[], required
    Description
    36 fields
    • Name
      start
      Type
      string, required
      Description
    • Name
      end
      Type
      string, required
      Description
    • Name
      id
      Type
      string, required
      Description
    • Name
      seriesId
      Type
      string
      Description
    • Name
      originalDate
      Type
      string
      Description
    • Name
      kind
      Type
      "blocking" | "non_blocking" | "reference", required
      Description
    • Name
      name
      Type
      string, required
      Description
    • Name
      notes
      Type
      string
      Description
    • Name
      source
      Type
      "apple_calendar" | "apple_health" | "apple_reminders" | "caldav" | "google" | "google_health" | "google_tasks" | "linear" | "microsoft" | "microsoft_todo" | "ticktick" | "todoist" | "reassign", required
      Description
    • Name
      sourceUrl
      Type
      string
      Description
    • Name
      meeting
      Type
      object
      Description
      2 fields
      • Name
        url
        Type
        string, required
        Description
      • Name
        label
        Type
        string, required
        Description
    • Name
      location
      Type
      object
      Description
      2 fields
      • Name
        text
        Type
        string, required
        Description
      • Name
        url
        Type
        string
        Description
    • Name
      recurrence
      Type
      string
      Description
    • Name
      allDaySpan
      Type
      object
      Description
      4 fields
      • Name
        startDate
        Type
        string, required
        Description

        The first day of the event.

      • Name
        endDate
        Type
        string, required
        Description

        The last day of the event, inclusive.

      • Name
        days
        Type
        integer, required
        Description
      • Name
        dayIndex
        Type
        integer, required
        Description

        The position of this day in the event, from 1.

    • Name
      warning
      Type
      string
      Description
    • Name
      areaId
      Type
      string | null, required
      Description
    • Name
      activityTypeId
      Type
      string | null, required
      Description
    • Name
      projectId
      Type
      string | null, required
      Description
    • Name
      priority
      Type
      integer, required
      Description
    • Name
      calendarId
      Type
      string | null
      Description
    • Name
      homePending
      Type
      true
      Description

      Present when calendarId is a move to another calendar that the sync has not done yet. source still names the provider of the current calendar.

    • Name
      mirrorCalendarIds
      Type
      string[]
      Description
    • Name
      mirrorStyles
      Type
      map of "full" | "private" | "busy"
      Description
    • Name
      readOnly
      Type
      true
      Description

      The event is on a calendar that the user does not own. An update may change only mirrorCalendarIds and mirrorStyles, not with scope: "future". Any other field is read_only.

    • Name
      focusIntervals
      Type
      object
      Description
      2 fields
      • Name
        focusMin
        Type
        integer, required
        Description
      • Name
        breakMin
        Type
        integer, required
        Description
    • Name
      completedFocusIntervals
      Type
      integer
      Description
    • Name
      focusState
      Type
      "running" | "running_scheduled" | "paused" | "paused_scheduled"
      Description
    • Name
      focusBreaks
      Type
      object[]
      Description
      2 fields
      • Name
        start
        Type
        string, required
        Description
      • Name
        end
        Type
        string, required
        Description
    • Name
      focusExact
      Type
      object
      Description

      First-party only. The stored session to the millisecond, as local instants: start, end, breaks, and actualStart and actualEnd when recorded. Omitted when the event has no rhythm, marker, break or actual time.

      5 fields
      • Name
        start
        Type
        string, required
        Description

        A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

      • Name
        end
        Type
        string, required
        Description

        A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

      • Name
        breaks
        Type
        object[], required
        Description
        2 fields
        • Name
          start
          Type
          string, required
          Description

          A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

        • Name
          end
          Type
          string, required
          Description

          A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

      • Name
        actualStart
        Type
        string
        Description

        A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

      • Name
        actualEnd
        Type
        string
        Description

        A local instant "YYYY-MM-DDTHH:MM:SS.mmm" in the top-level timezone, with no offset or Z.

    • Name
      exactStart
      Type
      string
      Description

      First-party only. The local instant of the start of a blocking event, only when it is not a whole minute.

    • Name
      focusRevision
      Type
      string
      Description

      First-party only. An opaque version of the session state, which expected.revision of a focus op repeats. Present on a blocking event and on a row with a marker.

    • Name
      taskDone
      Type
      true
      Description
    • Name
      energyRole
      Type
      string
      Description
    • Name
      checklist
      Type
      object
      Description
      1 fields
      • Name
        items
        Type
        object[], required
        Description
        3 fields
        • Name
          id
          Type
          string, required
          Description
        • Name
          text
          Type
          string, required
          Description
        • Name
          done
          Type
          boolean, required
          Description
    • Name
      reflect
      Type
      object
      Description
      2 forms
      • One form: Without actualStart, actualEnd
        • Name
          status
          Type
          "kept" | "skipped" | "changed" | "added", required
          Description
      • One form: With actualStart, actualEnd
        • Name
          status
          Type
          "changed", required
          Description
        • Name
          actualStart
          Type
          string, required
          Description

          It can be on the day before the event, as a Health night is.

        • Name
          actualEnd
          Type
          string, required
          Description
    • Name
      score
      Type
      number, required
      Description
  • Name
    ambiguous
    Type
    boolean, required
    Description
  • Name
    timezone
    Type
    string, required
    Description

Responses

StatusCodesMeaning
200—Success.
401unauthorizedNo Bearer token and no session cookie, or the token is invalid, expired, or revoked. The response carries a WWW-Authenticate challenge that points at the protected-resource metadata.
403permissionscopeA token without events:read or events:write gets scope "This token is not authorized to read events (requires events:read or events:write scope)." An account without Reassign Pro access gets permission "Reassign needs an active subscription." The 14-day free trial includes Reassign Pro. A cookie session from another site gets permission "Cross-origin request."
422validationA query parameter is not valid. The message names the first bad field by its path. A repeated or unknown query parameter is also a 422.
429rate_limitedToo many requests. The edge firewall limits each IP to 2000 requests per minute across /api/v1; that 429 comes from the edge and can have a body that is not this JSON and no Retry-After header. When an edge 429 has no Retry-After, retry after 60 seconds. The app also limits each Bearer credential to 600 requests per minute, and some routes limit each user. These limits return this body. This app 429 always has Retry-After: retry after that number of seconds.
503internalA fault on our side. The request is safe to retry.

Request

GET
/api/v1/events/search
curl "https://reassign.app/api/v1/events/search?query=SEARCH_ID" \
  -H "Authorization: Bearer rsk_live_YOUR_TOKEN"

Response

{
  "events": [],
  "ambiguous": false,
  "timezone": "Europe/Ljubljana"
}