Skip to main content
TroopyDocs
Open Troopy
Troopy

API reference / Troop

Switch teammate tools on or off

Switches families or single tools on or off for the whole troop. A run leaves out the tools that are off. The families that the troop needs stay on. A family that switches as one takes its key in families, not one of its tools. Needs an owner or admin.

patch/api/v1/teammate-tools

Authorization

HeaderAuthorization: Bearer <API key>
Or the headerX-API-Key: <API key>
API keyMake one in Troopy under Settings > API keys. It acts as you, in its workspace.

Other ways to call it

CLItroopy tools switch
MCP toolNone. Call it over REST or with the CLI.
Rate limit30 calls in 60 seconds, for each key
RetriesSend an Idempotency-Key header. A retry with the same key gets the first answer back, and the operation runs one time.

Body

application/json
familiesarray<enum<string>>

Families to switch, like web or stripe

browserbrainhelptasksskillsinboxbrain_editsemailhiringroutinescanvasesresearchbrandwebpicturesleadsand 13 more

At most 29 items

toolsarray<string>

Single tools to switch, like search_web

At most 100 items

on*boolean

Response

200 · application/json
data*object
7 properties
days*integer

The days of use that each count covers

switchable*integer

How many tools can be switched off

on*integer

How many of those are on

teammates*array<object>

The troop, the most use first

5 properties
handle*string
name*string
avatar*object

Its face: a bot-avatars body type, colour (#RRGGBB), face and shading, a robot head, or an object with two eyes

6 properties
shape*enum<string>

cloverflowertrianglesquareblobghostcircledropstardroidmechalienhexagoncatcloudpilland 2 more

color*string
face*enum<string>

eyesmouth

shadingenum<string>

How its body is lit; fabric when unset

fabricplasticcrispsmoothflat

robotobject

A TV-headed robot (robot-heads) in place of the bot. shape, color, face and shading stay for the bot

5 properties
shape*enum<string>

rectanglesquarecirclehexagon

shell*string

The colour of its shell

trim*string

The colour of its ears and of the collar of its antenna

screen*string

The colour of the lights on its screen

antenna*boolean
objectobject

An object with two eyes in place of the bot. shape, color, face and shading stay for the bot

2 properties
shape*enum<string>

circlesquaretrianglepilldrophexagonpentagoncloudbeancloverflowersparkleburstapplechatbulband 13 more

color*string

The colour of the object

paused*boolean
uses*integer

Its tool calls in the last days days

families*array<object>
9 properties
key*enum<string>

browserbrainhelptasksskillsinboxbrain_editsemailhiringroutinescanvasesresearchbrandwebpicturesleadsand 13 more

section*enum<string>

alwaysbrainwebsalesnumbersengineeringcustom

name*string
about*string
always*boolean

The troop needs it to work, so it never switches off

whole*boolean

Its tools switch on and off as one: send its key in families, not one of its tools

stops*string | null

What stops while it is off

needs*array<object>

Apps its tools read from; it can't work until each is connected (POST /apps/{provider})

3 properties
id*enum<string>

stripeposthoggithubnotionhunterlemonsqueezypolarpaddledodopaymentssearchconsolemetaadsgooglecalendargeminiopenaifalreplicate

name*string
connected*boolean
tools*array<object>
8 properties
id*string

The tool's id, like search_web

label*string
about*string

What it gives, in one line

on*boolean

Off: no teammate uses it until an owner or admin switches it on

asks*boolean

A teammate that holds it asks a person before it runs

holders*array<string>

The handles of the teammates whose roles hold it

uses*integer

Its calls in the last days days, by every teammate

usedBy*array<object>

Its calls by teammate, the most first

2 properties
handle*string
uses*integer
tasks*array<object>

The tasks with the most tool calls, the troop's and each teammate's own, the most first

4 properties
key*string

The task's key, like VIR-12

title*string
uses*integer
usedBy*array<object>

Its calls by teammate, the most first

2 properties
handle*string
uses*integer
noTask*object

The tool calls of chats and answers with no task

2 properties
uses*integer
usedBy*array<object>

Its calls by teammate, the most first

2 properties
handle*string
uses*integer

Errors

400 invalid_inputFix the field named in detail. Each operation's schema is in /api/v1/openapi.json.
401 unauthorizedSend an API key as `Authorization: Bearer tr_live_...`. Create one in Troopy under Settings.
403 forbiddenThe key lacks a scope this operation needs, or its owner lacks the role. detail says which; create a key with the scope, or ask an organization owner or admin.
409 conflictThis Idempotency-Key was used for a different request, or that request is still running. Use a new key for a new request.
429 rate_limitedWait the number of seconds in Retry-After, then retry.