{
  "info": {
    "_postman_id": "4bbc4c1b-1d25-4f24-bdad-27b1455db09a",
    "name": "Temp Mail Lab API v1",
    "description": "Receive-only Temp Mail Lab API. Requests are customer-driven; this collection contains no automatic polling scripts.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{api_key}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    { "key": "base_url", "value": "https://api.tempmaillab.com" },
    { "key": "api_key", "value": "" },
    { "key": "email_id", "value": "eml_replace" },
    { "key": "message_id", "value": "msg_replace" },
    { "key": "attachment_id", "value": "att_replace" }
  ],
  "item": [
    {
      "name": "List domains",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/v1/domains?limit=20"
      }
    },
    {
      "name": "Create email",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "Idempotency-Key", "value": "postman-{{$guid}}" }
        ],
        "body": { "mode": "raw", "raw": "{}" },
        "url": "{{base_url}}/v1/emails"
      }
    },
    {
      "name": "Get email",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/v1/emails/{{email_id}}"
      }
    },
    {
      "name": "List email messages",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/v1/emails/{{email_id}}/messages?limit=20"
      }
    },
    {
      "name": "Get message",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/v1/messages/{{message_id}}"
      }
    },
    {
      "name": "Get message source",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/v1/messages/{{message_id}}/source"
      }
    },
    {
      "name": "Download attachment",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/v1/messages/{{message_id}}/attachments/{{attachment_id}}"
      }
    },
    {
      "name": "Get usage",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/v1/usage"
      }
    }
  ]
}
