{"info":{"name":"Maham Expo - Public API \u2014 \ud83d\udce1 Tracking","_postman_id":"a77642cd-9f0e-4274-bff0-76dcea1db825","schema":"https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"},"item":[{"name":"\ud83d\udce1 Tracking","description":"Public tracking endpoints for recording views and actions on resources.","item":[{"name":"Track View","request":{"method":"POST","header":[{"key":"Content-Type","value":"application\/json"},{"key":"X-Platform","value":"{{platform}}"}],"body":{"mode":"raw","raw":"{\n    \"resource_type\": \"event\",\n    \"resource_id\": \"{{event_id}}\",\n    \"session_id\": \"unique-session-id\",\n    \"metadata\": {}\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{expo_url}}\/v1\/track\/view","host":["{{expo_url}}"],"path":["v1","track","view"]},"description":"Track a view event on a resource.\n\n**Headers:**\n- `X-Platform` - Platform identifier\n\n**Body Parameters:**\n- `resource_type` (string, **required**) - The type of resource. Options: `event`, `space`, `section`, `sponsor`, `page`, `banner`, `faq`, `service`\n- `resource_id` (uuid, **required**) - The UUID of the resource being viewed\n- `session_id` (string, optional) - Unique session identifier for the viewer\n- `metadata` (object, optional) - Additional metadata for the view event"},"response":[]},{"name":"Track Action","request":{"method":"POST","header":[{"key":"Content-Type","value":"application\/json"}],"body":{"mode":"raw","raw":"{\n    \"action\": \"click\",\n    \"resource_type\": \"event\",\n    \"resource_id\": \"{{event_id}}\",\n    \"session_id\": \"unique-session-id\",\n    \"metadata\": {\n        \"source_page\": \"home\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{expo_url}}\/v1\/track\/action","host":["{{expo_url}}"],"path":["v1","track","action"]},"description":"Track an action event on a resource.\n\n**Body Parameters:**\n- `action` (string, **required**) - The action being tracked. Options: `view`, `search`, `filter`, `click`, `share`, `download`, `favorite`, `unfavorite`, `apply`, `book`, `cancel`, `rate`, `contact`, `compare`\n- `resource_type` (string, **required**) - The type of resource. Options: `event`, `space`, `section`, `sponsor`, `page`, `banner`, `faq`, `service`\n- `resource_id` (uuid, optional) - The UUID of the resource\n- `session_id` (string, optional) - Unique session identifier\n- `metadata` (object, optional) - Additional metadata (e.g., `source_page`)"},"response":[]}]}],"auth":{"type":"noauth"},"variable":[{"key":"expo_url","value":"http:\/\/localhost:8000","description":"Base URL for the Expo API"},{"key":"event_id","value":"","description":"Event UUID"},{"key":"space_id","value":"","description":"Space UUID"},{"key":"category_id","value":"","description":"Category UUID"},{"key":"city_id","value":"","description":"City UUID"},{"key":"faq_id","value":"","description":"FAQ UUID"},{"key":"banner_id","value":"","description":"Banner UUID"},{"key":"page_slug","value":"","description":"Page slug identifier"},{"key":"platform","value":"web","description":"Platform identifier (web, ios, android)"},{"key":"language","value":"ar","description":"Language code (ar, en)"}],"event":[{"listen":"prerequest","script":{"type":"text\/javascript","exec":["pm.request.headers.add({","    key: 'Accept',","    value: 'application\/json'","});","","pm.request.headers.add({","    key: 'Accept-Language',","    value: pm.variables.get('language') || 'ar'","});","","pm.request.headers.add({","    key: 'X-Platform',","    value: pm.variables.get('platform') || 'web'","});"]}}]}