RelayAgentLocalThread
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
DELETE |
/api/v1/organizations/{organization_id}/agents/{id}/spark/local_threads/{local_thread_id}/relay |
remove |
Relay authorization disconnected |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
removed, err := client.RelayAgentLocalThread(nil).Remove(map[string]any{"agent_id": "example", "id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(removed)
Lua
Construct client as shown in the Lua setup, then call the operations:
local removed, err = client:RelayAgentLocalThread():remove({ agent_id = "example", id = "example_id", organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$client->RelayAgentLocalThread()->remove(["agent_id" => "example", "id" => "example_id", "organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
client.RelayAgentLocalThread().remove({"agent_id": "example", "id": "example_id", "organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
client.RelayAgentLocalThread.remove({ "agent_id" => "example", "id" => "example_id", "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
await client.RelayAgentLocalThread().remove({ agent_id: "example", id: "example_id", organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
No | Id |
remove
DELETE /api/v1/organizations/{organization_id}/agents/{id}/spark/local_threads/{local_thread_id}/relay
Operation ID: delete_api_v1_organizations_organization_id_agents_id_spark_local_threads_local_thread_id_relay.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
local_thread_id |
path |
string |
Yes |
Responses
200: Relay authorization disconnected
application/json
| Property | Type | Required | Description |
|---|---|---|---|
thread |
object |
Yes | |
thread.archived |
boolean |
Yes | Archived on its computer: hidden from the active list and shown with the archived threads. |
thread.can_archive |
boolean |
Yes | This requester can archive or restore it, and the computer's Desktop supports archiving. |
thread.can_disconnect_relay |
boolean |
No | |
thread.can_end |
boolean |
Yes | |
thread.can_interrupt |
boolean |
Yes | |
thread.can_send |
boolean |
Yes | |
thread.created_at |
string |
Yes | |
thread.device_id |
string |
Yes | |
thread.device_name |
string |
Yes | |
thread.end |
object or null |
Yes | |
thread.full_title |
string |
Yes | The native name or first prompt in full, for a tooltip. |
thread.id |
string |
Yes | |
thread.last_activity_at |
string,null (date-time) |
Yes | |
thread.native_thread_id |
string |
Yes | |
thread.parent_conversation_id |
string,null |
Yes | |
thread.provider |
enum: codex, claude |
Yes | |
thread.relay_disconnected_at |
string,null (date-time) |
No | |
thread.relay_participant |
object |
No | |
thread.relay_participant.aliases |
array of object |
Yes | |
thread.relay_participant.aliases[].creating_operation_id |
string |
Yes | Original operation that registered this alias, retained when its address is reused. Inspect with agent.rename_status. |
thread.relay_participant.aliases[].forward_until |
string,null |
Yes | |
thread.relay_participant.aliases[].name |
string |
Yes | |
thread.relay_participant.can_rename |
boolean |
Yes | |
thread.relay_participant.canonical_name |
string |
Yes | |
thread.relay_participant.management_actions |
array of object or object |
Yes | |
thread.relay_participant.name |
string |
Yes | |
thread.relay_participant.observation_action |
object,null |
Yes | |
thread.relay_participant.observation_action.arguments |
object |
Yes | |
thread.relay_participant.observation_action.arguments.operation_id |
string |
Yes | |
thread.relay_participant.observation_action.name |
enum: agent.rename_status |
Yes | |
thread.relay_participant.pending_operation_id |
string,null |
Yes | |
thread.relay_participant.pending_retirement_id |
string,null |
Yes | |
thread.relay_participant.scope_key |
string |
Yes | |
thread.relay_participant.source_operation_id |
string |
Yes | |
thread.relay_participant.version |
integer |
Yes | |
thread.section |
enum: current, done, offline |
Yes | Server-assigned section in the ordered computer thread directory. |
thread.status |
enum: running, waiting, stopped, failed, done, idle, ... |
Yes | What the native thread is doing. Null until the computer reports it, or when its helper can't. Threads beyond the newest 50 keep the state from when their page loaded. |
thread.task_configured |
boolean |
Yes | |
thread.title |
string |
Yes | Short title: the native name, or the first prompt's first line without the agent's task preamble. |