Skip to main content
TroopyDocs
Open Troopy
Troopy

API reference / Troop

List a teammate's email

The emails that a teammate's own address received and sent, newest first, kept 30 days. Codes and links are masked: a teammate types and opens them by reference, and only owners and admins reveal them, in the app.

get/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 inbox
MCP tooltroopy_list_teammate_email
Rate limit120 calls in 60 seconds, for each key

Path parameters

handle*string

The teammate's handle, like chief

At most 40 characters

Query parameters

pageinteger

1-based page number

Default 1 · At least 1

limitinteger

Items per page, at most 100

Default 20 · At least 1 · At most 100

Response

200 · application/json
data*array<object>
14 properties
id*string

A 24-character id

direction*enum<string>

in for an email that came, out for one that the address sent

inout

from*string

The sender's address

fromName*string
subject*string

Codes in it masked, like [code 1]

receivedAt*string

ISO 8601 date and time

checked*boolean

The sender's domain passed DMARC: the one sign it is who it says

spam*boolean

SES called it spam: the teammate doesn't see it

codes*integer

How many codes it carries. Never shown over the API: the teammate types them by reference

links*array<object>

Its links' sites and words, never their addresses

3 properties
n*integer
site*string
label*string
to*array<string>

A sent email: the addresses that it went to

status*enum<string> | null

A sent email: whether it went. unknown when it possibly went: Troopy does not send it again

sendingsentfailedunknown

error*string | null

A sent email that did not go, or possibly did not: why

textstring

One email's words, every code and link masked

pagination*object
4 properties
page*integer
limit*integer
total*integer
pages*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.
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.