API

AgentTeammate

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/teammates list Shared team agents

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:

agent_teammates, err := client.AgentTeammate(nil).List(map[string]any{"agent_id": "example", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(agent_teammates)

Lua

Construct client as shown in the Lua setup, then call the operations:

local agent_teammates, err = client:AgentTeammate():list({ agent_id = "example", organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$agent_teammates = $client->AgentTeammate()->list(["agent_id" => "example", "organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

agent_teammates = client.AgentTeammate().list({"agent_id": "example", "organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

agent_teammates = client.AgentTeammate.list({ "agent_id" => "example", "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const agent_teammates = await client.AgentTeammate().list({ agent_id: "example", organization_id: "example" })

Fields

Field Type Required Description
avatar one,string,null Yes Emoji or up to two visible grapheme clusters, at most 64 UTF-8 bytes, without control or bidi override characters.
id string Yes Id
name string Yes Name
persona any No Persona
slug string Yes Slug

list

GET /api/v1/organizations/{organization_id}/agents/{id}/spark/teammates

Operation ID: spark_teammates_api_v1_organization_persistent_agent.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes
q query string No

Responses

200: Shared team agents

application/json

Property Type Required Description
agents array of object Yes
agents[].avatar string,null Yes Emoji or up to two visible grapheme clusters, at most 64 UTF-8 bytes, without control or bidi override characters. Null selects the default icon. Omission preserves legacy configuration bytes.
agents[].id string Yes
agents[].name string Yes
agents[].persona object or null No
agents[].slug string Yes
browsers array of object Yes Browser mentions matching the query. @browser is the sender's Composal Desktop browser, offered where computers can be connected; @browser-remote is the agent's cloud browser.
browsers[].description string Yes
browsers[].label string Yes
browsers[].name enum: browser, my-browser, browser-remote Yes
has_more boolean Yes
integrations array of object Yes
integrations[].description string Yes
integrations[].id string Yes
integrations[].name string Yes
integrations[].slug string Yes
integrations[].toolkit string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway