Skip to main content
TroopyDocs
Open Troopy
Troopy

API reference / Troop

Get a teammate's email

One email a teammate received, with its words: every code and link masked, like [code 1] and [link 2: canva.com "Verify email"].

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

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
MCP tooltroopy_get_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

id*string

A 24-character id

Response

200 · application/json
data*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

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.