{ "info": { "_postman_id": "f3e31ba7-63d8-4a00-a84f-1da1ea1865bb", "name": "Swetrix Admin Annotations Traffic API", "description": "The Swetrix Admin API manages analytics projects, funnels, annotations, project views (segments), and organisations. Supports full CRUD operations for all Swetrix account resources. All requests require authentication via the X-Api-Key header. Rate limit is 600 requests/hour.\n\nContact Support:\n Name: Swetrix Support", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "lastUpdatedBy": "35240", "uid": "35240-f3e31ba7-63d8-4a00-a84f-1da1ea1865bb" }, "item": [ { "name": "v1", "item": [ { "name": "log", "item": [ { "name": "birdseye", "item": [ { "name": "Get Birdseye Traffic Summary", "id": "a212ff17-7710-48e6-8f46-d1250a364397", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/log/birdseye?pids=&pid=&period=3M&from=&to=&timezone=Etc/GMT&filters=", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log", "birdseye" ], "query": [ { "description": "Comma-separated list of project IDs (use pid or pids)", "key": "pids", "value": "" }, { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Time period for the query", "key": "period", "value": "3M" }, { "description": "Custom range start date (YYYY-MM-DD)", "key": "from", "value": "" }, { "description": "Custom range end date (YYYY-MM-DD)", "key": "to", "value": "" }, { "description": "IANA timezone name (default Etc/GMT)", "key": "timezone", "value": "Etc/GMT" }, { "description": "JSON array of filter objects", "key": "filters", "value": "" } ] }, "description": "Returns summary traffic data for one or more projects, comparing the current period against the previous period. Useful for dashboards showing traffic trends." }, "response": [ { "id": "a4e93185-423a-4736-99f0-d541dde77282", "name": "Per-project birdseye summaries", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "X-Api-Key", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/log/birdseye?pids=&pid=&period=3M&from=&to=&timezone=Etc/GMT&filters=", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log", "birdseye" ], "query": [ { "description": "Comma-separated list of project IDs (use pid or pids)", "key": "pids", "value": "" }, { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Time period for the query", "key": "period", "value": "3M" }, { "description": "Custom range start date (YYYY-MM-DD)", "key": "from", "value": "" }, { "description": "Custom range end date (YYYY-MM-DD)", "key": "to", "value": "" }, { "description": "IANA timezone name (default Etc/GMT)", "key": "timezone", "value": "Etc/GMT" }, { "description": "JSON array of filter objects", "key": "filters", "value": "" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{}", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-a4e93185-423a-4736-99f0-d541dde77282" }, { "id": "cb546559-81aa-457c-8cd9-ccf1bb820d91", "name": "Unauthorized - missing or invalid API key", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "X-Api-Key", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/log/birdseye?pids=&pid=&period=3M&from=&to=&timezone=Etc/GMT&filters=", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log", "birdseye" ], "query": [ { "description": "Comma-separated list of project IDs (use pid or pids)", "key": "pids", "value": "" }, { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Time period for the query", "key": "period", "value": "3M" }, { "description": "Custom range start date (YYYY-MM-DD)", "key": "from", "value": "" }, { "description": "Custom range end date (YYYY-MM-DD)", "key": "to", "value": "" }, { "description": "IANA timezone name (default Etc/GMT)", "key": "timezone", "value": "Etc/GMT" }, { "description": "JSON array of filter objects", "key": "filters", "value": "" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-cb546559-81aa-457c-8cd9-ccf1bb820d91" } ], "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-a212ff17-7710-48e6-8f46-d1250a364397" } ], "id": "d155a048-0bbe-493d-a45c-520914cead16", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-d155a048-0bbe-493d-a45c-520914cead16" }, { "name": "live-visitors", "item": [ { "name": "Get Live Visitors", "id": "57e11b0c-1841-493b-9c6d-8a033bd2b4cb", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/log/live-visitors?pid=", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log", "live-visitors" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" } ] }, "description": "Returns currently active visitors on a project. Each visitor record includes device type, browser, operating system, country, and session ID." }, "response": [ { "id": "f6b201a7-66f2-4ab8-8a4e-3f202b72fbff", "name": "Array of active visitor objects", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "X-Api-Key", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/log/live-visitors?pid=", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log", "live-visitors" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "[\n {\n \"sessionId\": \"\",\n \"device\": \"\",\n \"browser\": \"\",\n \"os\": \"\",\n \"country\": \"\"\n },\n {\n \"sessionId\": \"\",\n \"device\": \"\",\n \"browser\": \"\",\n \"os\": \"\",\n \"country\": \"\"\n }\n]", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-f6b201a7-66f2-4ab8-8a4e-3f202b72fbff" }, { "id": "78c5035d-f007-482c-b206-5e6eacb18594", "name": "Unauthorized - missing or invalid API key", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "X-Api-Key", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/log/live-visitors?pid=", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log", "live-visitors" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-78c5035d-f007-482c-b206-5e6eacb18594" } ], "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-57e11b0c-1841-493b-9c6d-8a033bd2b4cb" } ], "id": "f840feb9-d464-47a5-999f-6b674376ba7c", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-f840feb9-d464-47a5-999f-6b674376ba7c" }, { "name": "keywords", "item": [ { "name": "Get Search Keywords", "id": "d6bc811a-9a09-4532-8b43-1cb59c6b6173", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/log/keywords?pid=&period=3M&from=&to=&timezone=Etc/GMT", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log", "keywords" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Time period for the query", "key": "period", "value": "3M" }, { "description": "Custom range start date (YYYY-MM-DD)", "key": "from", "value": "" }, { "description": "Custom range end date (YYYY-MM-DD)", "key": "to", "value": "" }, { "description": "IANA timezone name (default Etc/GMT)", "key": "timezone", "value": "Etc/GMT" } ] }, "description": "Returns search keyword data from Google Search Console integration for the specified project and period." }, "response": [ { "id": "48360aef-e32b-4b6f-881d-9ac683176b50", "name": "Search keyword data", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "X-Api-Key", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/log/keywords?pid=&period=3M&from=&to=&timezone=Etc/GMT", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log", "keywords" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Time period for the query", "key": "period", "value": "3M" }, { "description": "Custom range start date (YYYY-MM-DD)", "key": "from", "value": "" }, { "description": "Custom range end date (YYYY-MM-DD)", "key": "to", "value": "" }, { "description": "IANA timezone name (default Etc/GMT)", "key": "timezone", "value": "Etc/GMT" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{}", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-48360aef-e32b-4b6f-881d-9ac683176b50" }, { "id": "35bbf33a-e874-4b85-a984-94d87ce434e2", "name": "Unauthorized - missing or invalid API key", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "X-Api-Key", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/log/keywords?pid=&period=3M&from=&to=&timezone=Etc/GMT", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log", "keywords" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Time period for the query", "key": "period", "value": "3M" }, { "description": "Custom range start date (YYYY-MM-DD)", "key": "from", "value": "" }, { "description": "Custom range end date (YYYY-MM-DD)", "key": "to", "value": "" }, { "description": "IANA timezone name (default Etc/GMT)", "key": "timezone", "value": "Etc/GMT" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-35bbf33a-e874-4b85-a984-94d87ce434e2" } ], "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-d6bc811a-9a09-4532-8b43-1cb59c6b6173" } ], "id": "f8cc7d15-c7cb-467f-886f-f8f99daad66c", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-f8cc7d15-c7cb-467f-886f-f8f99daad66c" }, { "name": "user-flow", "item": [ { "name": "Get User Navigation Flow", "id": "8992a842-87e1-4d50-8e71-5d40cd620abd", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/log/user-flow?pid=&timeBucket=year&period=3M&from=&to=&timezone=Etc/GMT&filters=", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log", "user-flow" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Time bucket for data aggregation", "key": "timeBucket", "value": "year" }, { "description": "(Required) Time period for the query", "key": "period", "value": "3M" }, { "description": "Custom range start date (YYYY-MM-DD)", "key": "from", "value": "" }, { "description": "Custom range end date (YYYY-MM-DD)", "key": "to", "value": "" }, { "description": "IANA timezone name (default Etc/GMT)", "key": "timezone", "value": "Etc/GMT" }, { "description": "JSON array of filter objects", "key": "filters", "value": "" } ] }, "description": "Returns user navigation flow diagram data showing how visitors move between pages on the site." }, "response": [ { "id": "ae0dd462-df9d-44cf-8bd2-bda72470ce17", "name": "User flow diagram data", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "X-Api-Key", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/log/user-flow?pid=&timeBucket=year&period=3M&from=&to=&timezone=Etc/GMT&filters=", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log", "user-flow" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Time bucket for data aggregation", "key": "timeBucket", "value": "year" }, { "description": "(Required) Time period for the query", "key": "period", "value": "3M" }, { "description": "Custom range start date (YYYY-MM-DD)", "key": "from", "value": "" }, { "description": "Custom range end date (YYYY-MM-DD)", "key": "to", "value": "" }, { "description": "IANA timezone name (default Etc/GMT)", "key": "timezone", "value": "Etc/GMT" }, { "description": "JSON array of filter objects", "key": "filters", "value": "" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{}", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-ae0dd462-df9d-44cf-8bd2-bda72470ce17" }, { "id": "5d7b267a-6a80-4fe3-9281-6c263861a8ed", "name": "Unauthorized - missing or invalid API key", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "X-Api-Key", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/log/user-flow?pid=&timeBucket=year&period=3M&from=&to=&timezone=Etc/GMT&filters=", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log", "user-flow" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Time bucket for data aggregation", "key": "timeBucket", "value": "year" }, { "description": "(Required) Time period for the query", "key": "period", "value": "3M" }, { "description": "Custom range start date (YYYY-MM-DD)", "key": "from", "value": "" }, { "description": "Custom range end date (YYYY-MM-DD)", "key": "to", "value": "" }, { "description": "IANA timezone name (default Etc/GMT)", "key": "timezone", "value": "Etc/GMT" }, { "description": "JSON array of filter objects", "key": "filters", "value": "" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-5d7b267a-6a80-4fe3-9281-6c263861a8ed" } ], "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-8992a842-87e1-4d50-8e71-5d40cd620abd" } ], "id": "b3a07e74-1cce-4add-9c03-c560bb4c6a78", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-b3a07e74-1cce-4add-9c03-c560bb4c6a78" }, { "name": "filters", "item": [ { "name": "Get Available Filter Values", "id": "871d3d3b-06bd-4dab-b978-b85e895e2019", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/log/filters?pid=&type=ref", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log", "filters" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Dimension type to get filter values for", "key": "type", "value": "ref" } ] }, "description": "Returns available filter values for a specific analytics dimension such as browser, OS, or country code." }, "response": [ { "id": "a51ff6df-7f24-49e4-a21f-1c3a87ae509f", "name": "Available filter values", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "X-Api-Key", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/log/filters?pid=&type=ref", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log", "filters" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Dimension type to get filter values for", "key": "type", "value": "ref" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "[\n \"\",\n \"\"\n]", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-a51ff6df-7f24-49e4-a21f-1c3a87ae509f" }, { "id": "250472a7-a686-445a-8126-fd662badc5f6", "name": "Unauthorized - missing or invalid API key", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "X-Api-Key", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/log/filters?pid=&type=ref", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log", "filters" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Dimension type to get filter values for", "key": "type", "value": "ref" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-250472a7-a686-445a-8126-fd662badc5f6" } ], "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-871d3d3b-06bd-4dab-b978-b85e895e2019" } ], "id": "32d52ae9-5fe7-453e-8732-a50464d69c37", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-32d52ae9-5fe7-453e-8732-a50464d69c37" }, { "name": "Get Traffic Log", "id": "452e3419-720b-434a-b612-6010db53a458", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/log?pid=&timeBucket=year&period=3M&from=&to=&timezone=Etc/GMT&filters=&mode=periodic&metrics=", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Time bucket for data aggregation", "key": "timeBucket", "value": "year" }, { "description": "(Required) Time period for the query", "key": "period", "value": "3M" }, { "description": "Custom range start date (YYYY-MM-DD)", "key": "from", "value": "" }, { "description": "Custom range end date (YYYY-MM-DD)", "key": "to", "value": "" }, { "description": "IANA timezone name (default Etc/GMT)", "key": "timezone", "value": "Etc/GMT" }, { "description": "JSON array of filter objects", "key": "filters", "value": "" }, { "description": "Data aggregation mode", "key": "mode", "value": "periodic" }, { "description": "Up to 3 custom metric objects (JSON array)", "key": "metrics", "value": "" } ] }, "description": "Retrieves aggregated traffic data for a project. Returns the same data shown in the Traffic tab of the dashboard, represented as JSON. Supports periodic or cumulative modes and custom metric objects." }, "response": [ { "id": "96c25477-74b1-4e9a-86ce-3cf25cb34510", "name": "Traffic log data", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "X-Api-Key", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/log?pid=&timeBucket=year&period=3M&from=&to=&timezone=Etc/GMT&filters=&mode=periodic&metrics=", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Time bucket for data aggregation", "key": "timeBucket", "value": "year" }, { "description": "(Required) Time period for the query", "key": "period", "value": "3M" }, { "description": "Custom range start date (YYYY-MM-DD)", "key": "from", "value": "" }, { "description": "Custom range end date (YYYY-MM-DD)", "key": "to", "value": "" }, { "description": "IANA timezone name (default Etc/GMT)", "key": "timezone", "value": "Etc/GMT" }, { "description": "JSON array of filter objects", "key": "filters", "value": "" }, { "description": "Data aggregation mode", "key": "mode", "value": "periodic" }, { "description": "Up to 3 custom metric objects (JSON array)", "key": "metrics", "value": "" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"params\": {},\n \"chart\": {},\n \"customs\": {},\n \"properties\": {}\n}", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-96c25477-74b1-4e9a-86ce-3cf25cb34510" }, { "id": "a4198e74-c16c-4803-bd0c-42edc574f5f7", "name": "Bad request - invalid parameters", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "X-Api-Key", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/log?pid=&timeBucket=year&period=3M&from=&to=&timezone=Etc/GMT&filters=&mode=periodic&metrics=", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Time bucket for data aggregation", "key": "timeBucket", "value": "year" }, { "description": "(Required) Time period for the query", "key": "period", "value": "3M" }, { "description": "Custom range start date (YYYY-MM-DD)", "key": "from", "value": "" }, { "description": "Custom range end date (YYYY-MM-DD)", "key": "to", "value": "" }, { "description": "IANA timezone name (default Etc/GMT)", "key": "timezone", "value": "Etc/GMT" }, { "description": "JSON array of filter objects", "key": "filters", "value": "" }, { "description": "Data aggregation mode", "key": "mode", "value": "periodic" }, { "description": "Up to 3 custom metric objects (JSON array)", "key": "metrics", "value": "" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-a4198e74-c16c-4803-bd0c-42edc574f5f7" }, { "id": "22f7a06b-43a4-4b19-b8b3-73d651804477", "name": "Unauthorized - missing or invalid API key", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: apikey", "key": "X-Api-Key", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/log?pid=&timeBucket=year&period=3M&from=&to=&timezone=Etc/GMT&filters=&mode=periodic&metrics=", "host": [ "{{baseUrl}}" ], "path": [ "v1", "log" ], "query": [ { "description": "(Required) Project ID", "key": "pid", "value": "" }, { "description": "(Required) Time bucket for data aggregation", "key": "timeBucket", "value": "year" }, { "description": "(Required) Time period for the query", "key": "period", "value": "3M" }, { "description": "Custom range start date (YYYY-MM-DD)", "key": "from", "value": "" }, { "description": "Custom range end date (YYYY-MM-DD)", "key": "to", "value": "" }, { "description": "IANA timezone name (default Etc/GMT)", "key": "timezone", "value": "Etc/GMT" }, { "description": "JSON array of filter objects", "key": "filters", "value": "" }, { "description": "Data aggregation mode", "key": "mode", "value": "periodic" }, { "description": "Up to 3 custom metric objects (JSON array)", "key": "metrics", "value": "" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-22f7a06b-43a4-4b19-b8b3-73d651804477" } ], "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-452e3419-720b-434a-b612-6010db53a458" } ], "id": "d65a7757-87d1-4175-ba94-232bde54d6bf", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-d65a7757-87d1-4175-ba94-232bde54d6bf" } ], "id": "054cabdb-7071-4726-9a4c-091e4e8603a3", "createdAt": "2026-07-28T03:06:56.000Z", "updatedAt": "2026-07-28T03:06:56.000Z", "uid": "35240-054cabdb-7071-4726-9a4c-091e4e8603a3" } ], "auth": { "type": "apikey", "apikey": [ { "key": "key", "value": "X-Api-Key", "type": "string" }, { "key": "value", "value": "{{apiKey}}", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "variable": [ { "key": "baseUrl", "value": "https://api.swetrix.com" } ] }