---
title: "Revoke the current connect token for a remote harness [write]"
method: DELETE
path: "/harnesses/{id}/connect-token"
tags: ["harnesses"]
---

# Revoke the current connect token for a remote harness \[write\]

`DELETE /harnesses/{id}/connect-token`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/harnesses/{id}/connect-token`
- Auth: HTTP bearer

Revokes the active hct_… token. Any maker process currently connected will be dropped on its next frame. Gated by the REMOTE_HARNESSES platform switch. Returns 404 when the WORKSPACE_HARNESSES feature switch is off for this workspace. Returns 503 not_migrated when the backing tables are not yet present.

## Path parameters

- `id` string, required

## Response `200`

OK

- object
  - `ok` boolean

## Other responses

- `default`: Error — { error: { code, message } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/harnesses/:id/connect-token/delete.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
