{
  "components": {
    "schemas": {
      "AgentResponse": {
        "properties": {
          "agnt_key_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agnt Key Hash"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "email_inbox": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailInboxOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "phone_number": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PhoneNumberOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "wallet": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WalletOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "is_active"
        ],
        "title": "AgentResponse",
        "type": "object"
      },
      "EmailInboxListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/EmailMessageResponse"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "EmailInboxListResponse",
        "type": "object"
      },
      "EmailInboxOut": {
        "properties": {
          "address": {
            "title": "Address",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "address",
          "created_at"
        ],
        "title": "EmailInboxOut",
        "type": "object"
      },
      "EmailMessageResponse": {
        "properties": {
          "attachments": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Attachments",
            "type": "array"
          },
          "bcc": {
            "items": {
              "type": "string"
            },
            "title": "Bcc",
            "type": "array"
          },
          "cc": {
            "items": {
              "type": "string"
            },
            "title": "Cc",
            "type": "array"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "direction": {
            "title": "Direction",
            "type": "string"
          },
          "from": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "From"
          },
          "headers": {
            "additionalProperties": true,
            "title": "Headers",
            "type": "object"
          },
          "html": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Html"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "internet_message_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Internet Message Id"
          },
          "parsed_data": {
            "additionalProperties": true,
            "title": "Parsed Data",
            "type": "object"
          },
          "provider_message_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider Message Id"
          },
          "received_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Received At"
          },
          "reply_to": {
            "items": {
              "type": "string"
            },
            "title": "Reply To",
            "type": "array"
          },
          "sent_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sent At"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "subject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject"
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          },
          "to": {
            "items": {
              "type": "string"
            },
            "title": "To",
            "type": "array"
          }
        },
        "required": [
          "id",
          "direction",
          "status",
          "created_at"
        ],
        "title": "EmailMessageResponse",
        "type": "object"
      },
      "EmailSendResponse": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/EmailMessageResponse"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status",
          "data"
        ],
        "title": "EmailSendResponse",
        "type": "object"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "PhoneNumberOut": {
        "properties": {
          "country_iso2": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country Iso2"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "number": {
            "title": "Number",
            "type": "string"
          }
        },
        "required": [
          "id",
          "number",
          "created_at"
        ],
        "title": "PhoneNumberOut",
        "type": "object"
      },
      "PhoneNumberResponse": {
        "properties": {
          "country_iso2": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country Iso2"
          },
          "number": {
            "title": "Number",
            "type": "string"
          },
          "provider": {
            "title": "Provider",
            "type": "string"
          }
        },
        "required": [
          "number",
          "provider"
        ],
        "title": "PhoneNumberResponse",
        "type": "object"
      },
      "ReplyEmailRequest": {
        "properties": {
          "body_text": {
            "title": "Body Text",
            "type": "string"
          }
        },
        "required": [
          "body_text"
        ],
        "title": "ReplyEmailRequest",
        "type": "object"
      },
      "SendEmailRequest": {
        "properties": {
          "bcc": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bcc"
          },
          "body_text": {
            "title": "Body Text",
            "type": "string"
          },
          "category": {
            "default": "transactional",
            "title": "Category",
            "type": "string"
          },
          "cc": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cc"
          },
          "headers": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Headers"
          },
          "reply_to": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reply To"
          },
          "subject": {
            "title": "Subject",
            "type": "string"
          },
          "to": {
            "items": {
              "type": "string"
            },
            "title": "To",
            "type": "array"
          }
        },
        "required": [
          "to",
          "subject",
          "body_text"
        ],
        "title": "SendEmailRequest",
        "type": "object"
      },
      "SmsMessageResponse": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "direction": {
            "title": "Direction",
            "type": "string"
          },
          "from_number": {
            "title": "From Number",
            "type": "string"
          },
          "message_id": {
            "format": "uuid",
            "title": "Message Id",
            "type": "string"
          },
          "raw_payload": {
            "additionalProperties": true,
            "title": "Raw Payload",
            "type": "object"
          },
          "to_number": {
            "title": "To Number",
            "type": "string"
          }
        },
        "required": [
          "message_id",
          "direction",
          "from_number",
          "to_number",
          "raw_payload",
          "created_at"
        ],
        "title": "SmsMessageResponse",
        "type": "object"
      },
      "SpendPolicyOut": {
        "properties": {
          "allowlisted_addresses": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allowlisted Addresses"
          },
          "asset": {
            "title": "Asset",
            "type": "string"
          },
          "chain": {
            "title": "Chain",
            "type": "string"
          },
          "decimals": {
            "title": "Decimals",
            "type": "integer"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "max_daily_atomic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Daily Atomic"
          },
          "max_per_tx_atomic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Per Tx Atomic"
          },
          "token_address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Token Address"
          }
        },
        "required": [
          "id",
          "asset",
          "chain",
          "decimals"
        ],
        "title": "SpendPolicyOut",
        "type": "object"
      },
      "SpendPolicyResponse": {
        "properties": {
          "allowlisted_addresses": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allowlisted Addresses"
          },
          "asset": {
            "title": "Asset",
            "type": "string"
          },
          "chain": {
            "title": "Chain",
            "type": "string"
          },
          "decimals": {
            "title": "Decimals",
            "type": "integer"
          },
          "max_daily_atomic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Daily Atomic"
          },
          "max_per_tx_atomic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Per Tx Atomic"
          },
          "token_address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Token Address"
          }
        },
        "required": [
          "asset",
          "chain",
          "decimals"
        ],
        "title": "SpendPolicyResponse",
        "type": "object"
      },
      "TransferIntentCreateRequest": {
        "properties": {
          "amount_atomic": {
            "title": "Amount Atomic",
            "type": "string"
          },
          "asset": {
            "default": "USDC",
            "title": "Asset",
            "type": "string"
          },
          "chain": {
            "default": "base",
            "title": "Chain",
            "type": "string"
          },
          "idempotency_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Idempotency Key"
          },
          "to": {
            "title": "To",
            "type": "string"
          }
        },
        "required": [
          "to",
          "amount_atomic"
        ],
        "title": "TransferIntentCreateRequest",
        "type": "object"
      },
      "TransferIntentListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/TransferIntentOut"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "TransferIntentListResponse",
        "type": "object"
      },
      "TransferIntentOut": {
        "properties": {
          "amount_atomic": {
            "title": "Amount Atomic",
            "type": "string"
          },
          "asset": {
            "title": "Asset",
            "type": "string"
          },
          "chain": {
            "title": "Chain",
            "type": "string"
          },
          "confirmed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Confirmed At"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "failure_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Reason"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "recipient_address": {
            "title": "Recipient Address",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "token_address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Token Address"
          },
          "tx_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tx Hash"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "asset",
          "chain",
          "recipient_address",
          "amount_atomic",
          "created_at",
          "updated_at"
        ],
        "title": "TransferIntentOut",
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "ctx": {
            "title": "Context",
            "type": "object"
          },
          "input": {
            "title": "Input"
          },
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      },
      "VerificationCodeResponse": {
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "from_number": {
            "title": "From Number",
            "type": "string"
          },
          "raw_message": {
            "title": "Raw Message",
            "type": "string"
          },
          "received_at": {
            "format": "date-time",
            "title": "Received At",
            "type": "string"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Request Id"
          }
        },
        "required": [
          "code",
          "from_number",
          "raw_message",
          "received_at"
        ],
        "title": "VerificationCodeResponse",
        "type": "object"
      },
      "WaitForCodeRequest": {
        "properties": {
          "request_id": {
            "anyOf": [
              {
                "maxLength": 128,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Request Id"
          },
          "service_name": {
            "default": "",
            "title": "Service Name",
            "type": "string"
          },
          "timeout": {
            "default": 300,
            "maximum": 300.0,
            "minimum": 0.0,
            "title": "Timeout",
            "type": "integer"
          }
        },
        "title": "WaitForCodeRequest",
        "type": "object"
      },
      "WalletAddressResponse": {
        "properties": {
          "address": {
            "title": "Address",
            "type": "string"
          },
          "chain": {
            "title": "Chain",
            "type": "string"
          }
        },
        "required": [
          "address",
          "chain"
        ],
        "title": "WalletAddressResponse",
        "type": "object"
      },
      "WalletAssetBalance": {
        "properties": {
          "amount_atomic": {
            "title": "Amount Atomic",
            "type": "string"
          },
          "asset": {
            "title": "Asset",
            "type": "string"
          },
          "chain": {
            "title": "Chain",
            "type": "string"
          },
          "decimals": {
            "title": "Decimals",
            "type": "integer"
          },
          "formatted_amount": {
            "title": "Formatted Amount",
            "type": "string"
          },
          "symbol": {
            "title": "Symbol",
            "type": "string"
          },
          "token_address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Token Address"
          }
        },
        "required": [
          "asset",
          "chain",
          "decimals",
          "amount_atomic",
          "formatted_amount",
          "symbol"
        ],
        "title": "WalletAssetBalance",
        "type": "object"
      },
      "WalletBalanceResponse": {
        "properties": {
          "address": {
            "title": "Address",
            "type": "string"
          },
          "assets": {
            "items": {
              "$ref": "#/components/schemas/WalletAssetBalance"
            },
            "title": "Assets",
            "type": "array"
          },
          "chain": {
            "title": "Chain",
            "type": "string"
          },
          "wallet_id": {
            "title": "Wallet Id",
            "type": "string"
          }
        },
        "required": [
          "wallet_id",
          "address",
          "chain",
          "assets"
        ],
        "title": "WalletBalanceResponse",
        "type": "object"
      },
      "WalletOut": {
        "properties": {
          "address": {
            "title": "Address",
            "type": "string"
          },
          "chain": {
            "title": "Chain",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "custody": {
            "title": "Custody",
            "type": "string"
          },
          "delegated": {
            "title": "Delegated",
            "type": "boolean"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "provider": {
            "title": "Provider",
            "type": "string"
          },
          "spend_policy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpendPolicyOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "id",
          "provider",
          "chain",
          "address",
          "custody",
          "status",
          "delegated",
          "created_at"
        ],
        "title": "WalletOut",
        "type": "object"
      }
    },
    "securitySchemes": {
      "AGNTKey": {
        "bearerFormat": "AGNT_KEY",
        "description": "Runtime bearer token for a single agent (`Authorization: Bearer agnt_xxx`).",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Agent-first public API surface for runtime identity, inbox, SMS, and wallet capabilities authenticated with AGNT_KEY.",
    "title": "AgentID Public API",
    "version": "0.1.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/agents/me": {
      "get": {
        "description": "Get the current agent's resource bundle.",
        "operationId": "get_my_agent_v1_agents_me_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentResponse"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "AGNTKey": []
          }
        ],
        "summary": "Get My Agent",
        "tags": [
          "agent"
        ]
      }
    },
    "/v1/email/inbox": {
      "get": {
        "description": "List messages in the agent's email inbox.",
        "operationId": "list_inbox_v1_email_inbox_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "direction",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Direction"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailInboxListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AGNTKey": []
          }
        ],
        "summary": "List Inbox",
        "tags": [
          "email"
        ]
      }
    },
    "/v1/email/messages/{message_id}": {
      "get": {
        "description": "Get a single email message with full body (raw MIME available).",
        "operationId": "get_message_v1_email_messages__message_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "message_id",
            "required": true,
            "schema": {
              "title": "Message Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailMessageResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AGNTKey": []
          }
        ],
        "summary": "Get Message",
        "tags": [
          "email"
        ]
      }
    },
    "/v1/email/reply/{message_id}": {
      "post": {
        "description": "Reply to an email in-thread.",
        "operationId": "reply_email_v1_email_reply__message_id__post",
        "parameters": [
          {
            "in": "path",
            "name": "message_id",
            "required": true,
            "schema": {
              "title": "Message Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplyEmailRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSendResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AGNTKey": []
          }
        ],
        "summary": "Reply Email",
        "tags": [
          "email"
        ]
      }
    },
    "/v1/email/send": {
      "post": {
        "description": "Send an email from the agent's provisioned inbox.",
        "operationId": "send_email_v1_email_send_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendEmailRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSendResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AGNTKey": []
          }
        ],
        "summary": "Send Email",
        "tags": [
          "email"
        ]
      }
    },
    "/v1/sms/messages": {
      "get": {
        "description": "List SMS messages with pagination.",
        "operationId": "list_sms_v1_sms_messages_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "direction",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Direction"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SmsMessageResponse"
                  },
                  "title": "Response List Sms V1 Sms Messages Get",
                  "type": "array"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AGNTKey": []
          }
        ],
        "summary": "List Sms",
        "tags": [
          "sms"
        ]
      }
    },
    "/v1/sms/number": {
      "get": {
        "description": "Return the agent's assigned phone number.",
        "operationId": "get_phone_number_v1_sms_number_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/PhoneNumberResponse"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "title": "Response Get Phone Number V1 Sms Number Get"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "AGNTKey": []
          }
        ],
        "summary": "Get Phone Number",
        "tags": [
          "sms"
        ]
      }
    },
    "/v1/sms/wait-for-code": {
      "post": {
        "description": "Poll TextVerified for an incoming SMS verification code on the agent's number.\n\nBlocks up to `timeout` seconds waiting for a new SMS.",
        "operationId": "wait_for_code_v1_sms_wait_for_code_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WaitForCodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerificationCodeResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AGNTKey": []
          }
        ],
        "summary": "Wait For Code",
        "tags": [
          "sms"
        ]
      }
    },
    "/v1/wallet/address": {
      "get": {
        "operationId": "get_address_v1_wallet_address_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletAddressResponse"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "AGNTKey": []
          }
        ],
        "summary": "Get Address",
        "tags": [
          "wallet"
        ]
      }
    },
    "/v1/wallet/balance": {
      "get": {
        "operationId": "get_balance_v1_wallet_balance_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletBalanceResponse"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "AGNTKey": []
          }
        ],
        "summary": "Get Balance",
        "tags": [
          "wallet"
        ]
      }
    },
    "/v1/wallet/intents": {
      "get": {
        "operationId": "list_runtime_transfer_intents_v1_wallet_intents_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferIntentListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AGNTKey": []
          }
        ],
        "summary": "List Runtime Transfer Intents",
        "tags": [
          "wallet"
        ]
      }
    },
    "/v1/wallet/policy": {
      "get": {
        "operationId": "get_policy_v1_wallet_policy_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpendPolicyResponse"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "AGNTKey": []
          }
        ],
        "summary": "Get Policy",
        "tags": [
          "wallet"
        ]
      }
    },
    "/v1/wallet/send": {
      "post": {
        "operationId": "create_transfer_intent_v1_wallet_send_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransferIntentCreateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferIntentOut"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "AGNTKey": []
          }
        ],
        "summary": "Create Transfer Intent",
        "tags": [
          "wallet"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "Production API",
      "url": "https://api.agent-id.dev"
    }
  ],
  "tags": [
    {
      "description": "Runtime agent identity endpoints authenticated with AGNT_KEY.",
      "name": "agent"
    },
    {
      "description": "Runtime SMS endpoints authenticated with AGNT_KEY.",
      "name": "sms"
    },
    {
      "description": "Runtime email inbox and send endpoints authenticated with AGNT_KEY.",
      "name": "email"
    },
    {
      "description": "Runtime wallet endpoints authenticated with AGNT_KEY.",
      "name": "wallet"
    }
  ]
}
