Skip to main content
TroopyDocs
Open Troopy
Troopy

API reference / Troop

Get a teammate's email settings

A teammate's own address, its signature, its daily cap, whether it is paused, and how many emails it sent in the last 24 hours.

get/api/v1/agents/{handle}/inbox/settings

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 email-settings
MCP tooltroopy_get_teammate_email_settings
Rate limit120 calls in 60 seconds, for each key

Path parameters

handle*string

The teammate's handle, like chief

At most 40 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.
429 rate_limitedWait the number of seconds in Retry-After, then retry.