{
  "agentpeering-verify": "ap-verify-b84802f2eeaa94b5761c2614ede18345",
  "protocolVersion": "0.3.0",
  "name": "Send Letters Online",
  "description": "Print and post real physical letters in the UK and internationally via Royal Mail. Check your prepaid balance, preview the exact price of a letter, create a paid letter order, and track its status. Paid orders require an explicit price confirmation (confirmed: true plus the matching expectedTotalPence).",
  "url": "https://sendlettersonline.co.uk/api/a2a",
  "preferredTransport": "JSONRPC",
  "version": "1.0.0",
  "provider": {
    "organization": "Spark Labs FZ-LLC",
    "url": "https://sendlettersonline.co.uk"
  },
  "documentationUrl": "https://sendlettersonline.co.uk/developers",
  "iconUrl": "https://sendlettersonline.co.uk/favicon.ico",
  "capabilities": {
    "streaming": false,
    "pushNotifications": false,
    "stateTransitionHistory": false
  },
  "securitySchemes": {
    "bearerAuth": {
      "type": "http",
      "scheme": "bearer",
      "description": "Send Letters Online API key. Enable API access and create a key in your account's balance and access settings."
    }
  },
  "security": [{ "bearerAuth": [] }],
  "defaultInputModes": ["application/json", "text/plain"],
  "defaultOutputModes": ["application/json", "text/plain"],
  "skills": [
    {
      "id": "get_balance",
      "name": "Get balance",
      "description": "Read the prepaid balance on the account (balanceCents and currency). Read-only, no charge.",
      "tags": ["balance", "account"],
      "examples": ["What is my Send Letters Online balance?"]
    },
    {
      "id": "list_orders",
      "name": "List orders",
      "description": "List past letter orders, most recent first, with limit and offset pagination.",
      "tags": ["orders", "history"],
      "examples": ["Show my last 5 letters."]
    },
    {
      "id": "get_order",
      "name": "Get order",
      "description": "Get one letter order with its status and tracking number when available.",
      "tags": ["tracking", "status"],
      "examples": ["Has order 1234 been posted yet?"]
    },
    {
      "id": "preview_letter_price",
      "name": "Preview letter price",
      "description": "Calculate the exact price of a letter for given pages, colour, double sided and postal service, without creating an order or spending balance.",
      "tags": ["pricing", "quote", "letters", "royal mail"],
      "examples": ["How much to send a 2 page black and white letter by first class?"]
    },
    {
      "id": "create_letter_order",
      "name": "Create letter order",
      "description": "Print and post a physical letter, paid from the prepaid balance. Without confirmation it returns a quote only. With confirmed: true and expectedTotalPence equal to the current total, it creates and pays for the order.",
      "tags": ["send letter", "post", "print", "mail", "royal mail"],
      "examples": ["Send this letter to HMRC, Pay As You Earn, BX9 1AS by second class."]
    }
  ]
}
