Skip to main content
GET
/
agent-profiles
/
{profileId}
/
inbox-emails
Get Agent Profile Inbox Emails
curl --request GET \
  --url https://odyssey.asteroid.ai/agents/v2/agent-profiles/{profileId}/inbox-emails \
  --header 'X-Asteroid-Agents-Api-Key: <api-key>'
{
  "emailCount": 123,
  "emails": [
    {
      "createdAt": "2023-11-07T05:31:56Z",
      "from": "<string>",
      "id": "<string>",
      "subject": "<string>",
      "to": [
        "<string>"
      ]
    }
  ],
  "hasMore": true
}

Authorizations

X-Asteroid-Agents-Api-Key
string
header
required

Path Parameters

profileId
string<uuid>
required

The ID of the agent profile

Query Parameters

limit
integer<int32>

Maximum number of emails to return

Response

The request has succeeded.

Response for listing the emails in an agent profile's inbox

emailCount
integer<int32>
required

Number of emails returned

emails
object[]
required

Emails addressed to this profile's inbox

hasMore
boolean
required

Whether Resend has more emails beyond this page