Back to Docs
Recipe

Postman Workflows

Chain Meridian API calls into automated Postman workflows for license provisioning, user lifecycle management, and bulk operations.

Prerequisites

  • Postman desktop or web client
  • Meridian API key with admin scope
  • Imported Meridian collection from the API reference

Workflow 1 — License Provisioning

Chain three requests to create a user, generate a license key, and email credentials in one runner pass.

POST /v1/users
  → store user_id in collection var

POST /v1/licenses
  → read user_id from collection var
  → store license_key in collection var

POST /v1/email/send
  → read license_key, user_id
  → template: "welcome"

Workflow 2 — Bulk Revoke

Use the Postman Runner with a CSV data file to revoke licenses in batch. Each row contains a license ID.

CSV: license_id
lic_abc123
lic_def456

DELETE /v1/licenses/{{license_id}}
  → assert status 200
  → log to Postman console

Workflow 3 — Health Monitor

Schedule a monitor in Postman to ping the health endpoint every 5 minutes and alert on non-200 responses.

GET /v1/health
  → test: pm.response.code === 200
  → on failure: webhook to Discord

Full collection and environment template available in the API Reference.