{"components":{"headers":{"Deprecation":{"description":"On a deprecated API major only: when it was deprecated, as @<unix seconds> (RFC 9745)","schema":{"example":"@1790000000","pattern":"^@[0-9]+$","type":"string"}},"Sunset":{"description":"On a deprecated API major only: the soonest it can be sunset, as an HTTP-date (RFC 8594)","schema":{"example":"Thu, 01 Oct 2026 00:00:00 GMT","type":"string"}}},"parameters":{"Cursor":{"in":"query","name":"cursor","schema":{"type":"string"}},"DeviceId":{"in":"path","name":"device_id","required":true,"schema":{"$ref":"#/components/schemas/DeviceIdValue"}},"EnrollmentId":{"in":"path","name":"enrollment_id","required":true,"schema":{"format":"uuid","type":"string"}},"FileId":{"description":"Briefcase entry id","in":"path","name":"file_id","required":true,"schema":{"format":"uuid","type":"string"}},"IdempotencyKey":{"in":"header","name":"Idempotency-Key","required":true,"schema":{"pattern":"^[!-~]{8,255}$","type":"string"}},"IfMatch":{"description":"The device version from its ETag. Stale is 412. Without it the change applies to the current version.","in":"header","name":"If-Match","required":false,"schema":{"pattern":"^\"?[1-9][0-9]*\"?$","type":"string"}},"Limit":{"in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},"SessionId":{"in":"path","name":"session_id","required":true,"schema":{"$ref":"#/components/schemas/SessionIdValue"}},"SiliconIdPath":{"description":"The Silicon's current `si:` id, or its Silicon Accounts uuid","in":"path","name":"silicon_id","required":true,"schema":{"example":"si:chef","type":"string"}},"SiliconPath":{"description":"A Silicon the caller looks after or gave access to, by its current `si:` id or its Silicon Accounts uuid","in":"path","name":"silicon","required":true,"schema":{"example":"si:chef","type":"string"}},"WakeId":{"in":"path","name":"wake_id","required":true,"schema":{"format":"uuid","type":"string"}}},"requestBodies":{"DeviceIndicatorPatch":{"content":{"application/json":{"schema":{"oneOf":[{"properties":{"data":{"$ref":"#/components/schemas/DeviceSelfPatch"},"type":{"const":"device_self"}},"required":["type","data"],"type":"object"},{"$ref":"#/components/schemas/DeviceSelfPatch"}]}}},"required":true}},"responses":{"Error":{"content":{"application/json":{"example":{"data":{"code":"device_in_use","details":{"in_use":{"session_id":"a3f","silicon_id":"si:chef","since":"2026-09-26T09:58:00.000Z"}},"docs_url":"https://extend.teamofsilicons.com/docs/cli#error-device_in_use","hint":"Ask for it with: extend request send 7c1e09ab --reason \"<why, up to 300 characters>\"","message":"Device 7c1e09ab (Saket's Pixel) is being used by si:chef in session a3f since 2026-09-26T09:58:00Z. Only one Silicon can use a device at a time.","request_id":"01926f41-0a1b-7c2d-8e3f-4a5b6c7d8e9f"},"type":"error"},"schema":{"properties":{"data":{"$ref":"#/components/schemas/Error"},"type":{"const":"error"}},"required":["type","data"],"type":"object"}}},"description":"Error"}},"schemas":{"AccessGrant":{"properties":{"device_id":{"$ref":"#/components/schemas/DeviceIdValue"},"device_name":{"allOf":[{"$ref":"#/components/schemas/DeviceName"}],"description":"Custodian views (GET /api/v2/silicons/{silicon}/grants)"},"device_os":{"allOf":[{"$ref":"#/components/schemas/DeviceOs"}],"description":"Custodian views"},"granted_at":{"format":"date-time","type":"string"},"granted_by":{"$ref":"#/components/schemas/CarbonId"},"granted_by_uuid":{"description":"The granting Carbon's permanent uuid","type":"string"},"last_used_at":{"format":"date-time","type":["string","null"]},"owner":{"allOf":[{"$ref":"#/components/schemas/Member"}],"description":"Custodian views: the Carbon who paired the device"},"silicon_id":{"$ref":"#/components/schemas/SiliconId"},"silicon_uuid":{"description":"The Silicon's permanent uuid (`silicon_id` is its current id)","type":"string"},"wake_muted":{"description":"1.1: the owner turned this Silicon's wake requests off on this pair","type":"boolean"}},"required":["device_id","silicon_id","granted_by","granted_at"],"type":"object"},"AccountMe":{"properties":{"custodian":{"allOf":[{"$ref":"#/components/schemas/AccountRef"}],"description":"A Silicon's custodian"},"display_name":{"type":"string"},"id":{"example":"si:chef","type":"string"},"pfp_url":{"format":"uri","type":"string"},"type":{"enum":["carbon","silicon"],"type":"string"},"uuid":{"type":"string"}},"required":["uuid","id","type"],"type":"object"},"AccountRef":{"description":"A Carbon or Silicon, by permanent uuid and current public id","properties":{"display_name":{"type":"string"},"id":{"description":"The current public id, or \"deleted account <uuid>\"","example":"si:chef","type":"string"},"pfp_url":{"format":"uri","type":"string"},"type":{"enum":["carbon","silicon"],"type":"string"},"uuid":{"example":"8YnY5M4E","type":"string"}},"required":["uuid","id","type"],"type":"object"},"AccountsInfo":{"properties":{"accounts_url":{"description":"The `iss` of every access token Extend accepts","example":"https://accounts.teamofsilicons.com","format":"uri","type":"string"},"api_base_url":{"format":"uri","type":"string"},"app_id":{"description":"Extend's app id in Silicon Accounts and Silicon Apps","example":"extend","type":"string"},"docs_url":{"format":"uri","type":"string"},"repository_url":{"format":"uri","type":"string"},"ting_enabled":{"description":"Whether this server delivers notifications through Ting","type":"boolean"},"website_url":{"format":"uri","type":"string"}},"required":["app_id","accounts_url","api_base_url","website_url","docs_url","repository_url","ting_enabled"],"type":"object"},"ActivityEntry":{"properties":{"action":{"description":"A command name, or a device event. 1.1 adds: `another_carbon_paired` (another Carbon paired this device, `{}`,\nnever naming them); `paired` with `{\"with_existing_pairs\": true}`; `request_received` (a request routed to\nthis Carbon, on their pair); `device_linked` and `duplicate_device` (`{\"kind\": \"same_carbon\" |\n\"other_computer\"}`) for carried devices; `connection_replaced` (`{\"while_in_use_by_other\": bool}`); the wake\nevents; and `session_ended` by `extend` with `{\"stopped_by\": \"another_carbon\"}`.\n","example":"click","examples":["paired","renamed","access_granted","access_revoked","session_started","session_ended","command","takeover_started","takeover_released","stopped","request_sent","request_failed","pair_revoked","removed","pair_expired","another_carbon_paired","request_received","device_linked","duplicate_device","connection_replaced","wake_requested","wake_refreshed","woken","woke_without_input","wake_confirmed","wake_declined","wake_cancelled","wake_expired","wake_withdrawn","wake_muted","wake_unmuted"],"type":"string"},"actor":{"$ref":"#/components/schemas/Member"},"args":{"description":"Redacted","items":{"type":"string"},"type":["array","null"]},"at":{"format":"date-time","type":"string"},"command":{"type":["string","null"]},"details":{"additionalProperties":true,"description":"For a command: `warnings` when the result had any, `error` (for example session_ended with outcome unknown). For request_failed: {request_id, from, to, error}. Never another side's Silicon, Carbon or session.","type":"object"},"files":{"items":{"format":"uuid","type":"string"},"type":"array"},"id":{"format":"uuid","type":"string"},"outcome":{"enum":["ok","failed","timeout","unknown",null],"type":["string","null"]},"session_id":{"oneOf":[{"$ref":"#/components/schemas/SessionIdValue"},{"type":"null"}]}},"required":["id","at","actor","action"],"type":"object"},"Capability":{"enum":["screen.read","screen.capture","screen.record","input.touch","input.pointer","input.text","input.keyboard","input.remote","nav.system","apps.launch","apps.list","apps.install","alerts","clipboard","logs","replay","takeover","notifications","adb","terminal","display","links"],"type":"string"},"CarbonId":{"example":"c:alice","pattern":"^c:","type":"string"},"CommandResult":{"properties":{"command":{"type":"string"},"command_id":{"format":"uuid","type":"string"},"duration_ms":{"type":"integer"},"error":{"oneOf":[{"type":"null"},{"properties":{"code":{"example":"wait_target_absent","type":"string"},"details":{"additionalProperties":true,"type":"object"},"message":{"type":"string"}},"required":["code","message"],"type":"object"}]},"files":{"items":{"$ref":"#/components/schemas/File"},"type":"array"},"idle_ends_at":{"format":"date-time","type":"string"},"ok":{"type":"boolean"},"output":{"description":"The device engine's structured result for this command (for snapshot, the node tree and refs)"},"session_id":{"$ref":"#/components/schemas/SessionIdValue"},"started_at":{"format":"date-time","type":"string"},"text":{"description":"The device engine's plain-text rendering, what the CLI prints without --json","type":["string","null"]},"warnings":{"default":[],"description":"What went wrong around the command without failing it, one entry per problem, each saying what happened,\nwhy and what to do: chiefly a file the device made that Extend couldn't store in Briefcase, share with the\ndevice's Carbon, or record. The service always sends it (empty when all went well); older services leave it\nout, so read a missing one as empty. `ok` does not change because of a warning.\n","example":["screenshot.png was not stored: Saket's Pixel made it but never uploaded it (the upload failed or was cut off). Run the command again; if it keeps happening, report it with `extend report`."],"items":{"type":"string"},"type":"array"}},"required":["command_id","session_id","command","ok","output","files","error","started_at","duration_ms","idle_ends_at"],"type":"object"},"Device":{"description":"One Carbon's pair of a device. A removed device (readable only by the Carbon who paired it) has `removed_at` and\n`removed_reason`, `online` false, and no `in_use`, `pair_expires_at` or `days_left`. `visibility` is always\n`personal`. Fields marked \"owner\" appear only in the view of the Carbon who paired this pair.\n","properties":{"access_count":{"description":"Grants on this pair (owner views)","minimum":0,"type":"integer"},"agent_device_version":{"deprecated":true,"description":"The same value under its 1.0 name, kept for API v1 readers","type":"string"},"app_version":{"type":["string","null"]},"awake":{"description":"1.1: whether the device is awake (screen on and unlocked; a computer awake and unlocked; a TV on). Absent while\nit is offline, or while an online device hasn't said (apps older than 1.1 never do). Never a gate.\n","type":"boolean"},"awake_changed_at":{"description":"1.1, owner: when awake last changed","format":"date-time","type":"string"},"days_left":{"minimum":0,"type":"integer"},"device_id":{"$ref":"#/components/schemas/DeviceIdValue"},"engine_version":{"description":"1.1: the device engine's version on the device (for a carried device, on its computer)","type":"string"},"host_device_id":{"description":"Set for devices paired through a computer","oneOf":[{"$ref":"#/components/schemas/DeviceIdValue"},{"type":"null"}]},"in_use":{"oneOf":[{"$ref":"#/components/schemas/InUse"},{"type":"null"}]},"in_use_by_other":{"description":"1.1: a Silicon the viewer can't see (another side) is using it, or for a computer a device it carries. `in_use` is then absent. Left out when false.","type":"boolean"},"in_use_by_other_carried":{"description":"1.1, owner views of a computer: what is busy is a carried device the viewer didn't pair. A remote Stop can't end it; the computer's own Stop can. Left out when false.","type":"boolean"},"in_use_indicator":{"$ref":"#/components/schemas/InUseIndicator"},"kind":{"enum":["phone","tablet","tv","computer"],"type":"string"},"last_seen_at":{"format":"date-time","type":["string","null"]},"last_sleep_state":{"allOf":[{"$ref":"#/components/schemas/SleepState"}],"description":"1.1: an offline device's last report, when it was not awake"},"last_used_at":{"description":"Owner: when a Silicon last used this pair (1.1: not in Silicon views)","format":"date-time","type":["string","null"]},"model":{"type":["string","null"]},"name":{"$ref":"#/components/schemas/DeviceName"},"online":{"type":"boolean"},"open_wake_requests":{"description":"1.1: open wake requests the viewer may see (every one on the owner's pair; a Silicon's own)","minimum":0,"type":"integer"},"organization":{"properties":{"can_manage":{"type":"boolean"},"id":{"type":"string"},"team_ids":{"description":"Visible to current managers","items":{"type":"string"},"type":"array"}},"required":["id","team_ids","can_manage"],"type":"object"},"os":{"$ref":"#/components/schemas/DeviceOs"},"os_version":{"type":["string","null"]},"owner":{"$ref":"#/components/schemas/Member"},"pair_expires_at":{"description":"The pair ends after pair_ttl_days without activity on the device: a session or command through any Carbon's pair keeps every pair of it alive (1.1)","format":"date-time","type":"string"},"pair_ttl_days":{"$ref":"#/components/schemas/PairTtlDays"},"paired_at":{"format":"date-time","type":"string"},"paired_by_others":{"description":"1.1, owner: another Carbon also paired this device. Never says who.","type":"boolean"},"removed_at":{"description":"Removed devices only: when the pair ended","format":"date-time","type":"string"},"removed_reason":{"allOf":[{"$ref":"#/components/schemas/EndReason"}],"description":"Removed devices only: why the pair ended (device_removed, pair_revoked, pair_expired; left_team or environment_cleaned for pairs ended before Extend 4)"},"same_device":{"description":"1.1, Silicon views: other Carbons' pairs of this same physical device that the Silicon has access to","items":{"$ref":"#/components/schemas/DeviceIdValue"},"type":"array"},"sleep_state":{"$ref":"#/components/schemas/SleepState"},"state":{"description":"setup: its own setup steps are not finished yet","enum":["setup","ready"],"type":"string"},"version":{"minimum":1,"type":"integer"},"visibility":{"$ref":"#/components/schemas/Visibility"},"wake_detectable":{"description":"1.1: whether Extend can tell when it wakes (false for iPhone, iPad and apps older than 1.1)","type":"boolean"},"wake_muted":{"description":"1.1, owner: wake requests are turned off for this pair","type":"boolean"},"wake_requests":{"description":"1.1, single reads: those open requests","items":{"$ref":"#/components/schemas/WakeRequest"},"type":"array"}},"required":["device_id","name","os","kind","owner","visibility","online","state"],"type":"object"},"DeviceIdValue":{"example":"7c1e09ab","pattern":"^[0-9a-f]{8}$","type":"string"},"DeviceName":{"example":"Saket's Pixel","maxLength":64,"minLength":1,"type":"string"},"DeviceOs":{"description":"android_tv covers Android TV, Google TV and Fire OS","enum":["android","android_tv","macos","windows","linux","ios","ipados","tvos","samsung_tv","lg_tv"],"type":"string"},"DeviceSelfPatch":{"properties":{"in_use_indicator":{"$ref":"#/components/schemas/InUseIndicator"}},"required":["in_use_indicator"],"type":"object"},"DeviceStopped":{"description":"A Stop ended a session that ran through another Carbon's pair of the device, so the Silicon isn't named (1.1)","properties":{"device_id":{"$ref":"#/components/schemas/DeviceIdValue"},"in_use_by_other":{"const":true,"type":"boolean"},"stopped_at":{"format":"date-time","type":"string"}},"required":["device_id","stopped_at","in_use_by_other"],"type":"object"},"EndReason":{"description":"Why a session ended, or (as `removed_reason`) why a pair ended. `left_team`, `environment_disabled` and `environment_cleaned` appear only on sessions from before Extend 4.","enum":["ended_by_silicon","idle_timeout","stopped_by_carbon","access_removed","device_removed","pair_revoked","pair_expired","silicon_logged_out","left_team","device_offline","environment_disabled","environment_cleaned"],"type":"string"},"EnrollmentState":{"oneOf":[{"properties":{"code_expires_at":{"format":"date-time","type":"string"},"pairing_code":{"$ref":"#/components/schemas/PairingCode"},"state":{"const":"waiting"}},"required":["state","pairing_code","code_expires_at"],"type":"object"},{"properties":{"device_credential":{"description":"Returned once","pattern":"^edc_[A-Za-z0-9_-]{43}$","type":"string"},"device_id":{"$ref":"#/components/schemas/DeviceIdValue"},"environment":{"description":"Always null since Extend 4; kept for installed apps","type":"null"},"state":{"const":"paired"}},"required":["state","device_id","device_credential"],"type":"object"}]},"Error":{"properties":{"code":{"description":"Stable. The full list is in cli.yaml under errors.","example":"device_in_use","type":"string"},"details":{"additionalProperties":true,"type":"object"},"docs_url":{"format":"uri","type":["string","null"]},"hint":{"description":"What to do next, often an exact command","type":["string","null"]},"message":{"description":"What happened and why, in full","type":"string"},"request_id":{"type":"string"}},"required":["code","message","request_id"],"type":"object"},"File":{"properties":{"command_id":{"format":"uuid","type":"string"},"content_type":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"created_by":{"$ref":"#/components/schemas/SiliconId"},"created_by_uuid":{"description":"The Silicon's permanent uuid","type":"string"},"device_id":{"$ref":"#/components/schemas/DeviceIdValue"},"file_id":{"description":"Briefcase entry id","format":"uuid","type":"string"},"kind":{"$ref":"#/components/schemas/FileKind"},"name":{"description":"The name the device gave the file. In Briefcase the file has its own unique name (for example screenshot-20260926-153307-2228fc1d.png), which `url` uses.","type":"string"},"permanent":{"type":"boolean"},"self_destruct_at":{"format":"date-time","type":["string","null"]},"session_id":{"$ref":"#/components/schemas/SessionIdValue"},"shared_with":{"allOf":[{"$ref":"#/components/schemas/CarbonId"}],"description":"The Carbon who gave the Silicon access (the owner of the pair it used)"},"shared_with_uuid":{"description":"The Carbon's permanent uuid","type":"string"},"size_bytes":{"type":"integer"},"url":{"description":"Briefcase URL of the file in the Silicon's Extend folder; opens only for accounts it is shared with","format":"uri","type":"string"}},"required":["file_id","name","kind","content_type","size_bytes","url","self_destruct_at","permanent"],"type":"object"},"FileKind":{"enum":["screenshot","recording","log","replay_script","diff","other"],"type":"string"},"HostDevice":{"description":"The computer a carried device pairs through (the Carbon's own pair of it); it must be awake too","properties":{"device_id":{"$ref":"#/components/schemas/DeviceIdValue"},"name":{"type":"string"},"online":{"type":"boolean"}},"required":["device_id","name","online"],"type":"object"},"InUse":{"description":"Only on the viewer's own side (1.1): the owner sees it when the session runs through their pair; a Silicon when the Silicon using it is on its side.","properties":{"paused":{"default":false,"type":"boolean"},"session_id":{"$ref":"#/components/schemas/SessionIdValue"},"silicon_id":{"$ref":"#/components/schemas/SiliconId"},"silicon_uuid":{"description":"API v2: the Silicon's permanent uuid; never on the device wire","type":"string"},"since":{"format":"date-time","type":"string"}},"required":["silicon_id","session_id","since"],"type":"object"},"InUseIndicator":{"default":"shown","description":"1.1: shared by every pair of a physical device. Shown displays the in-use banner/notification for 10 seconds\nper session (the desktop icon stays changed until the session ends); hidden suppresses those announcements\nand icon changes. Takeover requests remain until answered and Stop remains in the app and website. Android's\nquiet running notification, Apple's Automation Running banner and test-environment disclosure are separate.\nOld responses omit this field; readers default to shown unless preserving an explicit saved native choice.\nA future unknown value is read as shown; writes accept only shown or hidden.\n","enum":["shown","hidden"],"type":"string"},"Member":{"properties":{"display_name":{"type":["string","null"]},"id":{"description":"The current public id; it can change","example":"c:alice","type":"string"},"type":{"enum":["carbon","silicon"],"type":"string"},"uuid":{"description":"The permanent Silicon Accounts uuid (API v2; never on the device wire)","example":"750mDPTu","type":"string"}},"required":["type","id"],"type":"object"},"PairTtlDays":{"default":14,"maximum":30,"minimum":1,"type":"integer"},"PairingCode":{"description":"6 hexadecimal characters; rotates every 300 s; works once","example":"4F9C2A","pattern":"^[0-9A-F]{6}$","type":"string"},"PairingCodeInput":{"description":"Case-insensitive","example":"4f9c2a","pattern":"^[0-9A-Fa-f]{6}$","type":"string"},"Person":{"properties":{"blocked":{"type":"boolean"},"contact_photo_url":{"description":"Authenticated path on this API; fetch with the Extend bearer token.","type":["string","null"]},"display_name":{"type":"string"},"id":{"type":"string"},"pfp_url":{"type":["string","null"]},"trust":{"maximum":255,"minimum":0,"type":"integer"},"type":{"enum":["carbon","silicon"]},"uuid":{"type":"string"}},"required":["uuid","id","type","display_name","pfp_url","contact_photo_url","trust","blocked"],"type":"object"},"Request":{"properties":{"created_at":{"format":"date-time","type":"string"},"delivery":{"enum":["pending","delivered","failed"],"type":"string"},"device_id":{"allOf":[{"$ref":"#/components/schemas/DeviceIdValue"}],"description":"The viewer's own id for the device (the Carbon a request was routed to sees their own pair's id)"},"from":{"description":"The requesting Silicon. (REQUEST_FROM_HIDDEN, \"a Silicon another Carbon gave access to\", only when from_hidden; a 1.1.0 service never hides it.)","type":"string"},"from_hidden":{"description":"1.1: `from` is the hidden text; left out when false. Never set by a 1.1.0 service.","type":"boolean"},"from_uuid":{"description":"The requesting Silicon's permanent uuid","type":"string"},"last_error":{"description":"While pending, or once failed: why the last delivery through Ting failed, and what to do. Left out once delivered.","type":"string"},"reason":{"description":"Exactly as sent, surrounding whitespace included","maxLength":1000,"type":"string"},"request_id":{"format":"uuid","type":"string"},"routed_to":{"description":"1.1: to the Silicon using the device, or to the Carbon who gave it access","enum":["holder","carbon"],"type":"string"},"session_id":{"allOf":[{"$ref":"#/components/schemas/SessionIdValue"}],"description":"The session the requester asked for; never shown to the requester's side of a routed request"},"to":{"description":"The Silicon using the device (routed_to holder), or, for the requester's side of a request routed to a Carbon, \"the Carbon who gave access to the Silicon using it\" (to_hidden). The Carbon it was routed to sees their own id.","type":"string"},"to_hidden":{"description":"1.1: `to` is the hidden text; left out when false","type":"boolean"},"to_uuid":{"description":"The recipient's permanent uuid, when the viewer may see who it is","type":"string"}},"required":["request_id","device_id","from","to","reason","created_at","delivery"],"type":"object"},"RequestPage":{"properties":{"data":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Request"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"],"type":"object"},"type":{"const":"requests"}},"required":["type","data"],"type":"object"},"RetryResult":{"properties":{"retrying":{"description":"The keys of the steps the device was asked to run again","items":{"type":"string"},"type":"array"}},"required":["retrying"],"type":"object"},"Session":{"properties":{"command_count":{"minimum":0,"type":"integer"},"device_id":{"$ref":"#/components/schemas/DeviceIdValue"},"end_reason":{"enum":["ended_by_silicon","idle_timeout","stopped_by_carbon","access_removed","device_removed","pair_revoked","pair_expired","silicon_logged_out","left_team","device_offline","environment_disabled","environment_cleaned",null],"type":["string","null"]},"ended_at":{"format":"date-time","type":["string","null"]},"idle_ends_at":{"description":"Null once ended","format":"date-time","type":["string","null"]},"last_command_at":{"format":"date-time","type":["string","null"]},"session_id":{"$ref":"#/components/schemas/SessionIdValue"},"silicon_id":{"$ref":"#/components/schemas/SiliconId"},"silicon_uuid":{"description":"The Silicon's permanent uuid (`silicon_id` is its current id)","type":"string"},"started_at":{"format":"date-time","type":"string"},"state":{"enum":["active","paused","ended"],"type":"string"}},"required":["session_id","device_id","silicon_id","state","started_at","last_command_at","idle_ends_at","ended_at","end_reason"],"type":"object"},"SessionIdValue":{"description":"3 hexadecimal characters, growing to 4 and more once every shorter id is used; never reused","example":"a3f","pattern":"^[0-9a-f]{3,}$","type":"string"},"Setup":{"properties":{"state":{"enum":["in_progress","needs_carbon","complete"],"type":"string"},"steps":{"items":{"properties":{"error":{"description":"Why it failed, in one or two sentences for the Carbon: what is wrong and what to do (\"The iPhone is locked or\nnot connected by cable. Unlock it and keep it plugged in.\"). Never environment variables, file paths,\nbuild commands, exit codes or stack traces: those are in the app's log.\n","type":["string","null"]},"help":{"description":"Where to find it on this device","type":["string","null"]},"input":{"description":"What the Carbon enters on the website for this step: \"code\" for the PIN an Apple TV shows","enum":["code",null],"type":["string","null"]},"key":{"description":"Stable; what `POST .../setup/retry` names. 1.1 adds duplicate_device and recognising for a carried device","example":"wireless_debugging","type":"string"},"status":{"enum":["todo","in_progress","needs_carbon","done","failed"],"type":"string"},"title":{"example":"Turn on wireless debugging","type":"string"}},"required":["key","title","status"],"type":"object"},"type":"array"}},"required":["state","steps"],"type":"object"},"SetupRetryInput":{"additionalProperties":false,"description":"Contract A (1.1): the step to run again, or {} for every failed step","properties":{"step":{"description":"A setup step's key","example":"wireless_debugging","type":"string"}},"type":"object"},"SiliconId":{"example":"si:chef","pattern":"^si:","type":"string"},"SiliconSummary":{"properties":{"display_name":{"type":"string"},"granted_by_you":{"description":"How many of the caller's devices it can use","minimum":0,"type":"integer"},"grants":{"description":"Custodian views: every grant it holds, whoever gave it","minimum":0,"type":"integer"},"id":{"example":"si:chef","type":"string"},"looked_after":{"description":"The caller is its custodian: they see its grants, sessions, files and requests, and can stop them","type":"boolean"},"pfp_url":{"format":"uri","type":"string"},"running_sessions":{"description":"Custodian views","minimum":0,"type":"integer"},"uuid":{"type":"string"}},"required":["uuid","id","looked_after","granted_by_you"],"type":"object"},"SleepState":{"description":"1.1: why an online device isn't awake. Shown as \"screen off\", \"locked\", \"asleep\", \"standby\" and \"another account\".\nRead a value you don't know as \"not awake\": later versions may add some.\n","enum":["screen_off","locked","asleep","standby","other_session"],"type":"string"},"Takeover":{"properties":{"expires_at":{"description":"started_at + 30 minutes; the session ends then","format":"date-time","type":"string"},"reason":{"maxLength":300,"type":"string"},"session_id":{"$ref":"#/components/schemas/SessionIdValue"},"started_at":{"format":"date-time","type":"string"},"takeover_id":{"format":"uuid","type":"string"}},"required":["takeover_id","session_id","reason","started_at","expires_at"],"type":"object"},"TingRegistration":{"description":"Whether Extend's notifications reach an account through Ting (one enrolment per account)","properties":{"delivery_enabled":{"description":"False while this server sends no notifications through Ting","type":"boolean"},"last_error":{"example":"Not enrolled yet: Extend enrols you at your next use of Extend.","type":"string"},"member":{"example":"c:alice","type":"string"},"member_uuid":{"type":"string"},"missing_types":{"description":"Extend's types Ting answered unknown, by full name. Ting registers an app's types; turning notifications on doesn't clear these.","example":["extend.device.wake_requested"],"items":{"type":"string"},"type":"array"},"refused_at":{"format":"date-time","type":"string"},"registered_at":{"format":"date-time","type":"string"},"status":{"enum":["on","off","pending"],"type":"string"}},"required":["member","status","missing_types"],"type":"object"},"Visibility":{"deprecated":true,"description":"A device is private to the Carbon who paired it and the Silicons they give access to: every device reads personal, and any other value sent is 422 invalid_input.","enum":["personal"],"type":"string"},"WakeAnswer":{"additionalProperties":false,"properties":{"answer":{"enum":["woken","declined"],"type":"string"},"wake_ids":{"description":"declined only: which requests (all on this pair when absent)","items":{"format":"uuid","type":"string"},"type":"array"}},"required":["answer"],"type":"object"},"WakeAnswered":{"properties":{"answer":{"enum":["woken","declined"],"type":"string"},"ended":{"description":"The requests on the answering Carbon's own pair that ended; other Carbons' are never listed","items":{"$ref":"#/components/schemas/WakeRequest"},"type":"array"}},"required":["answer","ended"],"type":"object"},"WakeCreate":{"additionalProperties":false,"properties":{"reason":{"description":"1–300 Unicode scalar values after trimming, at most 1,000 raw; kept exactly as written","maxLength":1000,"minLength":1,"type":"string"}},"required":["reason"],"type":"object"},"WakeRequest":{"description":"A Silicon's request that its Carbon wake a device (1.1). The Carbon who paired the pair sees every request on it;\na Silicon sees its own. Read enum values you don't know as the nearest general case: later versions may\nadd some.\n","properties":{"answer_ting":{"description":"The Ting back to the Silicon once woken or declined","enum":["pending","deferred","delivered","failed","covered"],"type":"string"},"answer_ting_last_error":{"type":"string"},"asks":{"description":"Asking again after 5 minutes refreshes the request and counts here","minimum":1,"type":"integer"},"created_at":{"format":"date-time","type":"string"},"device_id":{"allOf":[{"$ref":"#/components/schemas/DeviceIdValue"}],"description":"The pair the Silicon asked through"},"device_notice":{"description":"What the device did with it. unsupported: a carried device or an app older than 1.1, so Ting is the only way it reaches the Carbon.","enum":["sent","shown","not_shown","offline","unsupported"],"type":"string"},"device_notice_note":{"example":"Notifications are off for Silicon Extend on this phone.","maxLength":300,"type":"string"},"end_reason":{"description":"`left_team`: withdrawn when Extend 4 merged one open request per Team into one per device and Silicon","enum":["woken_on_device","confirmed_by_carbon","expired","cancelled","declined","session_started","access_removed","left_team","device_removed","muted","rollback"],"type":"string"},"ended_at":{"format":"date-time","type":"string"},"expires_at":{"description":"30 minutes after the last ask","format":"date-time","type":"string"},"from":{"allOf":[{"$ref":"#/components/schemas/SiliconId"}],"description":"The asking Silicon (its current id)"},"from_uuid":{"type":"string"},"host":{"$ref":"#/components/schemas/HostDevice"},"last_asked_at":{"format":"date-time","type":"string"},"reason":{"description":"The latest ask's reason, exactly as written","type":"string"},"state":{"enum":["open","woken","expired","withdrawn","declined"],"type":"string"},"ting":{"description":"The Ting to the Carbon. covered: an earlier Ting for the same pair covers it (ting_covered_by). A Silicon sees deferred as pending.","enum":["pending","deferred","delivered","failed","covered"],"type":"string"},"ting_covered_by":{"format":"uuid","type":"string"},"ting_last_error":{"description":"Why the Ting isn't delivered yet (for example, notifications through Ting are off on this server)","type":"string"},"to":{"allOf":[{"$ref":"#/components/schemas/CarbonId"}],"description":"The Carbon who gave the Silicon access (the pair's owner)"},"to_uuid":{"type":"string"},"wake_detectable":{"description":"Whether Extend can tell when the device wakes; when false, its Carbon answers \"It's awake\"","type":"boolean"},"wake_id":{"format":"uuid","type":"string"}},"required":["wake_id","device_id","from","to","reason","created_at","last_asked_at","asks","expires_at","state","wake_detectable","device_notice"],"type":"object"},"WakeSettings":{"additionalProperties":false,"properties":{"muted":{"type":"boolean"},"silicon_id":{"description":"One Silicon instead of the whole pair (its current id or uuid)","type":"string"}},"required":["muted"],"type":"object"},"WakeSettingsView":{"properties":{"device_id":{"$ref":"#/components/schemas/DeviceIdValue"},"muted":{"description":"Wake requests are off for the whole pair","type":"boolean"},"silicons_muted":{"items":{"properties":{"silicon_id":{"$ref":"#/components/schemas/SiliconId"}},"required":["silicon_id"],"type":"object"},"type":"array"}},"required":["device_id","muted","silicons_muted"],"type":"object"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","description":"A Silicon Accounts access token for the app `extend`: an EdDSA-signed JWT whose `aud` is `extend` and whose\n`iss` is the Silicon Accounts this server trusts (`ACCOUNTS_URL`), verified with its published keys. Carbons get\none with the Silicon Accounts device flow (the CLI) or the authorization-code flow (the website's server),\nSilicons by exchanging a short-lived token from `silicon-accounts login --app extend -q`. Tokens issued before\na sign-out, removed access or deleted account are refused.\n","scheme":"bearer","type":"http"},"deviceCredential":{"bearerFormat":"Device credential (edc_). Sent as \"Authorization: Extend-Device <credential>\".","scheme":"bearer","type":"http"},"enrollmentSecret":{"bearerFormat":"Enrollment secret (ees_). Sent as \"Authorization: Extend-Enrollment <secret>\".","scheme":"bearer","type":"http"}}},"info":{"description":"A standalone interface uses the Accounts token in apps[\"extend\"].access_token.\nSend Authorization: Bearer TOKEN to https://api.extend.teamofsilicons.com.\nAccount API v2 covers personal devices and organization devices shared with teams.\nDevice agents keep their separate pairing and device credentials on API v1.\nIntegration guide: https://extend.teamofsilicons.com/docs/interfaces\n\nConventions\n- Every JSON body is an envelope: `{\"type\": \"<kind>\", \"data\": {...}}`.\n- Errors: `{\"type\": \"error\", \"data\": {\"code\", \"message\", \"hint\", \"docs_url\", \"request_id\", \"details\"}}`.\n  `code` is stable and machine-readable; `message` says what happened and why; `hint` says what to do next.\n- Timestamps are RFC 3339 UTC with milliseconds. Durations carry their unit in the field name.\n- Every response carries `X-Request-ID` and `Silicon-Extend-API-Version`.\n- Lists are paged with `limit` and `cursor`; the response gives `next_cursor`, null on the last page. A page that\n  has a `next_cursor` is always full; only the last page can be short.\n- Retry a POST after an uncertain result with the same `Idempotency-Key` and the identical body. The same key with\n  a different body is `409 conflict`.\n- API majors (TECHNICAL.md section 10). Every `/api/v{n}/` request is checked before anything else: a major this\n  service doesn't serve is `400 api_version_unsupported`; a `Silicon-Extend-API-Version` pin naming another major\n  than the path is `400 api_version_mismatch`; a sunset major is `410 api_version_sunset`, whose hint says how to\n  update and whose `details` carry `{api_version, sunset_at, supported}`. Every response on a deprecated major\n  carries `Deprecation: @<unix seconds>` (RFC 9745, when it was deprecated) and `Sunset: <HTTP-date>` (RFC 8594,\n  the soonest it can be sunset: 7 consecutive days with zero requests after the later of its deprecation and its\n  last request).\n- Signing in (Extend 4): every API v2 route takes a Silicon Accounts access token as `Authorization: Bearer`\n  (an EdDSA JWT whose `aud` is `extend` and whose `iss` is the Silicon Accounts this server trusts, verified with\n  its published keys). Carbons sign in to the CLI with the Silicon Accounts device flow, Silicons with a short-lived\n  token (`silicon-accounts login --app extend -q | extend login --slt-stdin`), the website with its own server.\n  Each authenticated request verifies the signature, issuer, audience and expiry and checks active status,\n  access-token type, client ID and subject through Accounts introspection. Revocation applies on the next request.\n- API v1 (Extend 4): only the device wire stays. Every other `/api/v1` route answers `410 api_version_sunset`,\n  hint `silicon-apps update extend`, `details {retired, use_api_version: 2}`.\n- There are no test environments: a request that still sends `X-Testing-Application-Secret` is `401\n  testing_secret_invalid` and nothing runs.\n- Interface frontends can send a bearer token cross-origin without cookies. Secret keys stay on the interface backend.\n  Cross-origin reads expose ETag, X-Request-ID, Silicon-Extend-API-Version, Content-Disposition, Content-Range, Deprecation and Sunset.\n\n\nOrganization work accounts use their own Accounts UUID. Owners and admins manage organization pairings. Every current Carbon and Silicon in a shared team can operate the device. Attached devices inherit team changes from their host.\n\nPersonal accounts, devices and custodians (Extend 4)\n- Every Carbon and Silicon is a personal Silicon Accounts account: a permanent `uuid` (a canonical lowercase 128-bit UUIDv4) that\n  Extend keys everything on, and a public id (`c:ada`, `si:scout`) that can change. Answers carry both where a\n  person is named (`*_uuid` next to the id). A caller may name an account by either; ids resolve through Silicon\n  Accounts (current ids only), and an id nobody has is `422 invalid_input`.\n- A personal device belongs to the Carbon who paired it. An organization device belongs to the organization. Several Carbons can pair one device (a family TV); each has their\n  own pair of it, with its own `device_id`, name, access list, lifetime and activity log. A device is private to\n  the Carbon who paired it and the Silicons they give access to: one grant per pair and Silicon.\n- A Silicon has one custodian (a Carbon, set in Silicon Accounts). The custodian sees what its Silicons do in\n  Extend (`GET /api/v2/silicons`, their grants, sessions, files and requests) and can stop it; it never acts as the\n  Silicon. A Silicon, its custodian and the custodian's other Silicons are one circle: a Silicon is never reached\n  from outside its circle unasked (a request goes to the Carbon who gave the holder access instead).\n- One authorized account uses a physical device at a time, across every pair. A viewer sees only their own side: another side's\n  Silicon shows as \"in use\" (`in_use_by_other`), never named.\n- The wake hint: when a device is known not to be awake (or was not awake when last seen), `device_offline`,\n  `unsupported_on_device` and a failed command's answer add \"<name> isn't awake (<state> since <time>). Its Carbon can\n  wake it: extend device wake <id> --reason \\\"...\\\"\". Awake never refuses anything by itself.\n","title":"Silicon Extend API","version":"2.1.0"},"openapi":"3.1.0","paths":{"/api/v1/contracts":{"get":{"description":"Built from live state, not a fixed list. Each major's lifecycle (`current` → `deprecated` → `sunset`) is kept in\n`extend_global.api_versions`, shared by every instance: configuration deprecates a major\n(`EXTEND_DEPRECATED_API_VERSIONS`, applied when an instance starts; the newest served major can't be\ndeprecated), and a deprecated major is sunset automatically after 7 consecutive days with zero requests\n(requests are counted per major and UTC day; an instance re-checks every 5 minutes). Sunset is final. The client\ncrate and CLI ranges come from `EXTEND_API_V{n}_CLIENT_CRATE` and `EXTEND_API_V{n}_CLI` (default\n`>={n}.0.0, <{n+1}.0.0`), and `device_app_min` from `EXTEND_DEVICE_APP_MIN_VERSION`. Retired majors stay listed\nafter their routes are gone. A request to this route counts as a request today for the major it came in on.\n`extend version` reads this to say whether the CLI is current, deprecated or sunset.\n","operationId":"contracts","responses":{"200":{"content":{"application/json":{"example":{"data":{"current":1,"deprecated":[],"service_version":"1.0.0","sunset_rule":"Sunset after 7 consecutive days with zero requests","supported":[1],"versions":[{"api_version":1,"compatible":{"cli":">=1.0.0, <2.0.0","client_crate":">=1.0.0, <2.0.0","device_app_min":"1.0.0"},"deprecated_at":null,"last_request_on":"2026-09-27","state":"current","sunset_at":null,"sunset_earliest_at":null,"sunset_rule":"Sunset after 7 consecutive days with zero requests"}]},"type":"contracts"},"schema":{"properties":{"data":{"properties":{"current":{"description":"The newest major a client can agree on","example":1,"type":"integer"},"deprecated":{"example":[],"items":{"type":"integer"},"type":"array"},"service_version":{"example":"1.0.0","type":"string"},"sunset_rule":{"example":"Sunset after 7 consecutive days with zero requests","type":"string"},"supported":{"description":"Majors served and not sunset","example":[1],"items":{"type":"integer"},"type":"array"},"versions":{"description":"Every major with a lifecycle record, oldest first, including retired ones","items":{"properties":{"api_version":{"type":"integer"},"compatible":{"properties":{"cli":{"example":">=1.0.0, <2.0.0","type":"string"},"client_crate":{"example":">=1.0.0, <2.0.0","type":"string"},"device_app_min":{"example":"1.0.0","type":"string"}},"required":["client_crate","cli","device_app_min"],"type":"object"},"deprecated_at":{"format":"date-time","type":["string","null"]},"last_request_on":{"description":"The last UTC day with a request","format":"date","type":["string","null"]},"state":{"enum":["current","deprecated","sunset"],"type":"string"},"sunset_at":{"description":"When the sunset rule was met","format":"date-time","type":["string","null"]},"sunset_earliest_at":{"description":"Deprecated majors only: the soonest it can be sunset if no request arrives (the Sunset header)","format":"date-time","type":["string","null"]},"sunset_rule":{"example":"Sunset after 7 consecutive days with zero requests","type":"string"}},"required":["api_version","state","deprecated_at","sunset_at","sunset_earliest_at","last_request_on","sunset_rule","compatible"],"type":"object"},"type":"array"}},"required":["service_version","current","supported","deprecated","sunset_rule","versions"],"type":"object"},"type":{"const":"contracts"}},"required":["type","data"],"type":"object"}}},"description":"Every API major, its state, and the client, CLI and app versions that work with it","headers":{"Deprecation":{"$ref":"#/components/headers/Deprecation"},"Sunset":{"$ref":"#/components/headers/Sunset"}}},"410":{"$ref":"#/components/responses/Error","description":"api_version_sunset: the path's major is retired"}},"security":[],"summary":"Compatibility matrix and deprecation state","tags":["System"]}},"/api/v1/device":{"delete":{"description":"Removes the device from the account of the Carbon whose pair the credential is, and ends the access of every\nSilicon that Carbon gave access to (`pair_revoked`; a command in flight answers its caller `409 session_ended` at\nonce). Other Carbons' pairs of the device are untouched (1.1). The device stays readable to its Carbon as a\nremoved device. The app confirms with the Carbon first, naming them. There is no route yet for a host computer to revoke a device it\ncarries; its Carbon removes that one on the website or with `extend device rm`.\n","operationId":"revokePair","responses":{"204":{"description":"Unpaired; the credential no longer works"},"401":{"$ref":"#/components/responses/Error"}},"security":[{"deviceCredential":[]}],"summary":"Revoke pair, from the device (dangerous)","tags":["Device app"]},"get":{"description":"The pair the credential belongs to. An app with several pairs reads it once per credential (docs/device-protocol.md\nsection 2). `team` is kept for installed apps: the Team a pair made before Extend 4 was recorded in, `''` for\npairs made since; it authorizes nothing. `environment` is always null since Extend 4. `in_use` is\nset only when the session runs through this pair. 1.1 adds `instance_id` (the physical device; every pair of it\nshares one), `hardware_salt` (computer pairs only: the world's key for `hardware_key` on carried devices) and\n`first_pair` (true for the pair made by the app's first enrollment, whose Silicons get the terminal on a\ncomputer several Carbons paired). `in_use_indicator` is the physical device's shared banner choice, with\n`shown` as the default when absent. A 1.1 app preserves its saved local choice when a 1.0 service omits the field.\n\nThe device wire is unchanged in Extend 4: apps installed before it keep working with their credentials.\n","operationId":"deviceSelf","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"device_id":{"$ref":"#/components/schemas/DeviceIdValue"},"environment":{"description":"Always null since Extend 4 (no test environments); kept for installed apps","type":"null"},"first_pair":{"description":"1.1: made by the app's first enrollment (the Carbon who installed Silicon Extend on the device)","type":"boolean"},"hardware_salt":{"description":"1.1, computer pairs only: the same for every computer in the world","type":"string"},"in_use":{"oneOf":[{"$ref":"#/components/schemas/InUse"},{"type":"null"}]},"in_use_indicator":{"$ref":"#/components/schemas/InUseIndicator"},"instance_id":{"description":"1.1: the physical device; every pair of it shares one","format":"uuid","type":"string"},"name":{"$ref":"#/components/schemas/DeviceName"},"os":{"$ref":"#/components/schemas/DeviceOs"},"owner":{"$ref":"#/components/schemas/Member"},"setup":{"$ref":"#/components/schemas/Setup"},"takeover":{"oneOf":[{"$ref":"#/components/schemas/Takeover"},{"type":"null"}]},"team":{"description":"Kept for installed apps: a pre-Extend 4 pair's recorded Team, `''` since; authorizes nothing","type":"string"}},"required":["device_id","name","owner","team","in_use","environment"],"type":"object"},"type":{"const":"device_self"}},"required":["type","data"],"type":"object"}}},"description":"Name, owner and who is using it"},"401":{"$ref":"#/components/responses/Error"}},"security":[{"deviceCredential":[]}],"summary":"What the Extend app shows once paired","tags":["Device app"]},"patch":{"description":"Any live pair credential can change the shared physical device preference. The envelope is `device_self`;\na bare data object is also accepted. Send `in_use_indicator: shown|hidden`. No If-Match is needed. The setting\ndoes not end a session, release the screen hold, hide takeover requests, or remove Stop from the app/website.\nChanged values refresh every live pair. A 1.0 service has no PATCH handler; 1.1 native apps retain their local\nchoice and report that synchronization is unavailable or pending instead of treating an omitted GET field as\nan instruction to reset it.\n","operationId":"updateDeviceSelf","requestBody":{"$ref":"#/components/requestBodies/DeviceIndicatorPatch"},"responses":{"200":{"$ref":"#/paths/~1api~1v1~1device/get/responses/200"},"401":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"}},"security":[{"deviceCredential":[]}],"summary":"Show or hide this physical device's in-use banner","tags":["Device app"]}},"/api/v1/device/artifacts/{upload_id}":{"put":{"description":"`upload_id` comes with the command. Single use, valid until the command's deadline, at most 1 GiB. Extend\nstreams it to Briefcase and answers once Briefcase has it.\n","operationId":"uploadArtifact","parameters":[{"in":"path","name":"upload_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"Content-Type","required":true,"schema":{"example":"image/png","type":"string"}},{"in":"header","name":"X-Content-SHA256","required":true,"schema":{"pattern":"^[0-9a-f]{64}$","type":"string"}},{"in":"header","name":"X-File-Name","required":true,"schema":{"maxLength":255,"type":"string"}}],"requestBody":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"required":true},"responses":{"201":{"description":"Stored"},"404":{"description":"Unknown, used or expired upload id"},"413":{"description":"Larger than 1 GiB"},"422":{"description":"Digest does not match the bytes"}},"security":[{"deviceCredential":[]}],"summary":"Upload a file a command produced","tags":["Device app"]}},"/api/v1/device/attachments/{device_id}":{"parameters":[{"$ref":"#/components/parameters/DeviceId"}],"patch":{"description":"Uses the computer's live pair credential. The target must be carried by that exact host pair in the same\nworld and remain live after authorization is re-checked under the instance locks. Another Carbon's host pair,\nan unrelated target or a removed target gets `404 device_not_found`. The response is the target's device_self.\nThe physical device preference updates every carried alias/host through attach frames without replacing a\nlive driver, session or recording. The native app may save an offline choice and synchronize it later.\n","operationId":"updateAttachedDeviceIndicator","requestBody":{"$ref":"#/components/requestBodies/DeviceIndicatorPatch"},"responses":{"200":{"$ref":"#/paths/~1api~1v1~1device/get/responses/200"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"}},"security":[{"deviceCredential":[]}],"summary":"A host app shows or hides a carried device's shared in-use banner","tags":["Device app"]}},"/api/v1/device/connect":{"get":{"description":"Upgrade to WebSocket with `Authorization: Extend-Device <device_credential>`. Flat JSON frames\n`{\"type\": ..., <fields>}`; every frame and field is in docs/device-protocol.md (Rust: extend-protocol frames.rs). Ping every 15 s; offline after 45 s\nwithout a pong. One connection per pair (1.1): an app with several pairs opens one for each credential. A new\nconnection for a pair replaces the old one, which gets `superseded`; when the old one had answered a ping in\nthe last 30 s, the pair's activity log records `connection_replaced`. A credential rotated by a `credential`\nframe but not yet confirmed also connects, and connecting with it confirms it. Close codes: 4401 credential invalid or unpaired, 4409 superseded by a newer connection,\n4426 app too old (upgrade required). The first frame is `environment` with a null environment (kept for\ninstalled apps).\n","operationId":"deviceSocket","responses":{"101":{"description":"Switching protocols"},"401":{"$ref":"#/components/responses/Error"},"426":{"$ref":"#/components/responses/Error"}},"security":[{"deviceCredential":[]}],"summary":"The paired device's WebSocket to Extend","tags":["Device app"]}},"/api/v1/device/enrollments":{"post":{"description":"With the credential of any live pair of the device. The answer is shaped like `POST /api/v1/enrollments`; the app\nfollows it the same way (`GET /api/v1/enrollments/{id}` and `/enrollments/{id}/connect`). The code it shows\npairs the same physical device into the same world for whichever Carbon enters it on the website: a new pair,\nwith its own `device_id`, credential, name, access list and lifetime (docs/device-protocol.md section 1). The\napp never names the device itself; holding a live credential is the proof, and only a Carbon can claim the code.\n\nNo body, `{}` or `{\"type\": \"enrollment\", \"data\": {}}`. Limits: the 60 enrollments per hour per address of\n`POST /api/v1/enrollments`; at most 3 waiting codes per device (`429 rate_limited`, `details.retry_after_s`);\n`409 conflict` when the device already has `EXTEND_MAX_PAIRS_PER_DEVICE` pairs (8 by default): \"This device is\npaired to 8 Carbons, the most Extend allows.\" A 1.0 service answers 404. A device paired through a computer has\nno credential, so it can't call this: its second Carbon pairs the computer and adds the device through it.\n","operationId":"pairWithAnotherCarbon","responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"code_expires_at":{"format":"date-time","type":"string"},"enrollment_id":{"format":"uuid","type":"string"},"enrollment_secret":{"description":"Returned once","pattern":"^ees_[A-Za-z0-9_-]{43}$","type":"string"},"pairing_code":{"$ref":"#/components/schemas/PairingCode"},"rotates_every_s":{"const":300,"type":"integer"}},"required":["enrollment_id","enrollment_secret","pairing_code","code_expires_at","rotates_every_s"],"type":"object"},"type":{"const":"enrollment"}},"required":["type","data"],"type":"object"}}},"description":"Enrollment with its first code"},"401":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error","description":"conflict: the device has the most pairs Extend allows"},"429":{"$ref":"#/components/responses/Error","description":"rate_limited"}},"security":[{"deviceCredential":[]}],"summary":"\"Pair with another Carbon\": a paired app asks for a new pairing code (1.1)","tags":["Device app"]}},"/api/v1/device/stop":{"post":{"description":"Same as the `stop` frame on the socket, for when the socket is down: ends the running session with\n`stopped_by_carbon` (a command in flight answers `409 session_ended` at once). A no-op when nothing runs. Client:\n`Client::device_stop`. 1.1: it acts on the physical device, from any pair's credential: the session ends\nwhichever Carbon's pair it runs through, and on a computer every session on a device it carries ends too.\n","operationId":"deviceStop","responses":{"204":{"description":"Stopped, or nothing was running"},"401":{"$ref":"#/components/responses/Error","description":"unauthorized: the credential is not paired"}},"security":[{"deviceCredential":[]}],"summary":"The Carbon tapped Stop on the device","tags":["Device app"]}},"/api/v1/enrollments":{"post":{"description":"No sign-in. An Extend app that isn't paired yet asks for a 6-character pairing code and an enrollment secret, then\nholds `/api/v1/enrollments/{enrollment_id}/connect` open to get new codes and, once a Carbon claims one, its device\ncredential. An app older than `EXTEND_DEVICE_APP_MIN_VERSION` is `426 upgrade_required`. At most 10 enrollments per\naddress every 10 minutes. The device wire is unchanged in Extend 4: apps installed before it keep working.\n","operationId":"createEnrollment","requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"additionalProperties":false,"properties":{"agent_device_version":{"deprecated":true,"description":"The 1.0 name of engine_version","maxLength":32,"type":"string"},"app_version":{"example":"1.1.0","maxLength":32,"type":"string"},"engine_version":{"description":"The device engine's version on a computer (1.1). 1.0 apps send it as agent_device_version, which is still read.","maxLength":32,"type":"string"},"model":{"example":"Pixel 9","maxLength":128,"type":"string"},"os":{"$ref":"#/components/schemas/DeviceOs"},"os_version":{"example":"15","maxLength":64,"type":"string"}},"required":["os","app_version"],"type":"object"},"type":{"const":"enrollment"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"example":{"data":{"code_expires_at":"2026-09-26T10:05:00.000Z","enrollment_id":"01926f3a-5c1e-7b2d-9a40-3e5f8c7d1b22","enrollment_secret":"ees_Q2hhbmdlLW1lLXRoaXMtaXMtYS1zYW1wbGUtc2VjcmV","pairing_code":"4F9C2A","rotates_every_s":300},"type":"enrollment"},"schema":{"properties":{"data":{"properties":{"code_expires_at":{"format":"date-time","type":"string"},"enrollment_id":{"format":"uuid","type":"string"},"enrollment_secret":{"description":"Returned once","pattern":"^ees_[A-Za-z0-9_-]{43}$","type":"string"},"pairing_code":{"$ref":"#/components/schemas/PairingCode"},"rotates_every_s":{"const":300,"type":"integer"}},"required":["enrollment_id","enrollment_secret","pairing_code","code_expires_at","rotates_every_s"],"type":"object"},"type":{"const":"enrollment"}},"required":["type","data"],"type":"object"}}},"description":"Enrollment with its first code"},"401":{"$ref":"#/components/responses/Error","description":"testing_secret_invalid: the request still selects a test environment (Extend 4 has none)"},"422":{"$ref":"#/components/responses/Error","description":"invalid_input, for example an OS that pairs through a host (ios, tvos, samsung_tv…)"},"426":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"An unpaired Extend app asks for a pairing code","tags":["Enrollment"]}},"/api/v1/enrollments/{enrollment_id}":{"delete":{"operationId":"discardEnrollment","responses":{"204":{"description":"Discarded; its code no longer works"},"401":{"$ref":"#/components/responses/Error"}},"security":[{"enrollmentSecret":[]}],"summary":"The app stops waiting to be paired","tags":["Enrollment"]},"get":{"description":"The enrollment secret as `Authorization: Extend-Enrollment <secret>`. While unclaimed: the current code. Once a\nCarbon claimed it: the device credential, exactly once; the enrollment is then gone and later reads are 404.\n","operationId":"getEnrollment","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/EnrollmentState"},"type":{"const":"enrollment"}},"required":["type","data"],"type":"object"}}},"description":"Enrollment state"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"security":[{"enrollmentSecret":[]}],"summary":"Current code, or the device credential once paired","tags":["Enrollment"]},"parameters":[{"$ref":"#/components/parameters/EnrollmentId"}]},"/api/v1/enrollments/{enrollment_id}/connect":{"get":{"description":"Upgrade to WebSocket. Frames are JSON `{\"type\", \"data\"}`:\n`code` `{pairing_code, code_expires_at}` every 300 s; `paired` `{device_id, device_credential, environment}`\nonce, then the server closes with 1000. Heartbeat as on the device socket.\n","operationId":"enrollmentSocket","responses":{"101":{"description":"Switching protocols"},"401":{"$ref":"#/components/responses/Error"}},"security":[{"enrollmentSecret":[]}],"summary":"WebSocket that pushes code rotations and the pairing result","tags":["Enrollment"]},"parameters":[{"$ref":"#/components/parameters/EnrollmentId"}]},"/api/v2/accounts":{"get":{"description":"No sign-in. The CLI reads it to sign in: Carbons with the Silicon Accounts device flow at `accounts_url`,\nSilicons with a short-lived token (`silicon-accounts login --app extend -q | extend login --slt-stdin`).\n`ting_enabled` is false while this server sends no notifications through Ting (`EXTEND_TING_URL` unset):\nrequests and wake requests are then only on the website, in the CLI and on the device.\n","operationId":"accountsInfo","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/AccountsInfo"},"type":{"const":"accounts"}},"required":["type","data"],"type":"object"}}},"description":"Extend's app id in Silicon Accounts and its links"}},"security":[],"summary":"Where Extend's accounts come from, and where everything else is","tags":["Auth"]}},"/api/v2/accounts/lookup":{"get":{"description":"Any signed-in account. Current ids only: an account that changed its id is found by its new one. An id nobody\nhas is `422 invalid_input`, \"No account si:… exists in Silicon Accounts\".\n","operationId":"lookupAccount","parameters":[{"in":"query","name":"id","required":true,"schema":{"example":"si:scout","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/AccountRef"},"type":{"const":"account"}},"required":["type","data"],"type":"object"}}},"description":"The account"},"401":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"}},"summary":"Who an id belongs to (`c:ada`, `si:scout`), through Silicon Accounts","tags":["Auth"]}},"/api/v2/auth/logout":{"post":{"description":"Signs this sign-in out of Extend. Silicon Accounts revokes the refresh token sent in the body (the CLI and the\nwebsite hold it), or, without one, the sign-in of the access token used. Then:\n- a Silicon's running sessions end at once (`silicon_logged_out`), its open wake requests are withdrawn, and the\n  proofs Extend held for it are revoked;\n- a Carbon's sign-out ends the sessions of the Silicons they gave access to, through their own pairs only\n  (`access_removed`), never another Carbon's.\nPairs and grants stay. If Silicon Accounts can't be reached, nothing is revoked or ended and the error says so.\n","operationId":"logout","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"additionalProperties":false,"properties":{"refresh_token":{"description":"The Silicon Accounts refresh token (sar_…) the client holds","minLength":1,"type":"string","writeOnly":true}},"type":"object"},"type":{"const":"logout"}},"required":["type","data"],"type":"object"}}},"required":false},"responses":{"204":{"description":"Signed out"},"401":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error","description":"Silicon Accounts could not be reached; nothing was revoked or ended"}},"summary":"Sign out of Extend","tags":["Auth"]}},"/api/v2/contacts":{"get":{"operationId":"listContacts","parameters":[{"in":"query","name":"offset","required":false,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"schema":{"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Person"},"type":"array"},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"required":["items","offset","limit","total"],"type":"object"},"type":{"const":"contacts"}},"required":["type","data"],"type":"object"}}},"description":"Success"},"default":{"$ref":"#/components/responses/Error"}},"summary":"List saved contacts from the caller’s connected address book","tags":["People"]},"post":{"operationId":"saveContact","requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"trust":{"maximum":255,"minimum":1,"type":"integer"}},"required":["id","name","trust"],"type":"object"},"type":{"const":"contact"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Person"},"type":{"const":"contact"}},"required":["type","data"],"type":"object"}}},"description":"Success"},"default":{"$ref":"#/components/responses/Error"}},"summary":"Save a contact’s name and trust in Silicon Contacts","tags":["People"]}},"/api/v2/contacts/connection":{"get":{"operationId":"contactsConnection","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"connected":{"type":"boolean"}},"required":["connected"],"type":"object"},"type":{"const":"contacts_connection"}},"required":["type","data"],"type":"object"}}},"description":"Success"},"default":{"$ref":"#/components/responses/Error"}},"summary":"Read the caller’s address-book connection","tags":["People"]},"put":{"operationId":"setContactsConnection","requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"type":"object"},"type":{"const":"contacts_connection"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"connected":{"type":"boolean"}},"required":["connected"],"type":"object"},"type":{"const":"contacts_connection"}},"required":["type","data"],"type":"object"}}},"description":"Success"},"default":{"$ref":"#/components/responses/Error"}},"summary":"Connect or disconnect Silicon Contacts for this account","tags":["People"]}},"/api/v2/contacts/photos/{id}":{"get":{"operationId":"contactPhoto","parameters":[{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"image/png":{"schema":{"format":"binary","type":"string"}}},"description":"Private PNG"},"default":{"$ref":"#/components/responses/Error"}},"summary":"Read one private contact photo in the connected address book","tags":["People"]}},"/api/v2/contracts":{"get":{"operationId":"contractsV2","responses":{"200":{"description":"Every API major, its state, and the client, CLI and app versions that work with it"},"410":{"$ref":"#/components/responses/Error","description":"api_version_sunset: the path's major is retired"}},"security":[],"summary":"Compatibility matrix and deprecation state (the same answer as /api/v1/contracts)","tags":["System"]}},"/api/v2/devices":{"get":{"description":"- `mine` (a Carbon's default): every device the Carbon paired (each of their pairs).\n- `accessible` (a Silicon's default): the devices the Silicon has a grant on. A device several Carbons paired and\n  gave it access to lists once per pair, each naming the others in `same_device`.\nA device is private: there is no shared list, and any other `scope` is `422 invalid_input`. `include_removed=true`\n(Carbons, scope `mine`) also lists their removed devices, so their activity logs stay readable. `online` filters\nbefore paging, so every page but the last is full.\n","operationId":"listDevices","parameters":[{"description":"Limit to a specific organization","in":"query","name":"organization_id","schema":{"type":"string"}},{"in":"query","name":"scope","schema":{"description":"`mine` for a Carbon, `accessible` for a Silicon (each one's default)","enum":["all","mine","accessible","organization"],"type":"string"}},{"in":"query","name":"online","schema":{"type":"boolean"}},{"in":"query","name":"os","schema":{"$ref":"#/components/schemas/DeviceOs"}},{"description":"With scope=mine, also list the caller's removed devices","in":"query","name":"include_removed","schema":{"default":false,"type":"boolean"}},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"example":{"data":{"items":[{"awake":true,"awake_changed_at":"2026-09-26T09:57:40.120Z","days_left":14,"device_id":"7c1e09ab","in_use":{"session_id":"a3f","silicon_id":"si:chef","silicon_uuid":"8YnY5M4E","since":"2026-09-26T09:58:00.000Z"},"kind":"phone","last_seen_at":"2026-09-26T10:04:12.391Z","last_used_at":"2026-09-26T10:04:10.002Z","name":"Saket's Pixel","online":true,"open_wake_requests":0,"os":"android","os_version":"15","owner":{"id":"c:saket","type":"carbon"},"pair_expires_at":"2026-10-10T10:04:10.002Z","pair_ttl_days":14,"paired_by_others":false,"state":"ready","visibility":"personal","wake_detectable":true,"wake_muted":false},{"awake":false,"awake_changed_at":"2026-09-26T08:10:02.000Z","device_id":"0d44e1f2","in_use_by_other":true,"kind":"tv","name":"Living room TV","online":true,"open_wake_requests":1,"os":"android_tv","owner":{"id":"c:saket","type":"carbon"},"paired_by_others":true,"sleep_state":"standby","state":"ready","visibility":"personal","wake_detectable":true}],"next_cursor":null},"type":"devices"},"schema":{"properties":{"data":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Device"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"],"type":"object"},"type":{"const":"devices"}},"required":["type","data"],"type":"object"}}},"description":"Devices; empty is still 200"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"}},"summary":"List devices","tags":["Devices"]}},"/api/v2/devices/{device_id}":{"delete":{"description":"Owner only. Ends this Carbon's pair of the device: any session running through it (`device_removed`; a\ncommand in flight answers `409 session_ended` at once), every grant on it and its open wake requests; unpairs it\n(`unpaired` goes to that pair's connection only), and keeps it readable to its owner as a removed device (see\n`GET /api/v2/devices/{device_id}`), with its activity log. Other Carbons' pairs of the same device, and sessions\nthrough them, are untouched (1.1). Clients must confirm with the Carbon first; the CLI needs `--yes`. For a host\ncomputer, also removes every device paired through this pair. Removing a removed device again is\n`404 device_not_found`, not 204.\n","operationId":"removeDevice","parameters":[{"$ref":"#/components/parameters/IfMatch"}],"responses":{"204":{"description":"Removed"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"412":{"$ref":"#/components/responses/Error"}},"summary":"Remove the device (dangerous)","tags":["Devices"]},"get":{"description":"The Carbon who paired it (this pair's owner), or a Silicon with a grant on it. Anyone else gets `404\ndevice_not_found`, which never says whether the device exists. Each viewer sees their own side: another side's\nSilicon (another Carbon's pair of the same device, or a Silicon outside the viewer's custodian circle) shows as \"in\nuse\" (`in_use_by_other`), never named.\n","operationId":"getDevice","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/Device"},{"properties":{"capabilities":{"items":{"$ref":"#/components/schemas/Capability"},"type":"array"},"commands":{"example":["snapshot","screenshot","click","fill","type","open","close","terminal"],"items":{"type":"string"},"type":"array"},"missing":{"description":"Capabilities this kind of device supports but this one lacks right now, with why","items":{"properties":{"capability":{"$ref":"#/components/schemas/Capability"},"reason":{"example":"Screen Recording permission is off on this Mac","type":"string"}},"required":["capability","reason"],"type":"object"},"type":"array"}},"required":["capabilities","commands"],"type":"object"}]},"type":{"const":"device"}},"required":["type","data"],"type":"object"}}},"description":"Device with capabilities and the Extend commands they unlock","headers":{"ETag":{"schema":{"type":"string"}}}},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"summary":"One device, with what a Silicon can do on it (`extend device show`)","tags":["Devices"]},"parameters":[{"$ref":"#/components/parameters/DeviceId"}],"patch":{"description":"Owner only: the name and lifetime are this Carbon's pair's own, so another Carbon who paired the same device\nkeeps theirs. Send only the fields that change. `visibility` is accepted and ignored (1.1): every device is\npersonal, and the answer says so. `in_use_indicator` is `shown` or `hidden` (1.1), and unlike the name and\nlifetime belongs to the physical device: every Carbon's pair shares the choice. Only a Carbon who owns a live\npair may change it; a Silicon gets `403 carbon_only`. The current owner does not need every other owner's\napproval. Changed values refresh the live pair connections, or update every carried alias through its host.\nA 1.0 app may ignore the setting; its service-side value is still saved.\n","operationId":"updateDevice","parameters":[{"$ref":"#/components/parameters/IfMatch"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"additionalProperties":false,"minProperties":1,"properties":{"in_use_indicator":{"$ref":"#/components/schemas/InUseIndicator"},"name":{"$ref":"#/components/schemas/DeviceName"},"pair_ttl_days":{"$ref":"#/components/schemas/PairTtlDays"},"visibility":{"$ref":"#/components/schemas/Visibility"}},"type":"object"},"type":{"const":"device"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Device"},"type":{"const":"device"}},"required":["type","data"],"type":"object"}}},"description":"Updated","headers":{"ETag":{"schema":{"type":"string"}}}},"403":{"$ref":"#/components/responses/Error"},"412":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"}},"summary":"Rename, change the pairing lifetime, or show/hide the shared in-use banner","tags":["Devices"]}},"/api/v2/devices/{device_id}/access":{"get":{"description":"Owner only. Every grant on this pair, each with the Silicon's current id and permanent `silicon_uuid`, who gave it,\nand `wake_muted`. A removed device the caller paired answers with no grants.\n","operationId":"listAccess","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AccessGrant"},"type":"array"}},"required":["items"],"type":"object"},"type":{"const":"access"}},"required":["type","data"],"type":"object"}}},"description":"Access grants"},"403":{"$ref":"#/components/responses/Error"}},"summary":"Silicons that can use the device","tags":["Access"]},"parameters":[{"$ref":"#/components/parameters/DeviceId"}]},"/api/v2/devices/{device_id}/access/{silicon_id}":{"delete":{"description":"Owner only. If that Silicon is using the device through this pair, its session ends at once (`access_removed`): a\ncommand in flight answers `409 session_ended` and the device gets `cancel` for it (the device stays paired). Its open\nwake requests here are withdrawn.\n","operationId":"revokeAccess","responses":{"204":{"description":"Revoked, or there was no grant"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"summary":"Take a Silicon's access away","tags":["Access"]},"parameters":[{"$ref":"#/components/parameters/DeviceId"},{"$ref":"#/components/parameters/SiliconIdPath"}],"put":{"description":"Owner only. Gives a Silicon access through this pair: any active Silicon, named by its current `si:` id or its\nSilicon Accounts uuid (resolved through Silicon Accounts). It is the Carbon's decision about their own device, so the\nSilicon doesn't have to accept it; the grant shows to that Silicon and to its custodian. One grant per pair and\nSilicon: repeating it returns the existing grant. An id nobody has, a Carbon's id, or a Silicon whose custodian hasn't\naccepted it yet is `422 invalid_input`. The Carbon is enrolled with Ting at their first grant (when Ting is on).\n","operationId":"grantAccess","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/AccessGrant"},"type":{"const":"access_grant"}},"required":["type","data"],"type":"object"}}},"description":"Granted"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"}},"summary":"Give a Silicon access","tags":["Access"]}},"/api/v2/devices/{device_id}/activity":{"get":{"description":"Owner only. Typed text and clipboard writes are redacted to `[redacted N chars]`. The log of a removed device\nstays readable to the Carbon who paired it (find it with `GET /api/v2/devices?include_removed=true`).\n\nThe log is this Carbon's pair's own. It never names another Carbon, their Silicons or sessions: another Carbon\npairing the device is\n`another_carbon_paired`, and a Stop by another Carbon who paired it is `session_ended` by `extend` with\n`{\"stopped_by\": \"another_carbon\"}`. New actions are listed under `ActivityEntry`.\n","operationId":"listActivity","parameters":[{"in":"query","name":"silicon_id","schema":{"$ref":"#/components/schemas/SiliconId"}},{"in":"query","name":"session_id","schema":{"$ref":"#/components/schemas/SessionIdValue"}},{"in":"query","name":"since","schema":{"format":"date-time","type":"string"}},{"in":"query","name":"until","schema":{"format":"date-time","type":"string"}},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ActivityEntry"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"],"type":"object"},"type":{"const":"activity"}},"required":["type","data"],"type":"object"}}},"description":"Entries, newest first"},"403":{"$ref":"#/components/responses/Error"}},"summary":"Every action on the device, which Silicon did it, and when","tags":["Activity"]},"parameters":[{"$ref":"#/components/parameters/DeviceId"}]},"/api/v2/devices/{device_id}/attachments":{"parameters":[{"$ref":"#/components/parameters/DeviceId"}],"post":{"description":"Owner only: adds a device the caller's computer carries (an Apple TV, an iPhone, a smart TV) through the caller's\nown pair of that computer. The host must be a computer that runs the app itself and is online; a carried device\ncan't carry others. `visibility` other than `personal` is `422`. The host is told to set it up (`attach`).\n","operationId":"attachDevice","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"additionalProperties":false,"properties":{"name":{"$ref":"#/components/schemas/DeviceName"},"os":{"enum":["ios","ipados","tvos","samsung_tv","lg_tv"],"type":"string"},"pair_ttl_days":{"$ref":"#/components/schemas/PairTtlDays"},"visibility":{"$ref":"#/components/schemas/Visibility"}},"required":["os","name"],"type":"object"},"type":{"const":"attachment"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Device"},"type":{"const":"device"}},"required":["type","data"],"type":"object"}}},"description":"Attached device, in setup"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error","description":"test_device_limit"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error","description":"rate_limited: the test environment is busy adding other devices"},"503":{"$ref":"#/components/responses/Error","description":"device_offline (the host)"}},"summary":"Pair an iPhone, iPad, Apple TV or smart TV through a paired computer","tags":["Pairing"]}},"/api/v2/devices/{device_id}/requests":{"get":{"description":"Owner only: the requests made through this pair, and the requests routed to this Carbon because a Silicon they gave\naccess to holds the device.\n","operationId":"listDeviceRequests","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestPage"}}},"description":"Requests, newest first"}},"summary":"Requests for this device, with reasons (device page)","tags":["Requests"]},"parameters":[{"$ref":"#/components/parameters/DeviceId"}],"post":{"description":"A Silicon with a grant on the device asks for it while another Silicon is using it:\n- when the Silicon using the device runs through the same pair and is in the asker's custodian circle (the same\n  custodian), the request goes to it, through Ting, naming the asker;\n- otherwise it goes to the Carbon who gave the holder access, on their own pair, naming the asker and its reason;\n  the asker's side sees only that it went to \"the Carbon who gave access to the Silicon using it\". It never names\n  the Silicon using the device or its session. A Silicon is never reached from outside its circle unasked.\nEvery Ting is sent by Extend itself (an App verification proof). The same reason from the same Silicon for the same\ndevice and session within 60 s returns the first request (200) and sends nothing. While Ting is off on the server\n(`EXTEND_TING_URL` unset), the request is recorded as `failed` with why, and stays visible to its recipient on the\nwebsite, in the CLI and on the device. Undelivered requests are retried (30 s, then 1, 2, 4 and 8 minutes, then every\n8 minutes) and fail after 6 attempts or 24 hours, with `last_error`.\n","operationId":"sendRequest","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"data":{"reason":"I need to check the order confirmation in the Swiggy app, 2 minutes"},"type":"request"},"schema":{"properties":{"data":{"additionalProperties":false,"properties":{"reason":{"description":"1–300 Unicode scalar values after trimming; at most 1,000 with the surrounding whitespace, which is kept","maxLength":1000,"minLength":1,"type":"string"}},"required":["reason"],"type":"object"},"type":{"const":"request"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Request"},"type":{"const":"request"}},"required":["type","data"],"type":"object"}}},"description":"A repeat of the same reason within 60 s; the existing request, nothing sent"},"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Request"},"type":{"const":"request"}},"required":["type","data"],"type":"object"}}},"description":"Sent, or stored as pending with last_error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error","description":"device_not_in_use; conflict (you are the one using it, or an Idempotency-Key reused with another body)"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error","description":"rate_limited"}},"summary":"Ask for a device another Silicon is using (`extend request send`)","tags":["Requests"]}},"/api/v2/devices/{device_id}/setup":{"get":{"description":"Owner only (the Carbon who paired this pair). Also answers for a removed device the caller paired.\n","operationId":"getSetup","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Setup"},"type":{"const":"setup"}},"required":["type","data"],"type":"object"}}},"description":"Setup state"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"summary":"The device's setup steps and where each one stands","tags":["Pairing"]},"parameters":[{"$ref":"#/components/parameters/DeviceId"}]},"/api/v2/devices/{device_id}/setup/code":{"parameters":[{"$ref":"#/components/parameters/DeviceId"}],"post":{"description":"Owner only. The code is relayed to the Mac that carries the Apple TV. Checked in this order, each refusal with a\nhint: the caller owns the device (a removed one is `404 device_not_found`); it is paired through a computer (a\ndevice that runs the Extend app takes no code: `422 invalid_input`); it is an Apple TV (another carried device\ntakes no code: `422`); the code is 4 digits after trimming (`422`, echoing what was sent); the host is online\n(`503 device_offline`, \"The computer … pairs through is offline, so the code could not reach it.\").\n","operationId":"enterSetupCode","requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"additionalProperties":false,"properties":{"code":{"example":"4821","pattern":"^[0-9]{4}$","type":"string"}},"required":["code"],"type":"object"},"type":{"const":"setup_code"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Setup"},"type":{"const":"setup"}},"required":["type","data"],"type":"object"}}},"description":"Accepted; setup continues"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error","description":"device_offline (the host)"}},"summary":"Enter the code an Apple TV shows during setup","tags":["Pairing"]}},"/api/v2/devices/{device_id}/setup/retry":{"parameters":[{"$ref":"#/components/parameters/DeviceId"}],"post":{"description":"Carbons only: a Carbon who paired the device (the owner of this pair); a Silicon gets `403 carbon_only`, another\nCarbon `404 device_not_found`. Body `{\"step\": \"<key>\"}` retries that step; `{}` or no body retries every failed\nstep. The service sends the device `setup_retry` (for a device a computer carries, to that computer with\n`target`) and answers 202 with the keys it asked for. It changes no step itself: the device reports progress as\nusual, and `GET .../setup` (or `extend device setup --watch`) follows it.\n\nRefusals, each with a hint:\n- `400 invalid_input`: the device has no step with that key; the message lists its steps.\n- `409 conflict`: \"Nothing to retry: no setup step has failed.\" (or the named step hasn't failed).\n- `409 device_offline`: \"<name> is offline. Setup carries on when it reconnects.\" For a carried device, when\n  the computer it pairs through is offline.\n- `426 upgrade_required`: \"<name> runs Silicon Extend <version>, which can't retry from here. Update it to 1.1,\n  or tap Retry on the device.\" The app (or, for a carried device, its computer's app) didn't list\n  `setup_retry` in its hello `features`.\n- `429 rate_limited`: at most one retry per device every 5 s; `details.retry_after_s` says when.\n","operationId":"retrySetup","requestBody":{"content":{"application/json":{"examples":{"everyFailedStep":{"value":{}},"oneStep":{"value":{"step":"wireless_debugging"}}},"schema":{"oneOf":[{"$ref":"#/components/schemas/SetupRetryInput"},{"properties":{"data":{"$ref":"#/components/schemas/SetupRetryInput"},"type":{"const":"setup_retry"}},"required":["type","data"],"type":"object"}]}}},"required":false},"responses":{"202":{"content":{"application/json":{"example":{"data":{"retrying":["wireless_debugging"]},"type":"setup_retry"},"schema":{"properties":{"data":{"$ref":"#/components/schemas/RetryResult"},"type":{"const":"setup_retry"}},"required":["type","data"],"type":"object"}}},"description":"The device was asked to run these steps again"},"400":{"$ref":"#/components/responses/Error","description":"invalid_input (no step with that key)"},"403":{"$ref":"#/components/responses/Error","description":"carbon_only"},"404":{"$ref":"#/components/responses/Error","description":"device_not_found"},"409":{"$ref":"#/components/responses/Error","description":"conflict (nothing to retry); device_offline (the device, or the computer it pairs through)"},"426":{"$ref":"#/components/responses/Error","description":"upgrade_required: the connected app can't retry setup"},"429":{"$ref":"#/components/responses/Error","description":"rate_limited"}},"summary":"Run a failed setup step again (`extend device setup <id> --retry`, the website's Retry) (1.1)","tags":["Pairing"]}},"/api/v2/devices/{device_id}/stop":{"parameters":[{"$ref":"#/components/parameters/DeviceId"}],"post":{"description":"Owner only. Ends the running session with `stopped_by_carbon`; a command in flight answers `409 session_ended`\nat once and the device gets `cancel` for it. No running session is 409 `device_not_in_use`.\n\n1.1: every Carbon who paired a device may stop the Silicon using it (UNDERSTANDING.md, Always visible), so the\nstop ends the session on the physical device whichever Carbon's pair it runs through. For a computer it also ends\nthe sessions on carried devices the caller paired too. It never ends a session on a carried device the caller\ndidn't pair: when that is all that is busy, it answers `409 conflict`, \"A device carried by Studio Mac is in use.\nIt can be stopped by the Carbon who paired it, or from Studio Mac's Extend app.\" (the computer's own Stop still\nstops it). The answer is the stopped `session` when it ran through the caller's own pair (as in 1.0), and\notherwise `device_stopped` (the Silicon isn't named). On the stopped session's pair, the activity log says\n`session_ended` by `extend`, `{\"stopped_by\": \"another_carbon\"}`, naming no one. A 1.0 client reads\n`device_stopped` as an error after the stop succeeded; it can reach it only by a race, since it never sees\nanother side's session as in use.\n","operationId":"stopDevice","responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"properties":{"data":{"$ref":"#/components/schemas/Session"},"type":{"const":"session"}},"required":["type","data"],"type":"object"},{"properties":{"data":{"$ref":"#/components/schemas/DeviceStopped"},"type":{"const":"device_stopped"}},"required":["type","data"],"type":"object"}]}}},"description":"The session that was ended (`session`), or `device_stopped` when it ran through another Carbon's pair"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error","description":"device_not_in_use; conflict (only a carried device someone else paired is busy)"}},"summary":"Stop the Silicon using the device now","tags":["Devices"]}},"/api/v2/devices/{device_id}/teams":{"put":{"operationId":"setDeviceTeams","parameters":[{"in":"path","name":"device_id","required":true,"schema":{"type":"string"}},{"description":"Quote the device version to guard against a concurrent edit.","in":"header","name":"If-Match","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"team_ids":{"items":{"type":"string"},"type":"array"}},"required":["team_ids"],"type":"object"},"type":{"const":"team_access"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"organization_id":{"type":"string"},"team_ids":{"items":{"type":"string"},"type":"array"},"version":{"type":"integer"}},"required":["organization_id","team_ids","version"],"type":"object"},"type":{"const":"team_access"}},"required":["type","data"],"type":"object"}}},"description":"Success"},"default":{"$ref":"#/components/responses/Error"}},"summary":"Replace an organization device’s team shares as a current owner or admin","tags":["Organizations"]}},"/api/v2/devices/{device_id}/wake-requests":{"get":{"description":"The Carbon who paired this pair sees every request made through it; a Silicon sees its own. Anyone else gets 404.\nNewest first.\n","operationId":"listWakeRequests","parameters":[{"in":"query","name":"state","schema":{"default":"all","enum":["open","all"],"type":"string"}},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WakeRequest"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"],"type":"object"},"type":{"const":"wake_requests"}},"required":["type","data"],"type":"object"}}},"description":"Wake requests"},"404":{"$ref":"#/components/responses/Error"}},"summary":"Wake requests on the device (`extend device wake-requests ls`)","tags":["Waking"]},"parameters":[{"$ref":"#/components/parameters/DeviceId"}],"post":{"description":"A Silicon with a grant on this pair asks the Carbon who paired it to wake the device. Extend never wakes a device\nitself. One open request per physical device and Silicon; asking again within 5 minutes is `429 rate_limited` (with\nits own request), after that it refreshes the request. It expires 30 minutes after the last ask. While the device is\nonline and awake it is `409 conflict` (\"start using it\"). The device shows it where it can (`device_notice`), and\nthe Carbon gets one `extend.device.wake_requested` Ting per pair every 15 minutes (a later ask is `covered`), at most\n6 an hour (later ones are `deferred`, which the Silicon sees as `pending`). When the device wakes, each Silicon that\nasked gets its own `extend.device.woken` Ting, naming no one, with what it can do now.\n","operationId":"askToWake","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"data":{"reason":"I need the TV on to check the order screen"},"type":"wake_request"},"schema":{"properties":{"data":{"$ref":"#/components/schemas/WakeCreate"},"type":{"const":"wake_request"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WakeRequest"},"type":{"const":"wake_request"}},"required":["type","data"],"type":"object"}}},"description":"Asked again after 5 minutes; the refreshed request"},"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WakeRequest"},"type":{"const":"wake_request"}},"required":["type","data"],"type":"object"}}},"description":"Asked"},"403":{"$ref":"#/components/responses/Error","description":"silicon_only, no_access"},"404":{"$ref":"#/components/responses/Error","description":"device_not_found"},"409":{"$ref":"#/components/responses/Error","description":"conflict (already awake, wake requests turned off, open through another pair of the same device); device_in_use"},"422":{"$ref":"#/components/responses/Error","description":"invalid_input"},"429":{"$ref":"#/components/responses/Error","description":"rate_limited: asked less than 5 minutes ago (details.retry_after_s, details.wake_request)"}},"summary":"Ask the Carbon to wake a device that isn't awake (`extend device wake`)","tags":["Waking"]}},"/api/v2/devices/{device_id}/wake-requests/answer":{"parameters":[{"$ref":"#/components/parameters/DeviceId"}],"post":{"description":"Owner only.\n- `woken`: \"It's awake\" is a fact about the whole device: every open request on it ends (`confirmed_by_carbon`),\n  made through any Carbon's pair, and `wake_ids` is ignored. Each Silicon that asked gets its own\n  `extend.device.woken` Ting, naming no one. The answer lists only this Carbon's own pair's requests.\n- `declined`: only this Carbon's pair's requests (all, or `wake_ids`); each asking Silicon gets\n  `extend.device.wake_declined`, naming this Carbon. A wake id not open on this pair is `422`.\n","operationId":"answerWakeRequests","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"examples":{"declined":{"value":{"data":{"answer":"declined"},"type":"wake_answer"}},"woken":{"value":{"data":{"answer":"woken"},"type":"wake_answer"}}},"schema":{"properties":{"data":{"$ref":"#/components/schemas/WakeAnswer"},"type":{"const":"wake_answer"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WakeAnswered"},"type":{"const":"wake_answer"}},"required":["type","data"],"type":"object"}}},"description":"Answered"},"403":{"$ref":"#/components/responses/Error","description":"carbon_only, not_owner"},"404":{"$ref":"#/components/responses/Error","description":"device_not_found"},"409":{"$ref":"#/components/responses/Error","description":"conflict: nothing is open"},"422":{"$ref":"#/components/responses/Error","description":"invalid_input: a wake_id that isn't on this pair"}},"summary":"The Carbon answers \"It's awake\" or \"Decline\" (`extend device wake-requests answer`, the website)","tags":["Waking"]}},"/api/v2/devices/{device_id}/wake-requests/{wake_id}":{"delete":{"description":"The Silicon that asked, or its custodian. The request ends as `withdrawn` (`cancelled`) and the device drops it.\n","operationId":"cancelWakeRequest","responses":{"204":{"description":"Withdrawn"},"404":{"$ref":"#/components/responses/Error","description":"request_not_found"},"409":{"$ref":"#/components/responses/Error","description":"conflict: it already ended"}},"summary":"Withdraw your own wake request (`extend device wake <id> --cancel`)","tags":["Waking"]},"parameters":[{"$ref":"#/components/parameters/DeviceId"},{"$ref":"#/components/parameters/WakeId"}]},"/api/v2/devices/{device_id}/wake-settings":{"parameters":[{"$ref":"#/components/parameters/DeviceId"}],"put":{"description":"Owner only. Turns wake requests off (or on) for this pair, or for one Silicon on it (`silicon_id`, its current id or\nuuid; a Silicon without a grant here is `422`). Turning them off withdraws the matching open requests (`muted`).\n`team` is not a wake setting any more (`422`).\n","operationId":"setWakeSettings","requestBody":{"content":{"application/json":{"examples":{"device":{"value":{"data":{"muted":true},"type":"wake_settings"}},"oneSilicon":{"value":{"data":{"muted":true,"silicon_id":"si:chef"},"type":"wake_settings"}}},"schema":{"properties":{"data":{"$ref":"#/components/schemas/WakeSettings"},"type":{"const":"wake_settings"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WakeSettingsView"},"type":{"const":"wake_settings"}},"required":["type","data"],"type":"object"}}},"description":"The pair's wake settings now"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error","description":"invalid_input: the Silicon has no grant on this pair, or a team was sent"}},"summary":"Turn wake requests off or on for a device, or for one Silicon (`extend device wake-requests mute|unmute`)","tags":["Waking"]}},"/api/v2/files":{"get":{"description":"The files the caller may see: a Silicon, the ones it made on devices it still has access to; a Carbon, the ones made\non their devices and the ones made by the Silicons they look after (narrowed with `?silicon=<si:id>`). Files past\ntheir self-destruct time are not listed.\n","operationId":"listFiles","parameters":[{"in":"query","name":"session_id","schema":{"$ref":"#/components/schemas/SessionIdValue"}},{"in":"query","name":"device_id","schema":{"$ref":"#/components/schemas/DeviceIdValue"}},{"in":"query","name":"kind","schema":{"$ref":"#/components/schemas/FileKind"}},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"items":{"items":{"$ref":"#/components/schemas/File"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"],"type":"object"},"type":{"const":"files"}},"required":["type","data"],"type":"object"}}},"description":"Files, newest first. A file whose self-destruct time has passed is omitted at once, also while Extend is\nstill deleting it from Briefcase (its record stays until Briefcase confirms the deletion; failures are\nretried, backing off from 1 minute to 1 hour).\n"}},"summary":"Files made in the caller's sessions (Silicon) or on the caller's devices (Carbon)","tags":["Files"]}},"/api/v2/files/{file_id}":{"get":{"operationId":"getFile","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/File"},"type":{"const":"file"}},"required":["type","data"],"type":"object"}}},"description":"File"},"404":{"$ref":"#/components/responses/Error"}},"summary":"One file and its Briefcase link","tags":["Files"]},"parameters":[{"$ref":"#/components/parameters/FileId"}]},"/api/v2/files/{file_id}/content":{"get":{"description":"The Silicon that made the file (`created_by`), the Carbon who owns the pair it was made through, or the\nSilicon's custodian, until its self-destruct time passes: the same check as `GET /api/v2/files/{file_id}`. The\nbytes are read from Briefcase as the caller, with a User verification proof for them (scope\n`briefcase.files.read`), so Briefcase's own sharing applies too (local disk in development). `HEAD` answers the\nsame headers without the body.\n\nOne byte range is honoured: `Range: bytes=F-L`, `bytes=F-` or `bytes=-N` answers 206; a range that starts past\nthe end answers 416. Several ranges, other units, malformed ranges, or L before F are ignored and the whole file\nis served. The service holds the whole file in memory while it answers (files are at most 1 GiB).\n\nRefusals: `404 file_not_found` for a file that is unknown, not visible to the caller, or already\nself-destructed. Briefcase's own refusals keep their codes (`403 no_access`, `404 file_not_found`,\n`429 rate_limited`, `503 service_unavailable`); for the device's Carbon, when sharing the file with them failed\nwhen it was made, the hint says \"Ask <creator> to share it with you in Briefcase.\"\n","operationId":"fileContent","parameters":[{"in":"header","name":"Range","required":false,"schema":{"example":"bytes=0-1023","type":"string"}}],"responses":{"200":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"The whole file","headers":{"Accept-Ranges":{"schema":{"const":"bytes","type":"string"}},"Cache-Control":{"schema":{"const":"private, no-store","type":"string"}},"Content-Disposition":{"description":"attachment; filename=\"<name, with non-ASCII characters, quotes and backslashes as _>\"; filename*=UTF-8''<percent-encoded name> (RFC 8187)","example":"attachment; filename=\"screenshot.png\"; filename*=UTF-8''screenshot.png","schema":{"type":"string"}},"Content-Length":{"schema":{"type":"integer"}},"Content-Security-Policy":{"schema":{"const":"sandbox; default-src 'none'","type":"string"}},"Content-Type":{"description":"The type the device reported when the file was made (else the store's)","schema":{"type":"string"}},"X-Content-Type-Options":{"schema":{"const":"nosniff","type":"string"}}}},"206":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"The requested range, with the same headers","headers":{"Content-Disposition":{"schema":{"type":"string"}},"Content-Length":{"schema":{"type":"integer"}},"Content-Range":{"example":"bytes 0-7/67","schema":{"type":"string"}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error","description":"no_access (Briefcase)"},"404":{"$ref":"#/components/responses/Error","description":"file_not_found"},"416":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Error"},"type":{"const":"error"}},"required":["type","data"],"type":"object"}}},"description":"The range starts past the end. Error envelope with code invalid_input and a hint about the Range header.","headers":{"Content-Range":{"example":"bytes */67","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/Error","description":"rate_limited (Briefcase)"},"503":{"$ref":"#/components/responses/Error","description":"service_unavailable (Briefcase)"}},"summary":"Download a file's bytes (`extend file get`, and every `--out`)","tags":["Files"]},"parameters":[{"$ref":"#/components/parameters/FileId"}]},"/api/v2/files/{file_id}/keep":{"parameters":[{"$ref":"#/components/parameters/FileId"}],"post":{"description":"Cancels a file's self-destruct: the Silicon that made it, or its custodian.\n","operationId":"keepFile","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/File"},"type":{"const":"file"}},"required":["type","data"],"type":"object"}}},"description":"Now permanent"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"}},"summary":"Make a file permanent before it self-destructs (`extend file keep`)","tags":["Files"]}},"/api/v2/me":{"get":{"description":"Who the access token belongs to: the account's permanent Silicon Accounts `uuid`, its current public id (which can\nchange; Extend keys nothing on it), its kind and, for a Silicon, its custodian.\n","operationId":"me","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/AccountMe"},"type":{"const":"me"}},"required":["type","data"],"type":"object"}}},"description":"The account the access token belongs to"},"401":{"$ref":"#/components/responses/Error"}},"summary":"Who is signed in (what `extend login status --json` prints)","tags":["Auth"]}},"/api/v2/organizations":{"get":{"operationId":"organizations","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"account_uuid":{"type":"string"},"groups":{"items":{"type":"string"},"type":"array"},"organizations":{"items":{"properties":{"capabilities":{"properties":{"admin":{"type":"boolean"},"owner":{"type":"boolean"}},"required":["admin","owner"],"type":"object"},"name":{"type":"string"},"org_id":{"type":"string"}},"required":["org_id","name","capabilities"],"type":"object"},"type":"array"},"share_targets":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"org_id":{"type":"string"},"type":{"type":"string"}},"required":["type","id","org_id","name"],"type":"object"},"type":"array"}},"required":["account_uuid","organizations","groups","share_targets"],"type":"object"},"type":{"const":"organizations"}},"required":["type","data"],"type":"object"}}},"description":"Success"},"default":{"$ref":"#/components/responses/Error"}},"summary":"List current organizations, roles, memberships and eligible team targets","tags":["Organizations"]}},"/api/v2/pairings":{"post":{"description":"A Carbon pairs a personal device. A current organization owner or admin of either account kind can pair an organization device and choose its teams. Claims a pairing code the Extend app shows: the device becomes the caller's pair of it. The code works\nonce. A wrong code never reveals whether it exists; 5 wrong codes in 15 minutes are `429 rate_limited`.\n- `silicon_ids` gives those Silicons access at once: any active Silicon, by its current `si:` id or its Silicon\n  Accounts uuid. An id nobody has, a Carbon's id, or a Silicon its custodian hasn't accepted yet is `422\n  invalid_input`, and nothing is paired.\n- A device is private to the Carbon who paired it and the Silicons they give access to: `visibility` other than\n  `personal` is `422 invalid_input`.\n- The Carbon is enrolled to receive Extend's notifications through Ting (when it is on and they aren't yet).\n\"Pair with another Carbon\" makes a second pair of the same physical device for another Carbon; each pair has its own\nid, name, access list, lifetime and activity log.\n","operationId":"claimPairingCode","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"example":{"data":{"name":"Saket's Pixel","pairing_code":"4f9c2a","silicon_ids":["si:chef"]},"type":"pairing"},"schema":{"properties":{"data":{"additionalProperties":false,"properties":{"name":{"$ref":"#/components/schemas/DeviceName"},"organization_id":{"description":"Organization to own this pairing. Requires current organization administration.","type":"string"},"pair_ttl_days":{"$ref":"#/components/schemas/PairTtlDays"},"pairing_code":{"$ref":"#/components/schemas/PairingCodeInput"},"silicon_ids":{"description":"Optional; give access now. Can be skipped and done later.","items":{"$ref":"#/components/schemas/SiliconId"},"maxItems":100,"type":"array","uniqueItems":true},"team_ids":{"description":"Stable team IDs within organization_id. Personal silicon_ids cannot be combined with these.","items":{"type":"string"},"type":"array"},"visibility":{"$ref":"#/components/schemas/Visibility"}},"required":["pairing_code","name"],"type":"object"},"type":{"const":"pairing"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Device"},"type":{"const":"device"}},"required":["type","data"],"type":"object"}}},"description":"Paired. The device is in `setup` until its own setup steps finish.","headers":{"ETag":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error","description":"pairing_code_invalid: wrong, expired or used"},"409":{"$ref":"#/components/responses/Error","description":"test_device_limit; conflict (1.1: you already paired this device, named by your own id for it)"},"422":{"$ref":"#/components/responses/Error","description":"invalid_input: an unknown or unaccepted Silicon in silicon_ids, or visibility other than personal"},"429":{"$ref":"#/components/responses/Error","description":"rate_limited: too many wrong codes, or the test environment is busy adding other devices"}},"summary":"A Carbon enters a device's pairing code","tags":["Pairing"]}},"/api/v2/people":{"get":{"operationId":"suggestPeople","parameters":[{"in":"query","name":"q","required":false,"schema":{"type":"string"}},{"in":"query","name":"kind","required":false,"schema":{"enum":["carbon","silicon"]}},{"in":"query","name":"limit","required":false,"schema":{"default":12,"maximum":100,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"contacts_connected":{"type":"boolean"},"items":{"items":{"$ref":"#/components/schemas/Person"},"type":"array"}},"required":["items","contacts_connected"],"type":"object"},"type":{"const":"people"}},"required":["type","data"],"type":"object"}}},"description":"Success"},"default":{"$ref":"#/components/responses/Error"}},"summary":"Find Carbons and Silicons by fuzzy name or ID, highest saved trust first","tags":["People"]}},"/api/v2/people/resolve":{"get":{"operationId":"resolvePerson","parameters":[{"in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Person"},"type":{"const":"person"}},"required":["type","data"],"type":"object"}}},"description":"Success"},"default":{"$ref":"#/components/responses/Error"}},"summary":"Preview a current account by public ID or UUID, with the caller’s saved name and photo","tags":["People"]}},"/api/v2/reports":{"post":{"description":"Stored, then emailed through Postmark to the bug list. Simulated in a test environment. 10 reports per member per hour.","operationId":"reportBug","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"additionalProperties":false,"properties":{"client_version":{"maxLength":100,"type":"string"},"context":{"additionalProperties":true,"description":"Optional; the CLI attaches OS, CLI version, last command, session id and request ids","type":"object"},"message":{"maxLength":60000,"minLength":1,"type":"string"},"pr":{"format":"uri","type":["string","null"]}},"required":["message","client_version"],"type":"object"},"type":{"const":"report"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"notification":{"enum":["queued","sent","simulated"],"type":"string"},"report_id":{"format":"uuid","type":"string"},"repository_url":{"format":"uri","type":"string"}},"required":["report_id","notification","repository_url"],"type":"object"},"type":{"const":"report"}},"required":["type","data"],"type":"object"}}},"description":"Stored; email queued, sent or simulated"},"429":{"$ref":"#/components/responses/Error"}},"summary":"Report a bug, optionally with a PR that fixes it (`extend report`)","tags":["Operations"]}},"/api/v2/requests":{"get":{"description":"A Silicon: the requests it sent, and the ones sent to it as the Silicon using a device. A Carbon: a Silicon's they\nlook after, with `?silicon=<si:id>`.\n","operationId":"listMyRequests","parameters":[{"in":"query","name":"direction","schema":{"default":"all","enum":["sent","received","all"],"type":"string"}},{"in":"query","name":"device_id","schema":{"$ref":"#/components/schemas/DeviceIdValue"}},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestPage"}}},"description":"Requests, newest first"}},"summary":"Requests the calling Silicon sent or received (`extend request ls`)","tags":["Requests"]}},"/api/v2/sessions":{"get":{"description":"A Silicon sees its own sessions. A Carbon sees the sessions through their own pairs, or, with `?silicon=<si:id>`,\nthe sessions of a Silicon they look after (its custodian; `403 no_access` otherwise).\n","operationId":"listSessions","parameters":[{"in":"query","name":"device_id","schema":{"$ref":"#/components/schemas/DeviceIdValue"}},{"in":"query","name":"state","schema":{"enum":["active","paused","ended"],"type":"string"}},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Session"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"],"type":"object"},"type":{"const":"sessions"}},"required":["type","data"],"type":"object"}}},"description":"Sessions, newest first"}},"summary":"The caller's sessions (`extend session ls`)","tags":["Sessions"]},"post":{"description":"Silicons only; the caller needs a grant on the device, and the device must be online and set up. One Silicon uses a\nphysical device at a time, across every pair of it. A computer and the devices it carries form one lock group: a\nSilicon can't start on one of them while another Silicon holds another. When the device is in use:\n- by a Silicon on the caller's own side (the same Carbon's pair) and in the caller's custodian circle (the same\n  custodian), or by the caller itself: `409 device_in_use` names the holder and its session;\n- otherwise: \"Device <id> (<name>) is in use. Only one Silicon can use a device at a time.\", with `details\n  {in_use: {hidden: true}}` and the hint to ask for it with `extend request send <id> --reason \"...\"`.\nStarting a session asks Silicon Accounts whether the sign-in is still active (cached for at most 30 s).\n","operationId":"startSession","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"additionalProperties":false,"properties":{"device_id":{"$ref":"#/components/schemas/DeviceIdValue"}},"required":["device_id"],"type":"object"},"type":{"const":"session"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"example":{"data":{"device_id":"7c1e09ab","end_reason":null,"ended_at":null,"idle_ends_at":"2026-09-26T10:05:00.000Z","last_command_at":null,"session_id":"a3f","silicon_id":"si:chef","started_at":"2026-09-26T10:00:00.000Z","state":"active"},"type":"session"},"schema":{"properties":{"data":{"$ref":"#/components/schemas/Session"},"type":{"const":"session"}},"required":["type","data"],"type":"object"}}},"description":"Started"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"Start using a device (`extend session new`)","tags":["Sessions"]}},"/api/v2/sessions/{session_id}":{"get":{"description":"While a command runs, `idle_ends_at` is held at least 300 s after the command's deadline.","operationId":"getSession","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/Session"},{"properties":{"capabilities":{"items":{"$ref":"#/components/schemas/Capability"},"type":"array"},"commands":{"items":{"type":"string"},"type":"array"},"device":{"$ref":"#/components/schemas/Device"}},"required":["device","capabilities","commands"],"type":"object"}]},"type":{"const":"session"}},"required":["type","data"],"type":"object"}}},"description":"Session with its device and capabilities"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"summary":"One session (used by `extend session connect` and `status`)","tags":["Sessions"]},"parameters":[{"$ref":"#/components/parameters/SessionId"}]},"/api/v2/sessions/{session_id}/commands":{"parameters":[{"$ref":"#/components/parameters/SessionId"}],"post":{"description":"Every device engine command Extend exposes, plus Extend's additions (`terminal`, `adb`, `display`,\n`notifications`), goes through here. `command` is the top-level name as typed after `extend`, and `args` are\nthe remaining command-line tokens exactly as the device engine's command line accepts them, so the engine's own\nparser stays the authority on arguments. Flags that pick a device or session inside the engine (`--platform`,\n`--device`, `--udid`, `--serial`, `--target`, `--session`, `--remote`) are refused: Extend picks those.\n`cli.yaml` lists every command and its arguments.\n\nAwake is never a gate (1.1): the terminal, Android debugging and every other command run while the device isn't\nawake. A command that needs the screen fails with the device's own error; when the device is known not to be\nawake, the answer (a failed result, `unsupported_on_device` or `device_offline`) carries the wake hint. On a\ncomputer several Carbons paired, `terminal` works only through the first pair (the Carbon who installed Silicon\nExtend on it); through any other pair it is `422 unsupported_on_device` with that reason.\n\nBefore running, Extend checks that the caller's sign-in is still active (Silicon Accounts, cached for at most\n30 s), that it still has its grant, that the session is theirs and `active`, that the device is online, and that\nthe command is in the device's capabilities. Commands in one\nsession run one at a time, in order; a command that waited behind another checks the session again when its\nturn comes (`409 session_ended` or `423 session_paused`, never relayed). While the command runs,\n`idle_ends_at` is held at `timeout_ms` + 2 s + 300 s from its start; when the answer comes (or the command times\nout, or the device drops), the 300 s idle window restarts from then.\n\nIf the session ends while the command runs (the device removed, the pair revoked, access removed, a Stop by any\nCarbon who paired the device or by the Silicon's custodian, a sign-out, the account deleted), the caller gets\n`409 session_ended` at once (within about 200 ms), not at the deadline: \"Session <id> ended while `<command>` was\nrunning on <device>: <why>. `<command>` may have run.\", a hint for that end reason, and\n`details: {end_reason, command_id, may_have_run: true}`. The device gets `cancel` for it if still connected, and\nthe activity log records the outcome as `unknown`. A dropped socket or a passed deadline whose session had\nended answers the same way instead of `device_offline` or `command_timeout`.\n\nFiles the command makes are stored in Briefcase for the Silicon, shared with the device's owner, and returned\nin `files`. `self_destruct_minutes` (1 to 43,200; default 1,440) applies to every file this command makes;\n`permanent: true` keeps them. Small inputs a command reads from the caller's machine (a replay script, an\nimage to show on a TV, an APK to install) travel in `attachments`: at most 8 and 8 MiB in total.\n\nFor `display show --image` or `--video`, a 1.1 service also resolves `file:<file_id>`, a bare file UUID, the\nstored Extend content link, or the exact Briefcase permanent URL recorded by Extend. These name files Extend\nalready stored for the calling Silicon; they do not authorize arbitrary\nBriefcase entries. Expired, unknown or another Silicon's files give `404 file_not_found`. The recorded content\ntype must match image/video. Extend reads bounded bytes from Briefcase on the Silicon's behalf, checks visibility\nagain after the read and checks that the session is still active before forwarding. The resulting ordinary\nattachment shares the same 8-file/8-MiB total with local inputs. No credentials or private media URL go to the\ndevice. Unrelated public media URLs stay device-side URLs; this is not a service URL-fetch endpoint.\nThis resolution is for display media only; install, replay and screenshot baselines still require local inputs.\n\nOn Android TV apps 1.1 or later, a primary element `click` (`@ref` or selector) needs `screen.read`, rather than\npointer/touch injection. The service keeps the old requirement for apps older than 1.1 or with an unknown app\nversion. Coordinates, held/repeated or secondary clicks still need the corresponding native injection support;\nno new pointer/touch capability is advertised. A missing/damaged image on the native TV returns a failed command\nresult (`action_failed`), rather than success while a blank image remains.\n\nOn a carried iPhone/iPad, the first plain screenshot binds an engine session to the current device with a bare\n`open` when necessary, then retries the capture within the same command deadline. It launches no app and starts\nno runner for a plain capture. Ref overlays or selector cropping may need the runner. This does not make the\ndevice's lock state detectable or change the existing capture permission/setup requirements.\n\nA file that can't be kept doesn't fail the command: `ok` is unchanged and `warnings` gets one entry per\nproblem, each saying what happened, why and what to do (a file the device listed under an upload id not issued\nfor this command, or never uploaded; Briefcase refused to store it; it was stored but not shared with the\ndevice's Carbon; it was stored but Extend could not record it, in which case the warning gives its link and it\nwon't be listed or self-destruct). Warnings also go to the command's activity entry (`details.warnings`).\n\nA result with `ok: false` ran on the device and failed there; `error.code` says how. Besides the device engine's own\ncodes, a device answers `command_failed` (a shell exited non-zero; `details.exit_code`), `action_failed`,\n`upload_failed` (a file it made could not be uploaded), `cancelled` (Extend cancelled it), `session_ended` (the\nCarbon pressed Stop or the session ended while it ran or waited) and, on Android, `device_not_ready` (Android\ndebugging was disconnected).\n","operationId":"runCommand","requestBody":{"content":{"application/json":{"examples":{"click":{"value":{"data":{"args":["@e2"],"command":"click"},"type":"command"}},"fill":{"value":{"data":{"args":["@e3","hello"],"command":"fill"},"type":"command"}},"screenshot":{"value":{"data":{"args":["--scale","0.5"],"command":"screenshot","self_destruct_minutes":10080},"type":"command"}},"snapshot":{"value":{"data":{"args":["-i"],"command":"snapshot"},"type":"command"}},"terminal":{"value":{"data":{"args":["run","ls -la ~/Downloads","--cwd","~"],"command":"terminal","timeout_ms":20000},"type":"command"}},"tvRemote":{"value":{"data":{"args":["press","select"],"command":"tv-remote"},"type":"command"}}},"schema":{"properties":{"data":{"additionalProperties":false,"properties":{"args":{"default":[],"example":["@e2"],"items":{"type":"string"},"type":"array"},"attachments":{"description":"At most 8 attachments and 8 MiB (8,388,608 bytes) decoded in total per command.","items":{"properties":{"content_base64":{"description":"Counts toward the 8 MiB total","type":"string"},"content_type":{"type":"string"},"name":{"type":"string"}},"required":["name","content_type","content_base64"],"type":"object"},"maxItems":8,"type":"array"},"command":{"description":"Top-level command name","example":"click","type":"string"},"permanent":{"default":false,"type":"boolean"},"self_destruct_minutes":{"default":1440,"maximum":43200,"minimum":1,"type":"integer"},"timeout_ms":{"default":30000,"maximum":300000,"minimum":1000,"type":"integer"}},"required":["command"],"type":"object"},"type":{"const":"command"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"data":{"command":"screenshot","command_id":"01926f40-1b2c-7d3e-8f40-5a6b7c8d9e0f","duration_ms":390,"error":null,"files":[{"content_type":"image/png","file_id":"6e1f2a9c-3b4d-4e5f-8a7b-9c0d1e2f3a4b","kind":"screenshot","name":"screenshot-a3f-2026-09-26T10-04-12Z.png","permanent":false,"self_destruct_at":"2026-09-27T10:04:12.391Z","size_bytes":184223,"url":"https://briefcase.teamofsilicons.com/org/Ch3fUu1d/apps/extend/screenshot-0192f3a1-7c2d-7e3f-8a4b-5c6d7e8f9a0b.png"}],"idle_ends_at":"2026-09-26T10:09:12.391Z","ok":true,"output":{"height":1200,"width":540},"session_id":"a3f","started_at":"2026-09-26T10:04:12.001Z","text":"Saved screenshot (540x1200)","warnings":[]},"type":"command_result"},"schema":{"properties":{"data":{"$ref":"#/components/schemas/CommandResult"},"type":{"const":"command_result"}},"required":["type","data"],"type":"object"}}},"description":"The command ran. `ok` false means it ran and failed on the device (for example `is visible` was false); see `error`."},"401":{"$ref":"#/components/responses/Error","description":"token_expired, not_signed_in (see startSession: a refused Silicon's sessions may end)"},"403":{"$ref":"#/components/responses/Error","description":"access_removed, not_session_owner, silicon_only"},"404":{"$ref":"#/components/responses/Error","description":"unknown_command (names the Extend replacement if any), session_not_found"},"409":{"$ref":"#/components/responses/Error","description":"session_ended (details.end_reason; when it ended mid-command also command_id and may_have_run)"},"422":{"$ref":"#/components/responses/Error","description":"invalid_input, unsupported_on_device (names the missing capability)"},"423":{"$ref":"#/components/responses/Error","description":"session_paused"},"503":{"$ref":"#/components/responses/Error","description":"device_offline"},"504":{"$ref":"#/components/responses/Error","description":"command_timeout"}},"summary":"Run one command on the device","tags":["Commands"]}},"/api/v2/sessions/{session_id}/end":{"parameters":[{"$ref":"#/components/parameters/SessionId"}],"post":{"description":"The session's Silicon ends its own (`ended_by_silicon`); a Silicon's custodian can end it for them\n(`stopped_by_carbon`). The device's Carbon stops a session with `POST /api/v2/devices/{device_id}/stop`.\n","operationId":"endSession","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Session"},"type":{"const":"session"}},"required":["type","data"],"type":"object"}}},"description":"Ended"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"summary":"Finish and free the device (`extend session end`)","tags":["Sessions"]}},"/api/v2/sessions/{session_id}/takeover":{"delete":{"description":"The session's Silicon, or the Carbon who owns the device.","operationId":"releaseTakeover","responses":{"204":{"description":"Resumed"},"409":{"$ref":"#/components/responses/Error"}},"summary":"Resume the session (`extend takeover release`, or the Carbon's Done on the website)","tags":["Sessions"]},"get":{"description":"The session's Silicon, or the Carbon who owns the device (the website shows the reason and a Done button from this).","operationId":"getTakeover","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"oneOf":[{"$ref":"#/components/schemas/Takeover"},{"type":"null"}]},"type":{"const":"takeover"}},"required":["type","data"],"type":"object"}}},"description":"Current takeover, or `null`"}},"summary":"Whether the session is paused for the Carbon (`extend takeover status`)","tags":["Sessions"]},"parameters":[{"$ref":"#/components/parameters/SessionId"}],"post":{"description":"The session becomes `paused`; commands get 423 `session_paused`. The device and website show the reason and a\nDone button. The idle timer stops for up to 30 minutes.\n","operationId":"startTakeover","requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"additionalProperties":false,"properties":{"reason":{"example":"Please approve the Face ID prompt","maxLength":300,"minLength":1,"type":"string"}},"required":["reason"],"type":"object"},"type":{"const":"takeover"}},"required":["type","data"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Takeover"},"type":{"const":"takeover"}},"required":["type","data"],"type":"object"}}},"description":"Paused"},"409":{"$ref":"#/components/responses/Error"}},"summary":"Pause and hand the device to its Carbon (`extend takeover`)","tags":["Sessions"]}},"/api/v2/silicons":{"get":{"description":"Carbons only. A Silicon a Carbon looks after (they are its custodian in Silicon Accounts) shows `looked_after:\ntrue` with how many grants and running sessions it has. A Silicon they gave access to shows how many of their\ndevices it can use. Nobody else's Silicons are listed: there is no directory to browse.\n","operationId":"listSilicons","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SiliconSummary"},"type":"array"}},"required":["items"],"type":"object"},"type":{"const":"silicons"}},"required":["type","data"],"type":"object"}}},"description":"Silicons"},"403":{"$ref":"#/components/responses/Error","description":"carbon_only"}},"summary":"The Silicons a Carbon looks after, then the ones they gave access to","tags":["Silicons"]}},"/api/v2/silicons/{silicon}":{"get":{"operationId":"showSilicon","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/SiliconSummary"},"type":{"const":"silicon"}},"required":["type","data"],"type":"object"}}},"description":"The Silicon"},"403":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"}},"summary":"One Silicon the caller looks after or gave access to","tags":["Silicons"]},"parameters":[{"$ref":"#/components/parameters/SiliconPath"}]},"/api/v2/silicons/{silicon}/grants":{"get":{"description":"The Silicon's custodian only (`403 no_access` otherwise). Each grant names the device, its OS and the Carbon\nwho paired it. The custodian sees what its Silicon does in Extend and can stop it (renounce a grant, end a\nsession, withdraw a wake request, keep a file); it never acts as the Silicon.\n","operationId":"siliconGrants","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AccessGrant"},"type":"array"}},"required":["items"],"type":"object"},"type":{"const":"access"}},"required":["type","data"],"type":"object"}}},"description":"Grants"},"403":{"$ref":"#/components/responses/Error"}},"summary":"Every device a Silicon the caller looks after can use, whoever gave the access","tags":["Silicons"]},"parameters":[{"$ref":"#/components/parameters/SiliconPath"}]},"/api/v2/silicons/{silicon}/grants/{device_id}":{"delete":{"description":"Its running session on the device ends (`access_removed`) and its open wake requests there are withdrawn. The\ndevice's Carbon is told in the device's activity log.\n","operationId":"renounceGrant","responses":{"204":{"description":"Renounced"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"summary":"Give up a Silicon's access to a device (its custodian, or the Silicon itself)","tags":["Silicons"]},"parameters":[{"$ref":"#/components/parameters/SiliconPath"},{"$ref":"#/components/parameters/DeviceId"}]},"/api/v2/ting-registration":{"get":{"description":"Any signed-in account, about themselves: whether Extend's notifications reach them through Ting. One enrolment per\naccount. `status` is `on`, `off` (Ting refused a delivery after Extend had enrolled them: they turned Extend off in\nTing) or `pending` (not enrolled yet; Extend enrols an account at its next use of Extend). `missing_types` lists\nExtend's types Ting reported unknown; Ting registers an app's types, and a later delivery clears the observation.\n`delivery_enabled` is false while this server sends no notifications through Ting (`EXTEND_TING_URL` unset).\n","operationId":"tingRegistration","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/TingRegistration"},"type":{"const":"ting_registration"}},"required":["type","data"],"type":"object"}}},"description":"The caller's enrolment"},"401":{"$ref":"#/components/responses/Error"}},"summary":"Whether Extend's notifications reach you through Ting (`extend ting status`)","tags":["Ting"]},"put":{"description":"\"Turn on\": enrols the caller with Ting again, with their own (live) sign-in, even after they turned Extend off in\nTing, and sends the notifications that waited for it. `503 service_unavailable` while Ting is off on this server.\n","operationId":"tingTurnOn","requestBody":{"content":{"application/json":{"schema":{"properties":{"data":{"type":"object"},"type":{"const":"ting_registration"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/TingRegistration"},"type":{"const":"ting_registration"}},"required":["type","data"],"type":"object"}}},"description":"The enrolment now"},"401":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error","description":"service_unavailable: Ting is off on this server, or could not be reached; nothing changed"}},"summary":"Turn Extend's notifications on for you (`extend ting on`, Settings' \"Turn on\")","tags":["Ting"]}},"/api/version":{"get":{"description":"Unversioned so an old client can always reach it. The client lists every major it supports; the\nservice answers with the highest both support that is not sunset. The client then pins that version on every\nrequest with `Silicon-Extend-API-Version`. No common version is `400 api_version_unsupported` listing both sides.\nA client that speaks only majors Extend has retired gets `410 api_version_sunset`, saying when and why and what\nto update. When the agreed major is deprecated, the answer carries `Deprecation` and `Sunset` headers.\n","operationId":"negotiateVersion","parameters":[{"description":"Every major the client supports. A client too old to send it is taken to support 1.","example":"1, 2","in":"header","name":"Silicon-Extend-Supported-API-Versions","required":false,"schema":{"pattern":"^[1-9][0-9]*(, ?[1-9][0-9]*)*$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"properties":{"api_version":{"example":1,"type":"integer"},"deprecated":{"description":"The supported majors that are deprecated","items":{"type":"integer"},"type":"array"},"service_version":{"example":"1.0.0","type":"string"},"supported":{"description":"Majors a client can agree on (served and not sunset)","example":[1],"items":{"type":"integer"},"type":"array"}},"required":["api_version","supported","service_version"],"type":"object"},"type":{"const":"version"}},"required":["type","data"],"type":"object"}}},"description":"Agreed version","headers":{"Deprecation":{"$ref":"#/components/headers/Deprecation"},"Silicon-Extend-API-Version":{"description":"The agreed major","schema":{"type":"string"}},"Sunset":{"$ref":"#/components/headers/Sunset"},"Vary":{"schema":{"const":"Silicon-Extend-Supported-API-Versions","type":"string"}}}},"400":{"$ref":"#/components/responses/Error"},"410":{"$ref":"#/components/responses/Error","description":"api_version_sunset: every major the client speaks is retired"}},"security":[],"summary":"Agree an API major version","tags":["System"]}},"/live":{"get":{"operationId":"live","responses":{"204":{"description":"Alive"}},"security":[],"summary":"The process is running","tags":["System"]}},"/openapi.json":{"get":{"operationId":"openApi","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OpenAPI 3.1 document"}},"security":[],"summary":"Complete public HTTP contract","tags":["System"]}},"/ready":{"get":{"operationId":"ready","responses":{"204":{"description":"Ready"},"503":{"description":"A dependency is unavailable; the body names it"}},"security":[],"summary":"Database and migrations ready","tags":["System"]}},"/webhooks/accounts":{"post":{"description":"`X-Accounts-Signature: v1=<hex HMAC-SHA256>` over `\"{X-Accounts-Timestamp}.{raw body}\"` with\n`EXTEND_ACCOUNTS_WEBHOOK_SECRET` (then `EXTEND_ACCOUNTS_WEBHOOK_PREVIOUS_SECRET` during a rotation), 5 minutes of\ntolerance, verified over the exact raw body before anything is read: otherwise `401`. A signed body that isn't\nan event is `400`. Deliveries are deduplicated on `event_id`; effects are idempotent, and a failed one answers\n`500` so Silicon Accounts retries it. Types Extend doesn't act on are acknowledged (`204`).\n\n- `account.id_changed`, `account.updated` (in version order): the cached id, name and photo; everything stays\n  keyed on the uuid.\n- `silicon.custodian_changed`: the new custodian sees the Silicon; the grants the previous custodian gave it\n  end (sessions there end `access_removed`); other Carbons' grants stay.\n- `membership.signed_out` (except `app_revoked`) and `membership.access_removed`: tokens issued before the\n  event are refused; a Silicon's sessions end (`silicon_logged_out`), a Carbon's Silicons' sessions on their\n  pairs end (`access_removed`); proofs Extend held for the account are revoked.\n- `membership.signed_out` with `app_revoked` (Extend revoked one sign-in: a logout): what\n  `POST /api/v2/auth/logout` ends, for sessions started before the logout; other sign-ins stay valid.\n- `account.deleted`: as above, and a Carbon's pairs end (the devices are unpaired), a Silicon's grants end\n  and its wake requests are withdrawn; others' history shows \"deleted account\".\n","operationId":"accountsWebhook","parameters":[{"in":"header","name":"X-Accounts-Timestamp","required":true,"schema":{"example":"1790000000","type":"string"}},{"in":"header","name":"X-Accounts-Signature","required":true,"schema":{"example":"v1=5d41…","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"app_id":{"example":"extend","type":"string"},"data":{"type":"object"},"event_id":{"type":"string"},"occurred_at":{"format":"date-time","type":"string"},"type":{"example":"membership.signed_out","type":"string"}},"required":["event_id","type"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Applied, already applied, or a type Extend doesn't act on"},"400":{"$ref":"#/components/responses/Error","description":"invalid_input: not a Silicon Accounts event"},"401":{"$ref":"#/components/responses/Error","description":"unauthorized: bad, missing or stale signature"}},"security":[],"summary":"Silicon Accounts' signed events about the accounts that use Extend","tags":["Accounts webhooks"]}}},"security":[{"bearerAuth":[]}],"servers":[{"url":"https://api.extend.teamofsilicons.com"}],"tags":[{"description":"Account previews and the caller’s saved address book","name":"People"},{"description":"Organization devices and current team access","name":"Organizations"},{"description":"Health, version negotiation and contract discovery","name":"System"},{"description":"Who is signed in with Silicon Accounts, looking up accounts, and signing out","name":"Auth"},{"description":"An unpaired Extend app getting and rotating its pairing code","name":"Enrollment"},{"description":"A Carbon claiming a pairing code, and devices paired through a host computer","name":"Pairing"},{"description":"Listing, inspecting and configuring paired devices","name":"Devices"},{"description":"Which Silicons can use a device","name":"Access"},{"description":"A Silicon using a device, one Silicon at a time","name":"Sessions"},{"description":"Device engine commands and Extend additions, run inside a session","name":"Commands"},{"description":"A Silicon asking for a device in use, delivered through Ting to the Silicon using it or to the Carbon who gave that Silicon access","name":"Requests"},{"description":"A Silicon asking its Carbon to wake a device, and the Carbon answering (1.1)","name":"Waking"},{"description":"Whether Extend's notifications reach you through Ting, and missing notification types observed on delivery","name":"Ting"},{"description":"The Silicons a Carbon looks after (custodian) or gave access to","name":"Silicons"},{"description":"Every action taken on a device","name":"Activity"},{"description":"Screenshots, recordings, logs and replay scripts, stored in Briefcase","name":"Files"},{"description":"Endpoints used only by a paired Extend app, with its device credential","name":"Device app"},{"description":"Signed Silicon Accounts events","name":"Accounts webhooks"},{"description":"Bug reports","name":"Operations"}]}