# AgentMail List Pod Messages by Direction and Type

> AgentMail List Pod Messages by Direction and Type is a paid API for AI agents from x402.api.agentmail.to, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Lists email messages in a pod filtered by direction (inbox/sent) and type, returning a paginated collection of messages.

## Facts

- Endpoint: GET https://x402.api.agentmail.to/v0/pods/%7Bpod_id%7D/lists/%7Bdirection%7D/%7Btype%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentmail-list-pod-messages-by-direction-and-type-f0cc6973
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8hH42IVlD4X5XJdTUBF9O

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentmail-list-pod-messages-by-direction-and-type-f0cc6973
```

Example prompt: Show me all the received messages in my AgentMail pod 'agent-pod-123' — I want to see the full inbox list.

## When to prefer this

Use this endpoint when an AI agent needs to enumerate and browse messages within a specific pod, filtered by whether they are incoming or outgoing and by message type. Prefer this over general inbox listing when you have a specific pod ID and want directional filtering.

## Known failure modes

- Invalid pod_id returns 404 not found
- Invalid direction or type values return 400 bad request
- Unauthorized access returns 401 if payment or auth is missing
- Empty result set returns 200 with empty array if no messages match
- Pod does not exist returns 404
- Payment not provided returns 402 Payment Required

## How this service works

AgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.

## Output

Returns a JSON collection of email messages belonging to the specified pod, filtered by direction (e.g. inbound/outbound) and message type. Each item typically includes message metadata such as sender, recipient, subject, timestamp, and message ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "pod_id",
      "direction",
      "type"
     ],
     "properties": {
      "type": {
       "type": "string"
      },
      "pod_id": {
       "type": "string"
      },
      "direction": {
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "queryParams": {
     "type": "object",
     "properties": {},
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentmail-list-pod-messages-by-direction-and-type-f0cc6973/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.api.agentmail.to](https://www.zero.xyz/host/x402.api.agentmail.to/llms.txt)
