{"info":{"_postman_id":"7d47d98e-482f-499a-b86b-3a50fe2ad2a2","name":"outryx API Documentation","description":"<html><head></head><body><p><strong>outryx</strong> is an email marketing automation platform service for business and creator.<br>This collection documents all available simulations API endpoints for developers integrating with outryx.</p>\n<p>Base URL:<br><a href=\"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io\">https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io</a></p>\n<p>Mock Server URL:</p>\n<p><a href=\"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io\">https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"47296527","collectionId":"7d47d98e-482f-499a-b86b-3a50fe2ad2a2","publishedId":"2sBXqFLh6V","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"F58f1f"},"publishDate":"2026-04-21T10:19:45.000Z"},"item":[{"name":"Authentication","item":[{"name":"Login","id":"31ab8f4f-41a6-4dc1-a18b-30f7af7e9e96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"user@example.com\"\n    \"password\": \"yourpassword123\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.outryx.com/v1/auth/login","description":"<p>Authenticates a user and returns a Bearer token \nfor use in subsequent API requests.</p>\n<p>Response returns:</p>\n<ul>\n<li>access_token: Bearer token (expires in 24 hours)</li>\n<li>token_type: Bearer</li>\n<li>expires_in: 86400</li>\n</ul>\n<p>Error codes:</p>\n<ul>\n<li>401: Invalid credentials</li>\n<li>422: Missing required fields</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","auth","login"],"host":["api","outryx","com"],"query":[],"variable":[]}},"response":[{"id":"ac39054f-3dff-477f-a19f-2a390e5c4279","name":"201 success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"user@example.com\",\n  \"password\": \"yourpassword123\"\n}","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/auth/login"},"code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"access_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoidXNyLTAwMSIsImVtYWlsIjoidXNlckBleGFtcGxlLmNvbSIsInJvbGUiOiJvd25lciIsImlhdCI6MTc0NTI5NDQwMCwiZXhwIjoxNzQ1MzgwODAwfQ.signature\",\n        \"token_type\": \"Bearer\",\n        \"expires_in\": 86400\n    },\n    \"request_id\": \"req-4a1b2c3d\"\n}"},{"id":"c3aa8a6c-327d-4fda-95ca-96020786f90d","name":"401 unauthorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"user@example.com\"\n    \"password\": \"yourpassword123\"\n}","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/auth/login"},"code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"AUTH-4010\",\n  \"http_status\": 401,\n  \"message\": \"Invalid credentials. Email or password is incorrect.\",\n  \"request_id\": \"req-4a1b2c3d\"\n}"},{"id":"29b6a8d3-ec25-438e-9c6f-78c452e32192","name":"422 unprocessable Entity","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"user@example.com\"\n    \"password\": \"yourpassword123\"\n}","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/auth/login"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"AUTH-4220\",\n  \"http_status\": 422,\n  \"message\": \"Validation failed. Missing required fields.\",\n  \"detail\": {\n    \"field\": \"email\",\n    \"issue\": \"email is required and cannot be empty.\"\n  },\n  \"request_id\": \"req-4a1b2c3d\"\n}"}],"_postman_id":"31ab8f4f-41a6-4dc1-a18b-30f7af7e9e96"},{"name":"Generate API key","id":"18cccdfc-00e9-4812-bc93-5a41bb62c05a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/auth/api-keys","description":"<p>Generates a new API key for the authenticated user. \nPrevious API keys will be invalidated upon generation.</p>\n<p>Response returns:</p>\n<ul>\n<li>api_key: New API key string</li>\n<li>created_at: Timestamp of generation</li>\n<li>expires_at: null (keys don't expire unless regenerated)</li>\n</ul>\n<p>Error codes:</p>\n<ul>\n<li>401: Unauthorized — invalid or missing Bearer token</li>\n<li>429: Too many requests — rate limit exceeded</li>\n</ul>\n","urlObject":{"path":["auth","api-keys"],"host":["https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io"],"query":[],"variable":[]}},"response":[{"id":"d38a2a50-d906-48df-a74a-6d7966de7af5","name":"201 success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/auth/api-keys"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"api_key\": \"otrx_live_sk_a1b2c3d4e5f6g7h8i9j0\",\n        \"created_at\": \"2026-04-22T08:00:00Z\",\n        \"expires_at\": null\n    },\n    \"request_id\": \"req-9f2b3c11\"\n}"},{"id":"8880dc2b-8b60-44bd-97aa-7716b9d0ea5e","name":"401","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/auth/api-keys"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"AUTH-4011\",\n  \"http_status\": 401,\n  \"message\": \"Unauthorized. Invalid or missing Bearer token.\",\n  \"request_id\": \"req-9f2b3c11\"\n}"},{"id":"f461487d-176f-4440-95f7-fe8f79df608f","name":"429","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/auth/api-keys"},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"AUTH-4290\",\n  \"http_status\": 429,\n  \"message\": \"Rate limit exceeded. You can only generate an API key 3 times per hour.\",\n  \"detail\": {\n    \"retry_after\": \"3600\",\n    \"limit\": 3,\n    \"reset_at\": \"2026-04-22T09:00:00Z\"\n  },\n  \"request_id\": \"req-9f2b3c11\"\n}"}],"_postman_id":"18cccdfc-00e9-4812-bc93-5a41bb62c05a"},{"name":"Logout","id":"e5c55ac6-354d-4018-a653-53b5524f5a2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"user@example.com\"\n    \"password\": \"yourpassword123\"\n}"},"url":"https://api.outryx.com/v1/auth/logout","description":"<p>Invalidates the current Bearer token and ends the user session.</p>\n<p>Response returns:</p>\n<ul>\n<li>message: \"Successfully logged out. Access token has been invalidated.\"</li>\n</ul>\n<p>Error codes:</p>\n<ul>\n<li>401: Unauthorized — token already expired or invalid</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","auth","logout"],"host":["api","outryx","com"],"query":[],"variable":[]}},"response":[{"id":"4ae559c7-6d65-40b3-bd39-6a8f9e2cf85e","name":"201","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"access_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...\"\n}"},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/auth/logout"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": \"Successfully logged out. Access token has been invalidated.\",\n  \"request_id\": \"req-7d3e9f22\"\n}"},{"id":"b71ce5e9-bf2b-4929-8ef3-33da86229295","name":"401","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/auth/logout"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"AUTH-4012\",\n  \"http_status\": 401,\n  \"message\": \"Unauthorized. Token is invalid or already expired.\",\n  \"request_id\": \"req-7d3e9f22\"\n}"}],"_postman_id":"e5c55ac6-354d-4018-a653-53b5524f5a2e"}],"id":"1dcfc506-34f0-491f-9bba-09d386009815","_postman_id":"1dcfc506-34f0-491f-9bba-09d386009815","description":""},{"name":"Campaign","item":[{"name":"Create Campaign","id":"ca76386e-274e-4fb2-9a3e-6a60f5783368","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"April Newsletter\",\n  \"subject\": \"What's new at outryx this April 🚀\",\n  \"body\": \"<h1>Hello!</h1><p>Here's what's new this month...</p>\",\n  \"audience_id\": \"aud-001\",\n  \"scheduled_at\": \"2026-04-25T09:00:00Z\"\n}","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/campaigns","description":"<p>Creates a new email campaign in draft status</p>\n","urlObject":{"path":["campaigns"],"host":["https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io"],"query":[],"variable":[]}},"response":[{"id":"348ee220-7b8e-452d-a459-72b79375668e","name":"201 succes","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"April Newsletter\",\n  \"subject\": \"What's new at outryx this April 🚀\",\n  \"body\": \"<h1>Hello!</h1><p>Here's what's new this month...</p>\",\n  \"audience_id\": \"aud-001\",\n  \"scheduled_at\": \"2026-04-25T09:00:00Z\"\n}","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/campaigns"},"status":"success","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"campaign_id\": \"cmp-20260422-001\",\n        \"name\": \"April Newsletter\",\n        \"subject\": \"What's new at outryx this April 🚀\",\n        \"status\": \"draft\",\n        \"audience_id\": \"aud-001\",\n        \"scheduled_at\": \"2026-04-25T09:00:00Z\",\n        \"created_at\": \"2026-04-22T08:00:00Z\"\n    },\n    \"request_id\": \"req-1a2b3c4d\"\n}"},{"id":"340e352f-2172-4d02-b845-442bcd637ed1","name":"422 unprocessable entity","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"April Newsletter\",\n  \"subject\": \"What's new at outryx this April 🚀\",\n  \"body\": \"<h1>Hello!</h1><p>Here's what's new this month...</p>\",\n  \"audience_id\": \"aud-001\",\n  \"scheduled_at\": \"2026-04-25T09:00:00Z\"\n}","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/campaigns"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"CMP-4220\",\n  \"http_status\": 422,\n  \"message\": \"Validation failed. Missing required fields.\",\n  \"detail\": {\n    \"field\": \"subject\",\n    \"issue\": \"subject is required and cannot be empty.\"\n  },\n  \"request_id\": \"req-1a2b3c4d\"\n}"}],"_postman_id":"ca76386e-274e-4fb2-9a3e-6a60f5783368"},{"name":"Get All Campaigns","id":"42973b26-2a5c-4631-b90b-eedc6d602345","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/campaigns\n","description":"<p>Returns a paginated list of all campaigns</p>\n","urlObject":{"path":["campaigns\n"],"host":["https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io"],"query":[],"variable":[]}},"response":[{"id":"360d98e4-e782-4b8e-a256-378b6015b648","name":"200 success","originalRequest":{"method":"GET","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/campaigns"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"data\": [\n    {\n      \"campaign_id\": \"cmp-20260422-001\",\n      \"name\": \"April Newsletter\",\n      \"subject\": \"What's new at outryx this April 🚀\",\n      \"status\": \"draft\",\n      \"audience_id\": \"aud-001\",\n      \"scheduled_at\": \"2026-04-25T09:00:00Z\",\n      \"created_at\": \"2026-04-22T08:00:00Z\"\n    },\n    {\n      \"campaign_id\": \"cmp-20260401-002\",\n      \"name\": \"March Recap\",\n      \"subject\": \"Here's what happened in March 📊\",\n      \"status\": \"sent\",\n      \"audience_id\": \"aud-002\",\n      \"scheduled_at\": \"2026-04-01T09:00:00Z\",\n      \"created_at\": \"2026-03-28T08:00:00Z\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 2,\n    \"page\": 1,\n    \"per_page\": 10\n  },\n  \"request_id\": \"req-2b3c4d5e\"\n}"},{"id":"84ffd254-2a06-40f5-8f75-af987efe3699","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/campaigns"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"CMP-4010\",\n  \"http_status\": 401,\n  \"message\": \"Unauthorized. Invalid or missing Bearer token.\",\n  \"request_id\": \"req-2b3c4d5e\"\n}"}],"_postman_id":"42973b26-2a5c-4631-b90b-eedc6d602345"},{"name":"Send Campaign","id":"b7c29f67-806c-443b-ae2f-da28394a1467","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"POST /campaigns/{id}/send","description":"<p>Sends a draft campaign to the target audience</p>\n","urlObject":{"path":["campaigns","{id}","send"],"host":["POST "],"query":[],"variable":[]}},"response":[{"id":"51356adc-aedc-4a3f-8fec-bb040c8981b9","name":"200 success","originalRequest":{"method":"GET","header":[],"url":"POST /campaigns/{id}/send"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"data\": {\n    \"campaign_id\": \"cmp-20260422-001\",\n    \"status\": \"sent\",\n    \"sent_at\": \"2026-04-22T09:00:00Z\",\n    \"recipients\": 1240,\n    \"audience_id\": \"aud-001\"\n  },\n  \"message\": \"Campaign successfully sent to 1,240 subscribers.\",\n  \"request_id\": \"req-4d5e6f7g\"\n}"},{"id":"feb0cf9c-f687-455b-80cc-7a407b7d034b","name":"Send Campaign","originalRequest":{"method":"GET","header":[],"url":"POST /campaigns/{id}/send"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"CMP-4001\",\n  \"http_status\": 400,\n  \"message\": \"Campaign cannot be sent. Campaign is already sent or cancelled.\",\n  \"detail\": {\n    \"campaign_id\": \"cmp-20260422-001\",\n    \"current_status\": \"sent\"\n  },\n  \"request_id\": \"req-4d5e6f7g\"\n}"}],"_postman_id":"b7c29f67-806c-443b-ae2f-da28394a1467"},{"name":"Get Campaign by ID","id":"a306387f-1c9f-4f79-af31-519efc7cc7d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/campaigns/{id}","description":"<p>Returns a single campaign by its ID</p>\n","urlObject":{"path":["campaigns","{id}"],"query":[],"variable":[]}},"response":[{"id":"bdad9f8a-3b18-4541-acf9-c0f0dc394df9","name":"200 Success","originalRequest":{"method":"GET","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/campaigns/cmp-20260422-001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"data\": {\n    \"campaign_id\": \"cmp-20260422-001\",\n    \"name\": \"April Newsletter\",\n    \"subject\": \"What's new at outryx this April 🚀\",\n    \"body\": \"<h1>Hello!</h1><p>Here's what's new this month...</p>\",\n    \"status\": \"draft\",\n    \"audience_id\": \"aud-001\",\n    \"scheduled_at\": \"2026-04-25T09:00:00Z\",\n    \"created_at\": \"2026-04-22T08:00:00Z\"\n  },\n  \"request_id\": \"req-3c4d5e6f\"\n}"},{"id":"d1a749d6-8d71-4464-98d4-9e4ae3748183","name":"404 not found","originalRequest":{"method":"GET","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/campaigns/cmp-20260422-001"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"CMP-4040\",\n  \"http_status\": 404,\n  \"message\": \"Campaign not found. The requested campaign_id does not exist.\",\n  \"detail\": {\n    \"campaign_id\": \"cmp-20260422-001\"\n  },\n  \"request_id\": \"req-3c4d5e6f\"\n}"}],"_postman_id":"a306387f-1c9f-4f79-af31-519efc7cc7d6"}],"id":"33ce5ec3-a49a-433d-8a83-723aad5b203f","_postman_id":"33ce5ec3-a49a-433d-8a83-723aad5b203f","description":""},{"name":"Webhook","item":[{"name":"Register Webhook","id":"80caf76d-a572-4f23-9b98-b278d78b1ac7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"url\": \"https://yourapp.com/webhook/outryx\",\n  \"events\": [\"campaign.sent\", \"subscriber.added\", \"subscriber.unsubscribed\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/webhooks","urlObject":{"path":["webhooks"],"host":["https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io"],"query":[],"variable":[]}},"response":[{"id":"9fe3014a-822c-4913-82f8-a4df4d7bd3d7","name":"201 success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n  \"url\": \"https://yourapp.com/webhook/outryx\",\n  \"events\": [\"campaign.sent\", \"subscriber.added\", \"subscriber.unsubscribed\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/webhooks"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"data\": {\n    \"webhook_id\": \"whk-20260422-001\",\n    \"url\": \"https://yourapp.com/webhook/outryx\",\n    \"events\": [\"campaign.sent\", \"subscriber.added\", \"subscriber.unsubscribed\"],\n    \"status\": \"active\",\n    \"created_at\": \"2026-04-22T08:00:00Z\"\n  },\n  \"request_id\": \"req-5e6f7g8h\"\n}"},{"id":"4acad8fc-0b8c-45b9-97f6-83457e6e5e5a","name":"Register Webhook","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n  \"url\": \"https://yourapp.com/webhook/outryx\",\n  \"events\": [\"campaign.sent\", \"subscriber.added\", \"subscriber.unsubscribed\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/webhooks"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"WHK-4220\",\n  \"http_status\": 422,\n  \"message\": \"Validation failed. Missing required fields.\",\n  \"detail\": {\n    \"field\": \"url\",\n    \"issue\": \"url is required and must be a valid HTTPS endpoint.\"\n  },\n  \"request_id\": \"req-5e6f7g8h\"\n}"}],"_postman_id":"80caf76d-a572-4f23-9b98-b278d78b1ac7"},{"name":"List Webhooks","id":"6c319210-ded7-4ffa-aadf-3a7a56fccb2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/webhooks","urlObject":{"path":["webhooks"],"host":["https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io"],"query":[],"variable":[]}},"response":[{"id":"adf9fb03-bf40-4c2b-9177-3cae1453b963","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/webhooks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"data\": [\n    {\n      \"webhook_id\": \"whk-20260422-001\",\n      \"url\": \"https://yourapp.com/webhook/outryx\",\n      \"events\": [\"campaign.sent\", \"subscriber.added\"],\n      \"status\": \"active\",\n      \"created_at\": \"2026-04-22T08:00:00Z\"\n    },\n    {\n      \"webhook_id\": \"whk-20260401-002\",\n      \"url\": \"https://anotherapp.com/webhook/outryx\",\n      \"events\": [\"subscriber.unsubscribed\"],\n      \"status\": \"inactive\",\n      \"created_at\": \"2026-04-01T08:00:00Z\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 2,\n    \"page\": 1,\n    \"per_page\": 10\n  },\n  \"request_id\": \"req-6f7g8h9i\"\n}"},{"id":"e2f199be-0823-4031-b750-9767ef8c3c1e","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/webhooks"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"error_code\": \"WHK-4010\",\n    \"http_status\": 401,\n    \"message\": \"Unauthorized. Invalid or missing Bearer token.\",\n    \"request_id\": \"req-6f7g8h9i\"\n}"}],"_postman_id":"6c319210-ded7-4ffa-aadf-3a7a56fccb2e"},{"name":"Delete Webhook","id":"f8065bd7-7196-4b91-8619-bd9ec35617b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/webhooks/{id} ","urlObject":{"path":["webhooks","{id} "],"query":[],"variable":[]}},"response":[{"id":"fd07c3b2-adf0-4288-bd25-d6811c89ab43","name":"200 OK","originalRequest":{"method":"DELETE","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/webhooks/whk-20260422-001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"message\": \"Webhook whk-20260422-001 has been successfully deleted.\",\n  \"request_id\": \"req-7g8h9i0j\"\n}"},{"id":"226e0c86-03bf-4544-9f18-cdc663b7a529","name":"Delete Webhook","originalRequest":{"method":"DELETE","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/webhooks/whk-20260422-001"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"WHK-4040\",\n  \"http_status\": 404,\n  \"message\": \"Webhook not found. The requested webhook_id does not exist.\",\n  \"detail\": {\n    \"webhook_id\": \"whk-20260422-001\"\n  },\n  \"request_id\": \"req-7g8h9i0j\"\n}"}],"_postman_id":"f8065bd7-7196-4b91-8619-bd9ec35617b7"}],"id":"e1f06b2b-98d6-41f0-946e-21a5d0f05c02","_postman_id":"e1f06b2b-98d6-41f0-946e-21a5d0f05c02","description":""},{"name":"Subscription","item":[{"name":"Subscribe","id":"74b4843f-96c8-4dfb-806b-9726047635d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"subscriber@example.com\",\n  \"first_name\": \"John\",\n  \"last_name\": \"Doe\",\n  \"audience_id\": \"aud-001\"\n}","options":{"raw":{"language":"json"}}},"url":"/subscriptions","urlObject":{"path":["subscriptions"],"query":[],"variable":[]}},"response":[{"id":"2830b4f0-9dc2-416a-8501-f62703acffc9","name":"201 Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"subscriber@example.com\",\n  \"first_name\": \"John\",\n  \"last_name\": \"Doe\",\n  \"audience_id\": \"aud-001\"\n}","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/subscriptions"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"subscriber_id\": \"sub-20260422-001\",\n        \"email\": \"subscriber@example.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"audience_id\": \"aud-001\",\n        \"status\": \"active\",\n        \"subscribed_at\": \"2026-04-22T08:00:00Z\"\n    },\n    \"request_id\": \"req-8h9i0j1k\"\n}"},{"id":"91f7aa68-1f09-48ef-b2d9-12a02bd30226","name":"409 Conflict","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"subscriber@example.com\",\n  \"first_name\": \"John\",\n  \"last_name\": \"Doe\",\n  \"audience_id\": \"aud-001\"\n}","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/subscriptions"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"SUB-4090\",\n  \"http_status\": 409,\n  \"message\": \"Subscriber already exists in this audience.\",\n  \"detail\": {\n    \"email\": \"subscriber@example.com\",\n    \"audience_id\": \"aud-001\"\n  },\n  \"request_id\": \"req-8h9i0j1k\"\n}"},{"id":"ff7d42b4-a4d4-4f9e-a4a8-f7109361fb46","name":"422 Unprocessable Content","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"subscriber@example.com\",\n  \"first_name\": \"John\",\n  \"last_name\": \"Doe\",\n  \"audience_id\": \"aud-001\"\n}","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/subscriptions"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"SUB-4220\",\n  \"http_status\": 422,\n  \"message\": \"Validation failed. Missing required fields.\",\n  \"detail\": {\n    \"field\": \"email\",\n    \"issue\": \"email is required and must be a valid email address.\"\n  },\n  \"request_id\": \"req-8h9i0j1k\"\n}"}],"_postman_id":"74b4843f-96c8-4dfb-806b-9726047635d4"},{"name":"Unsubscribe","id":"3d1eb7bf-057d-4c4d-a518-7ea3ca3fc7b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"subscriber@example.com\",\n  \"audience_id\": \"aud-001\"\n}","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/subscriptions/unsubscribe","urlObject":{"path":["subscriptions","unsubscribe"],"host":["https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io"],"query":[],"variable":[]}},"response":[{"id":"b121be86-8ac6-4149-9bb2-7a6fcba5eb0a","name":"200 OK","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"subscriber@example.com\",\n  \"audience_id\": \"aud-001\"\n}","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/subscriptions/unsubscribe"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"data\": {\n    \"subscriber_id\": \"sub-20260422-001\",\n    \"email\": \"subscriber@example.com\",\n    \"audience_id\": \"aud-001\",\n    \"status\": \"unsubscribed\",\n    \"unsubscribed_at\": \"2026-04-22T09:00:00Z\"\n  },\n  \"message\": \"subscriber@example.com has been successfully unsubscribed.\",\n  \"request_id\": \"req-9i0j1k2l\"\n}"},{"id":"4aadc34d-dc8a-42fa-8291-6ae63201dd2e","name":"404 Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"subscriber@example.com\",\n  \"audience_id\": \"aud-001\"\n}","options":{"raw":{"language":"json"}}},"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/subscriptions/unsubscribe"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"SUB-4040\",\n  \"http_status\": 404,\n  \"message\": \"Subscriber not found in this audience.\",\n  \"detail\": {\n    \"email\": \"subscriber@example.com\",\n    \"audience_id\": \"aud-001\"\n  },\n  \"request_id\": \"req-9i0j1k2l\"\n}"}],"_postman_id":"3d1eb7bf-057d-4c4d-a518-7ea3ca3fc7b8"},{"name":"List Subscribers","id":"40169daf-c6af-4d8a-8e1d-76d6ea07fcf1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/subscriptions","urlObject":{"path":["subscriptions"],"host":["https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io"],"query":[],"variable":[]}},"response":[{"id":"71e1a764-b2e1-4254-bbed-3758e18cd485","name":"200 Success","originalRequest":{"method":"GET","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/subscriptions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"data\": [\n    {\n      \"subscriber_id\": \"sub-20260422-001\",\n      \"email\": \"subscriber@example.com\",\n      \"first_name\": \"John\",\n      \"last_name\": \"Doe\",\n      \"audience_id\": \"aud-001\",\n      \"status\": \"active\",\n      \"subscribed_at\": \"2026-04-22T08:00:00Z\"\n    },\n    {\n      \"subscriber_id\": \"sub-20260401-002\",\n      \"email\": \"jane@example.com\",\n      \"first_name\": \"Jane\",\n      \"last_name\": \"Smith\",\n      \"audience_id\": \"aud-001\",\n      \"status\": \"unsubscribed\",\n      \"subscribed_at\": \"2026-04-01T08:00:00Z\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 2,\n    \"page\": 1,\n    \"per_page\": 10\n  },\n  \"request_id\": \"req-0j1k2l3m\"\n}"},{"id":"42a9a13a-7783-442b-ab4b-0e9843ad9676","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/subscriptions"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"SUB-4010\",\n  \"http_status\": 401,\n  \"message\": \"Unauthorized. Invalid or missing Bearer token.\",\n  \"request_id\": \"req-0j1k2l3m\"\n}"}],"_postman_id":"40169daf-c6af-4d8a-8e1d-76d6ea07fcf1"}],"id":"cd57e36d-7cf2-457f-8061-25dba803de6c","_postman_id":"cd57e36d-7cf2-457f-8061-25dba803de6c","description":""},{"name":"Analytics","item":[{"name":"Get Overview","id":"54ba5929-8897-4242-8791-a127a1fddc3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"f9986473-cd08-4d29-a5fa-4c68da2d5aa1","name":"200 Success","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"349523aa-58a9-473f-89a2-3b685a505614","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/analytics"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"ANL-4010\",\n  \"http_status\": 401,\n  \"message\": \"Unauthorized. Invalid or missing Bearer token.\",\n  \"request_id\": \"req-1k2l3m4n\"\n}"}],"_postman_id":"54ba5929-8897-4242-8791-a127a1fddc3f"},{"name":"Get Campaign Stats","id":"a16f34f4-5fc9-4f92-b897-4477eff12d3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"c1775862-6bd8-41db-a866-553f31e30242","name":"200 Success","originalRequest":{"method":"GET","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/analytics/campaigns/cmp-20260422-001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"campaign_id\": \"cmp-20260422-001\",\n        \"name\": \"April Newsletter\",\n        \"subject\": \"What's new at outryx this April 🚀\",\n        \"sent_at\": \"2026-04-22T09:00:00Z\",\n        \"recipients\": 1240,\n        \"stats\": {\n            \"delivered\": 1235,\n            \"opened\": 525,\n            \"clicked\": 227,\n            \"unsubscribed\": 14,\n            \"bounced\": 5,\n            \"open_rate\": 42.5,\n            \"click_rate\": 18.4,\n            \"unsubscribe_rate\": 1.1,\n            \"bounce_rate\": 0.4\n        }\n    },\n    \"request_id\": \"req-2l3m4n5o\"\n}"},{"id":"a4d8580f-998f-4c27-b709-71b72aa693aa","name":"Get Campaign Stats","originalRequest":{"method":"GET","header":[],"url":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io/analytics/campaigns/cmp-20260422-001"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"error_code\": \"ANL-4040\",\n  \"http_status\": 404,\n  \"message\": \"Campaign not found. No analytics available for this campaign_id.\",\n  \"detail\": {\n    \"campaign_id\": \"cmp-20260422-001\"\n  },\n  \"request_id\": \"req-2l3m4n5o\"\n}"}],"_postman_id":"a16f34f4-5fc9-4f92-b897-4477eff12d3a"}],"id":"18e48e75-5f18-430e-aa1e-ad6574ac903a","_postman_id":"18e48e75-5f18-430e-aa1e-ad6574ac903a","description":""}],"event":[{"listen":"prerequest","script":{"id":"217c9ebb-71ce-4461-bcdf-6cc32db5793d","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"7d48e9af-f6bc-4a4e-bd5e-857e128b706e","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"base_url","value":"https://63d4a6ab-e0e2-4f66-93ea-6f0aa290dcc5.mock.pstmn.io"}]}