{"info":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"68277","collectionId":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","publishedId":"UVeNmhpT","public":true,"customColor":{"top-bar":"333333","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-02-14T08:48:42.000Z"},"item":[{"name":"User","item":[{"name":"Get user data","id":"363df43e-f4c8-4c88-82ed-0ac9ec4b85cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.hackmd.io/v1/me","description":"<p>GET user data</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}},"urlObject":{"path":["me"],"host":["https://api.hackmd.io/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"363df43e-f4c8-4c88-82ed-0ac9ec4b85cd"}],"id":"fc9812ca-d79f-4df7-8100-69566aa5fe8e","_postman_id":"fc9812ca-d79f-4df7-8100-69566aa5fe8e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}}},{"name":"User Notes","item":[{"name":"Get user's note list","id":"70fd9dd8-430c-4988-8929-382c8c5f94ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.hackmd.io/v1/notes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}},"urlObject":{"path":["notes"],"host":["https://api.hackmd.io/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"70fd9dd8-430c-4988-8929-382c8c5f94ec"},{"name":"Get a note by noteId","id":"79411367-7186-4377-968a-a15498e42229","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.hackmd.io/v1/notes/:noteId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}},"urlObject":{"path":["notes",":noteId"],"host":["https://api.hackmd.io/v1"],"query":[],"variable":[{"type":"any","value":"TebNOZr6TmmdQuMACYJ_TQ","key":"noteId"}]}},"response":[],"_postman_id":"79411367-7186-4377-968a-a15498e42229"},{"name":"Get user's browse history","id":"8c3eb0a2-d473-4226-bf56-3f9042cae230","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.hackmd.io/v1/history","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}},"urlObject":{"path":["history"],"host":["https://api.hackmd.io/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"8c3eb0a2-d473-4226-bf56-3f9042cae230"},{"name":"Create a new note","id":"12fe3fe1-b051-49ef-b436-ba2e4a62a5aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"content\": \"# Hello I'm creating a note\",\n\t\"commentPermission\": \"everyone\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.hackmd.io/v1/notes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}},"urlObject":{"path":["notes"],"host":["https://api.hackmd.io/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"12fe3fe1-b051-49ef-b436-ba2e4a62a5aa"},{"name":"Update a note's content","id":"2c319208-deb3-4572-a5f7-076625be0ff5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n   \"content\": \"!!!!!!!!!!\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.hackmd.io/v1/notes/:noteId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}},"urlObject":{"path":["notes",":noteId"],"host":["https://api.hackmd.io/v1"],"query":[],"variable":[{"type":"any","value":"MmBlrojLSH6Ym1FbSmuaZw","key":"noteId"}]}},"response":[],"_postman_id":"2c319208-deb3-4572-a5f7-076625be0ff5"},{"name":"Delete a note","id":"a8f5f76c-4cc2-4ea1-8116-437ced21b67f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.hackmd.io/v1/notes/:noteId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}},"urlObject":{"path":["notes",":noteId"],"host":["https://api.hackmd.io/v1"],"query":[],"variable":[{"type":"any","value":"B8r6UFTURVuMCD4zJAFEpQ","key":"noteId"}]}},"response":[],"_postman_id":"a8f5f76c-4cc2-4ea1-8116-437ced21b67f"}],"id":"6e199273-4c29-411c-80b6-4cad8d310e05","_postman_id":"6e199273-4c29-411c-80b6-4cad8d310e05","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}}},{"name":"Teams","item":[{"name":"GET a list of team user participating in","id":"7301e8ec-25e5-4c4b-a742-b4c24bf190b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.hackmd.io/v1/teams","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}},"urlObject":{"path":["teams"],"host":["https://api.hackmd.io/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"7301e8ec-25e5-4c4b-a742-b4c24bf190b1"}],"id":"b501d2d5-c6b5-42d8-b100-4b8b53090327","_postman_id":"b501d2d5-c6b5-42d8-b100-4b8b53090327","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}}},{"name":"Team Notes","item":[{"name":"Get a list of notes in a team","id":"f59b5d04-cde6-40df-a824-46a1a59f8472","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.hackmd.io/v1/teams/:teamPath/notes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}},"urlObject":{"path":["teams",":teamPath","notes"],"host":["https://api.hackmd.io/v1"],"query":[],"variable":[{"type":"any","value":"apitest","key":"teamPath"}]}},"response":[],"_postman_id":"f59b5d04-cde6-40df-a824-46a1a59f8472"},{"name":"Create a note under a team","id":"e6d5e2f8-7419-467f-aaf5-3888569a03ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"permission\": \"freely\",\n\t\"title\": \"A team note\",\n\t\"content\": \"\",\n\t\"commentPermission\": \"everyone\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.hackmd.io/v1/teams/:teamPath/notes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}},"urlObject":{"path":["teams",":teamPath","notes"],"host":["https://api.hackmd.io/v1"],"query":[],"variable":[{"type":"any","value":"apitest","key":"teamPath"}]}},"response":[],"_postman_id":"e6d5e2f8-7419-467f-aaf5-3888569a03ce"},{"name":"Update a note's content in a team","id":"d9f7d94b-8505-4752-ab3c-49f25d5e2c23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n   \"content\": \"# Updated team note\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.hackmd.io/v1/teams/:teamPath/notes/:noteId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}},"urlObject":{"path":["teams",":teamPath","notes",":noteId"],"host":["https://api.hackmd.io/v1"],"query":[],"variable":[{"type":"any","value":"apitest","key":"teamPath"},{"type":"any","value":"dxwqXSzfTuu5vkynp6rP2w","key":"noteId"}]}},"response":[],"_postman_id":"d9f7d94b-8505-4752-ab3c-49f25d5e2c23"},{"name":"Delete a note from a team","id":"a5abd809-7e74-45b6-8513-27d66c25625e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.hackmd.io/v1/teams/:teamPath/notes/:noteId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}},"urlObject":{"path":["teams",":teamPath","notes",":noteId"],"host":["https://api.hackmd.io/v1"],"query":[],"variable":[{"type":"any","value":"apitest","key":"teamPath"},{"type":"any","value":"dxwqXSzfTuu5vkynp6rP2w","key":"noteId"}]}},"response":[],"_postman_id":"a5abd809-7e74-45b6-8513-27d66c25625e"}],"id":"263868a1-132e-4195-8c79-f0361781438b","_postman_id":"263868a1-132e-4195-8c79-f0361781438b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","id":"6ec01682-2850-487d-9ec6-b4dc577e2b4f","name":"HackMD OpenAPI v1","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"2fb6b250-a582-4b03-9fb6-0e64b94719cd","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b739b20f-7e07-44b1-a2f2-05fd755c806b","type":"text/javascript","exec":[""]}}],"variable":[{"key":"API_BASE_URL","value":"https://api.hackmd.io/v1","type":"string"},{"key":"ACCESS_TOKEN","value":"","type":"string"}]}