Testmail · Example Payload

Json Api Get Emails

Example GET request and response for retrieving test emails from the Testmail JSON API.

Email TestingDeveloper ToolsAPI TestingGraphQLREST APICI/CDQA AutomationProgrammable Inboxes

Json Api Get Emails is an example object payload from Testmail, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

titledescriptionrequestresponse

Example Payload

Raw ↑
{
  "title": "JSON API - Retrieve emails from a namespace inbox",
  "description": "Example GET request and response for retrieving test emails from the Testmail JSON API.",
  "request": {
    "method": "GET",
    "url": "https://api.testmail.app/api/json?apikey=YOUR_API_KEY&namespace=mynamespace&tag=verify-user123&limit=5"
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "result": "success",
      "message": null,
      "count": 2,
      "limit": 5,
      "offset": 0,
      "emails": [
        {
          "from": "no-reply@myapp.com",
          "to": "mynamespace.verify-user123@inbox.testmail.app",
          "subject": "Verify your email address",
          "text": "Please click the link to verify your email: https://myapp.com/verify/token123",
          "html": "<p>Please <a href=\"https://myapp.com/verify/token123\">click here</a> to verify your email address.</p>",
          "tag": "verify-user123",
          "timestamp": 1686000000000
        },
        {
          "from": "no-reply@myapp.com",
          "to": "mynamespace.verify-user123@inbox.testmail.app",
          "subject": "Resend: Verify your email address",
          "text": "We resent your verification email. Click here: https://myapp.com/verify/token456",
          "html": "<p>We resent your verification email. <a href=\"https://myapp.com/verify/token456\">Click here</a>.</p>",
          "tag": "verify-user123",
          "timestamp": 1686001000000
        }
      ]
    }
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/json-api-get-emails"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.