CoordinationWait
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
GET |
/api/v1/organizations/{organization_id}/agents/{id}/spark/coordination/{task_id}/waits |
list |
A bounded page of this task's waits |
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:
coordination_waits, err := client.CoordinationWait(nil).List(map[string]any{"agent_id": "example", "coordination_id": "example", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(coordination_waits)
Lua
Construct client as shown in the Lua setup, then call the operations:
local coordination_waits, err = client:CoordinationWait():list({ agent_id = "example", coordination_id = "example", organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$coordination_waits = $client->CoordinationWait()->list(["agent_id" => "example", "coordination_id" => "example", "organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
coordination_waits = client.CoordinationWait().list({"agent_id": "example", "coordination_id": "example", "organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
coordination_waits = client.CoordinationWait.list({ "agent_id" => "example", "coordination_id" => "example", "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const coordination_waits = await client.CoordinationWait().list({ agent_id: "example", coordination_id: "example", organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
can_stop |
boolean |
Yes | Can Stop |
expires_at |
string |
Yes | Expires At |
id |
string |
Yes | Id |
status |
string |
Yes | Status |
stop_state |
one,string,null |
Yes | Stop State |
wake_outcome |
one,string,null |
Yes | Wake Outcome |
list
GET /api/v1/organizations/{organization_id}/agents/{id}/spark/coordination/{task_id}/waits
Operation ID: get_api_v1_organizations_organization_id_agents_id_spark_coordination_task_id_waits.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
task_id |
path |
string |
Yes | |
cursor |
query |
string |
No |
Responses
200: A bounded page of this task's waits
application/json
| Property | Type | Required | Description |
|---|---|---|---|
items |
array of object |
Yes | |
items[].can_stop |
boolean |
Yes | |
items[].expires_at |
string (date-time) |
Yes | |
items[].id |
string |
Yes | |
items[].status |
enum: waiting, queued, completed, needs_attention, cancelled |
Yes | |
items[].stop_state |
enum: stopping, stopped, needs_attention, null |
Yes | |
items[].wake_outcome |
string,null |
Yes | |
next_cursor |
string,null |
Yes |