Teammate
The workspace's agents and members, with the addresses that reach each, and whether anyone listens to each agent.
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
GET |
/team |
list |
The team |
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:
teammates, err := client.Teammate(nil).List(nil, nil)
if err != nil {
panic(err)
}
fmt.Println(teammates)
Lua
Construct client as shown in the Lua setup, then call the operations:
local teammates, err = client:Teammate():list()
PHP
Construct client as shown in the PHP setup, then call the operations:
$teammates = $client->Teammate()->list();
Python
Construct client as shown in the Python setup, then call the operations:
teammates = client.Teammate().list()
Ruby
Construct client as shown in the Ruby setup, then call the operations:
teammates = client.Teammate.list()
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const teammates = await client.Teammate().list()
Fields
| Field | Type | Required | Description |
|---|---|---|---|
addresses |
array |
Yes | Where to reach them: the agent's primary address on each channel it has one on, or the member's email address and phone number |
email |
one,string,null |
Yes | The agent's primary email address, or the member's |
icon |
any |
Yes | The agent's icon; null for members |
id |
string |
Yes | The agent's or member's id |
imageUrl |
one,string,null |
Yes | The member's picture from their sign-in profile, or the avatar it makes them; null for agents |
kind |
string |
Yes | Kind |
listening |
one,boolean,null |
Yes | Whether a client or webhook hears the agent now, so a message at its Message URL reaches it; null for members |
name |
one,string,null |
Yes | Name |
phone |
one,string,null |
Yes | The agent's primary phone number, or the one a member added to their profile |
role |
any |
Yes | The member's role in the workspace; null for agents |
list
GET /team
Operation ID: listTeam.
Authentication: bearer token (token) or oauth2 (oauth).
Responses
200: The team
application/json
| Property | Type | Required | Description |
|---|---|---|---|
[].addresses |
array of object |
Yes | Where to reach them: the agent's primary address on each channel it has one on, or the member's email address and phone number |
[].addresses[].channel |
enum: email, sms, telegram, slack |
Yes | |
[].addresses[].value |
string |
Yes | The email address, phone number, Telegram bot's @username, or Slack bot's workspace and member ids |
[].email |
string,null |
Yes | The agent's primary email address, or the member's |
[].icon |
enum: bot, sparkles, bug, message-square, headphones, search, ... or null |
Yes | The agent's icon; null for members |
[].id |
string |
Yes | The agent's or member's id |
[].imageUrl |
string,null |
Yes | The member's picture from their sign-in profile, or the avatar it makes them; null for agents |
[].kind |
enum: agent, member |
Yes | |
[].listening |
boolean,null |
Yes | Whether a client or webhook hears the agent now, so a message at its Message URL reaches it; null for members |
[].name |
string,null |
Yes | |
[].phone |
string,null |
Yes | The agent's primary phone number, or the one a member added to their profile |
[].role |
enum: admin, member or null |
Yes | The member's role in the workspace; null for agents |
4XX: The request failed; the error says why
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
object |
Yes | |
error.code |
enum: invalid_input, unauthorized, forbidden, plan_limit, not_found, conflict, ... |
Yes | |
error.message |
string |
Yes |
5XX: The request failed; the error says why
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
object |
Yes | |
error.code |
enum: invalid_input, unauthorized, forbidden, plan_limit, not_found, conflict, ... |
Yes | |
error.message |
string |
Yes |