{
  "info": {
    "name": "YouLMK",
    "description": "Send a notification into your YouLMK inbox. Set the collection variables key (k_\u2026 from the source's Key screen) and token (ylk_\u2026). Reference: https://youlmk.com/docs/http",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "key",
      "value": "k_7hq2nk3f9qd8w4"
    },
    {
      "key": "token",
      "value": "ylk_your_token_here"
    }
  ],
  "item": [
    {
      "name": "Send plain text with the URL key",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "text/plain"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "backup finished \u00b7 4.2 GB"
        },
        "url": {
          "raw": "https://youlmk.com/k/{{key}}",
          "protocol": "https",
          "host": [
            "youlmk",
            "com"
          ],
          "path": [
            "k",
            "{{key}}"
          ]
        }
      }
    },
    {
      "name": "Send JSON with the URL key",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"title\": \"api deployed \\u00b7 v2.4.1\",\n  \"body\": \"production \\u00b7 4 min 12 s\",\n  \"priority\": \"normal\",\n  \"url\": \"https://example.com/deploys/2041\",\n  \"fields\": {\n    \"commit\": \"9f2c1a0\",\n    \"by\": \"ci\"\n  }\n}"
        },
        "url": {
          "raw": "https://youlmk.com/k/{{key}}",
          "protocol": "https",
          "host": [
            "youlmk",
            "com"
          ],
          "path": [
            "k",
            "{{key}}"
          ]
        }
      }
    },
    {
      "name": "Send with a GET (tools that cannot POST)",
      "request": {
        "method": "GET",
        "url": {
          "raw": "https://youlmk.com/k/{{key}}?title=backup%20finished&priority=low",
          "protocol": "https",
          "host": [
            "youlmk",
            "com"
          ],
          "path": [
            "k",
            "{{key}}"
          ],
          "query": [
            {
              "key": "title",
              "value": "backup finished"
            },
            {
              "key": "priority",
              "value": "low"
            }
          ]
        }
      }
    },
    {
      "name": "Send with the bearer token (/v1/notify)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          },
          {
            "key": "Idempotency-Key",
            "value": "deploy-2041",
            "description": "The same key within 24 hours sends nothing twice."
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"title\": \"job failed\",\n  \"body\": \"exit 2\",\n  \"priority\": \"high\",\n  \"url\": \"https://example.com/logs/2041\"\n}"
        },
        "url": {
          "raw": "https://youlmk.com/v1/notify",
          "protocol": "https",
          "host": [
            "youlmk",
            "com"
          ],
          "path": [
            "v1",
            "notify"
          ]
        }
      }
    },
    {
      "name": "A service's webhook (generic mapping)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"type\": \"deployment.succeeded\",\n  \"createdAt\": 1757600000000,\n  \"region\": \"iad1\"\n}"
        },
        "url": {
          "raw": "https://youlmk.com/w/{{key}}",
          "protocol": "https",
          "host": [
            "youlmk",
            "com"
          ],
          "path": [
            "w",
            "{{key}}"
          ]
        }
      }
    }
  ]
}