{"info":{"_postman_id":"e88ba646-6e8e-452f-b6a2-ca1928e9d9f0","name":"Cronofy API Samples","description":"<html><head></head><body><p>A collection of requests to allow you to explore the Cronofy calendar and scheduling API. For more information see <a href=\"https://docs.cronofy.com/developers\">https://docs.cronofy.com/developers</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"367508","collectionId":"e88ba646-6e8e-452f-b6a2-ca1928e9d9f0","publishedId":"SzKVSeQd","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-02-24T14:30:01.000Z"},"item":[{"name":"UserInfo","id":"e84d9e8d-b4ab-4353-9307-e360ffcfd7ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.cronofy.com/v1/userinfo","description":"<p>Get information about the Cronofy account. </p>\n<p>Use this to obtain the <code>sub</code> value for the account and update in the environment variables.</p>\n<p><a href=\"https://docs.cronofy.com/developers/api/identity/userinfo/\">https://docs.cronofy.com/developers/api/identity/userinfo/</a></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"e88ba646-6e8e-452f-b6a2-ca1928e9d9f0","id":"e88ba646-6e8e-452f-b6a2-ca1928e9d9f0","name":"Cronofy API Samples","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","userinfo"],"host":["api","cronofy","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e84d9e8d-b4ab-4353-9307-e360ffcfd7ae"},{"name":"List Calendars","id":"027cf893-a9ef-4043-88b8-b9ee44e27a6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://api.cronofy.com/v1/calendars","description":"<p>Read the list of calendars across all the users calendar profiles.</p>\n<p><a href=\"https://docs.cronofy.com/developers/api/calendars/list-calendars/\">https://docs.cronofy.com/developers/api/calendars/list-calendars/</a></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"e88ba646-6e8e-452f-b6a2-ca1928e9d9f0","id":"e88ba646-6e8e-452f-b6a2-ca1928e9d9f0","name":"Cronofy API Samples","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","calendars"],"host":["api","cronofy","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"027cf893-a9ef-4043-88b8-b9ee44e27a6e"},{"name":"Read Events","id":"845eacbc-cb14-4adf-8a8b-052983da3293","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://api.cronofy.com/v1/events?tzid={{tzid}}&from={{from}}&to={{to}}&include_managed=1","description":"<p>Read Events for all calendars between two <strong>dates</strong>.</p>\n<p>Includes managed events, ie events created by your application.</p>\n<p><a href=\"https://docs.cronofy.com/developers/api/events/read-events/\">https://docs.cronofy.com/developers/api/events/read-events/</a></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"e88ba646-6e8e-452f-b6a2-ca1928e9d9f0","id":"e88ba646-6e8e-452f-b6a2-ca1928e9d9f0","name":"Cronofy API Samples","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","events"],"host":["api","cronofy","com"],"query":[{"description":{"content":"<p><a href=\"https://docs.cronofy.com/developers/api/events/read-events/#tzid\">https://docs.cronofy.com/developers/api/events/read-events/#tzid</a></p>\n","type":"text/plain"},"key":"tzid","value":"{{tzid}}"},{"description":{"content":"<p><a href=\"https://docs.cronofy.com/developers/api/events/read-events/#from\">https://docs.cronofy.com/developers/api/events/read-events/#from</a></p>\n","type":"text/plain"},"key":"from","value":"{{from}}"},{"description":{"content":"<p><a href=\"https://docs.cronofy.com/developers/api/events/read-events/#to\">https://docs.cronofy.com/developers/api/events/read-events/#to</a></p>\n","type":"text/plain"},"key":"to","value":"{{to}}"},{"description":{"content":"<p><a href=\"https://docs.cronofy.com/developers/api/events/read-events/#include_managed\">https://docs.cronofy.com/developers/api/events/read-events/#include_managed</a></p>\n","type":"text/plain"},"key":"include_managed","value":"1"}],"variable":[]}},"response":[],"_postman_id":"845eacbc-cb14-4adf-8a8b-052983da3293"},{"name":"Create or Update Event","id":"61591a37-c1b7-44cb-aa24-00935c8b26dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"event_id\":\"E1234567890\",\n    \"summary\":\"Created with Cronofy\",\n    \"description\":\"You can put notes in here\",\n    \"start\":\"2025-01-25T15:30:00Z\",\n    \"end\":\"2025-01-25T16:00:00Z\",\n    \"tzid\":\"{{tzid}}\",\n    \"location\":{\n        \"description\":\"Board Room\"\n    },\n\n}"},"url":"https://api.cronofy.com/v1/calendars/{{calendar_id}}/events","description":"<p>Upsert an event into a user's calendar.</p>\n<p>To use this sample you will need to choose a <code>calendar_id</code> from the result of the Read Calendars sample and update the <code>calendar_id</code> environment value.</p>\n<p><a href=\"https://docs.cronofy.com/developers/api/events/upsert-event/\">https://docs.cronofy.com/developers/api/events/upsert-event/</a></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"e88ba646-6e8e-452f-b6a2-ca1928e9d9f0","id":"e88ba646-6e8e-452f-b6a2-ca1928e9d9f0","name":"Cronofy API Samples","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","calendars","{{calendar_id}}","events"],"host":["api","cronofy","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"61591a37-c1b7-44cb-aa24-00935c8b26dc"},{"name":"Free Busy","id":"1d408dd6-c0d6-4d6c-a709-94ad98da5a77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}"}],"url":"https://api.cronofy.com/v1/free_busy?tzid={{tzid}}&from={{from}}&to={{to}}","description":"<p>Free busy query for a user across all of their calendars</p>\n<p><a href=\"https://docs.cronofy.com/developers/api/events/free-busy/\">https://docs.cronofy.com/developers/api/events/free-busy/</a></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"e88ba646-6e8e-452f-b6a2-ca1928e9d9f0","id":"e88ba646-6e8e-452f-b6a2-ca1928e9d9f0","name":"Cronofy API Samples","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","free_busy"],"host":["api","cronofy","com"],"query":[{"description":{"content":"<p><a href=\"https://docs.cronofy.com/developers/api/events/read-events/#tzid\">https://docs.cronofy.com/developers/api/events/read-events/#tzid</a></p>\n","type":"text/plain"},"key":"tzid","value":"{{tzid}}"},{"description":{"content":"<p><a href=\"https://docs.cronofy.com/developers/api/events/read-events/#from\">https://docs.cronofy.com/developers/api/events/read-events/#from</a></p>\n","type":"text/plain"},"key":"from","value":"{{from}}"},{"description":{"content":"<p><a href=\"https://docs.cronofy.com/developers/api/events/read-events/#to\">https://docs.cronofy.com/developers/api/events/read-events/#to</a></p>\n","type":"text/plain"},"key":"to","value":"{{to}}"}],"variable":[]}},"response":[],"_postman_id":"1d408dd6-c0d6-4d6c-a709-94ad98da5a77"},{"name":"Availability","id":"9afad7ba-833c-475a-9481-3e35d5e64a04","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"participants\": [\n    {\n      \"members\": [\n        { \"sub\": \"{{sub}}\" }\n      ],\n      \"required\": \"all\"\n    }\n  ],\n  \"required_duration\": { \"minutes\": 60 },\n  \"available_periods\": [\n    {\n      \"start\": \"2019-06-28T09:00:00Z\",\n      \"end\": \"2019-06-28T18:00:00Z\"\n    },\n    {\n      \"start\": \"2019-06-29T09:00:00Z\",\n      \"end\": \"2019-06-29T18:00:00Z\"\n    }\n  ],\n  \"response_format\": \"slots\"\n}"},"url":"https://api.cronofy.com/v1/availability","description":"<p>Discover availability for one or more people or resources.</p>\n<p>You will need to set the <code>sub</code> environment variable obtained from the <code>UserInfo</code> request.</p>\n<p><a href=\"https://docs.cronofy.com/developers/scheduling/\">https://docs.cronofy.com/developers/scheduling/</a></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"e88ba646-6e8e-452f-b6a2-ca1928e9d9f0","id":"e88ba646-6e8e-452f-b6a2-ca1928e9d9f0","name":"Cronofy API Samples","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","availability"],"host":["api","cronofy","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9afad7ba-833c-475a-9481-3e35d5e64a04"},{"name":"Real-Time Scheduling","id":"b32bc31a-e84b-46b7-9666-daf682e25e6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{client_secret}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"oauth\": {\n    \"redirect_uri\": \"http://localhost\"\n  },\n  \"event\": {\n    \"event_id\": \"qTtZdczOccgaPncGJaCiLg\",\n    \"summary\": \"Testing Cronofy Real-Time Scheduling\",\n    \"tzid\": \"{{tzid}}\"\n  },\n  \"availability\": {\n    \"participants\": [\n      {\n        \"members\": [\n          {\n            \"sub\": \"{{sub}}\"\n          }\n        ],\n        \"required\": \"all\"\n      }\n    ],\n    \"required_duration\": { \"minutes\": 60 },\n    \"available_periods\": [\n      { \n      \t\"start\": \"2019-06-28T09:00:00Z\", \n      \t\"end\": \"2019-06-28T18:00:00Z\"\n      }\n    ]\n  },\n  \"target_calendars\": [\n    {\n      \"sub\": \"{{sub}}\",\n      \"calendar_id\": \"{{calendar_id}}\"\n    }\n  ],\n  \"callback_url\": \"https://myapp/callback\"\n}"},"url":"https://api.cronofy.com/v1/real_time_scheduling","description":"<p>Generate a real-time booking link to send to people.</p>\n<p><a href=\"https://docs.cronofy.com/developers/api/scheduling/real-time-scheduling/\">https://docs.cronofy.com/developers/api/scheduling/real-time-scheduling/</a></p>\n","urlObject":{"protocol":"https","path":["v1","real_time_scheduling"],"host":["api","cronofy","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b32bc31a-e84b-46b7-9666-daf682e25e6b"},{"name":"Generate UI Element Token","id":"282e6eb0-3e14-452e-bee9-0f99db955fea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{client_secret}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"version\": \"1\",\n  \"permissions\": [\"agenda\"],\n  \"subs\": [\"{{sub}}\"],\n  \"origin\": \"http://localhost\"\n}"},"url":"https://api.cronofy.com/v1/element_tokens","description":"<p>Generate an authentication token to be used with UI Elements.</p>\n<p><a href=\"https://docs.cronofy.com/developers/ui-elements/authentication/\">https://docs.cronofy.com/developers/ui-elements/authentication/</a></p>\n","urlObject":{"protocol":"https","path":["v1","element_tokens"],"host":["api","cronofy","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"282e6eb0-3e14-452e-bee9-0f99db955fea"}],"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]}},"event":[{"listen":"prerequest","script":{"id":"74b3f9fb-a0b8-42d1-85fd-bd579ea2590b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"6e827f03-2a58-43f3-9396-6f331201149f","type":"text/javascript","exec":[""]}}]}