Skip to main content
TroopyDocs
Open Troopy
Troopy

API reference / Troop

Change a teammate's email settings

Changes a teammate's own address, its sender name, its signature, its daily cap, which new mail starts it, its handling notes, or pauses it. The address is the part before the @, 3 to 40 letters, digits, dots or hyphens. An address is taken when any teammate has it or had it. The old address still takes mail, so the accounts that the teammate opened with it still reach it. A teammate changes its address at most 5 times. A paused inbox still takes mail, but the teammate neither reads it nor sends from it. Owners and admins only.

patch/api/v1/agents/{handle}/inbox

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 agents address
MCP tooltroopy_update_teammate_address
Rate limit10 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.

Path parameters

handle*string

The teammate's handle, like chief

At most 40 characters

Body

application/json
addressstring

The part before the @

At least 3 characters · At most 40 characters

fromNamestring

The name that people see beside the address, one line without an @. Empty for the teammate's name

At most 80 characters

signaturestring

Goes under every email that the address sends. Empty for none

At most 1000 characters

dailyCapinteger

The most emails that it sends in 24 hours

At least 1 · At most 100

pausedboolean
wakeenum<string>

Which new mail starts the teammate on it

offpeopleanyone

instructionsstring

How it handles the mail of this address. Empty for none

At most 4000 characters

Response

200 · application/json
data*object
13 properties
handle*string

The teammate's handle, like chief

At most 40 characters

name*string
box*string

Its box in GET /emails: a t- id

address*string

The teammate's own email address

fromName*string

The name that people see beside the address. Empty: the teammate's name

signature*string

Goes under every email that the address sends

dailyCap*integer

The most emails that the address sends in 24 hours. Each address of an email counts as one

paused*boolean

A paused inbox still takes mail, but the teammate neither reads it nor sends from it

wake*enum<string>

Which new mail starts the teammate on it, as a task. people: the people of the workspace, the addresses that it wrote to, and answers to its mail. anyone: every sender that passed DMARC too. off: none

offpeopleanyone

instructions*string

How the teammate handles the mail of this address, beside the Email file of the workspace

rules*array<object>

Who the address takes mail from and sends to. A block wins. With an allow rule for a direction, only what it allows goes through. The rules of the workspace (GET /email/rules) apply too

4 properties
id*string

A 24-character id

kind*enum<string>

allowblock

value*string

An email address, or a domain with its subdomains

direction*enum<string>

in: mail that it gets. out: mail that it sends. both

inoutboth

deleted*boolean

A person deleted the inbox: the address takes no mail. POST /agents/{handle}/inbox gives a new one

sentToday*integer

Emails that it sent in the last 24 hours, each address one

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.
404 not_foundCheck the path and any id in it. Every operation is listed in /api/v1/openapi.json.
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.