{"_id":"5864039211433c3700ed079e","project":"5588b8a2f6c18d0d005bba03","version":{"_id":"5588b8a2f6c18d0d005bba06","project":"5588b8a2f6c18d0d005bba03","__v":15,"createdAt":"2015-06-23T01:38:42.696Z","releaseDate":"2015-06-23T01:38:42.696Z","categories":["5588b8a3f6c18d0d005bba07","5588e9689cfea70d00371df3","5588f5921163180d00b64704","561598b121e9110d0078025a","5616f1c9d170d00d00189306","5616f5c3a410c90d00c6121e","561803dcf8c9632100ac7592","563667280441020d0000e9eb","5642570d9417b40d00c0fcd3","57bf5f02efe0050e00d50bd5","57f53fb368a53b2000e03f0f","57f55187440418170086325a","582e3afa72fd270f0006926d","5841faa973967b0f004b4a2b","58db348aa32c8419002433bb"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"57f53fb368a53b2000e03f0f","version":"5588b8a2f6c18d0d005bba06","project":"5588b8a2f6c18d0d005bba03","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-10-05T18:00:19.547Z","from_sync":false,"order":0,"slug":"api","title":"REST API"},"__v":5,"parentDoc":null,"user":"5588b847f6c18d0d005bba01","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-12-28T18:25:22.810Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"curl","code":"curl --header \"X-API-Token: <your token>\" https://api.mixmax.com/v1/snippets/gCt1hrpDm879LSL1F"}]},"method":"get","results":{"codes":[{"status":200,"language":"json","code":"{\n  _id: \"586346d00000000000000000\",\n  userId: \"586346d00000000000000000\",\n  createdAt: 1478122191866,\n  savedAt: 1478122199067,\n  title: \"Interested in a new opportunity?\",\n  source: \"<p data-m-id=\\\"xz\\\">Hello there!<br></p>\",\n  name: \"My test snippet tag\",\n  shared: [{\n    userEmail: \"email:::at:::domain.com\",\n    confirmed: true\n  }]\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"58640253e024922500d366e8","ref":"","in":"path","required":true,"desc":"Snippet Id","default":"","type":"string","name":"id"},{"_id":"58b0acfe4a13970f0090f2d5","ref":"","in":"query","required":false,"desc":"(Optional) include snippets marked for deletion when querying","default":"false","type":"boolean","name":"includeDeleted"},{"_id":"58c74b524213c52500441296","ref":"","in":"query","required":false,"desc":"(Optional) Pass `expand=snippetId` to expand `_id` to include id of parent tag. Pass `expand=savedBy` to expand `savedBy` to include id, name, and email of user who last saved this snippet.","default":"","type":"string","name":"expand"},{"_id":"58ed5b469242a3230066c76e","ref":"","in":"query","required":false,"desc":"(Optional) Comma separated list of fields to return from the snippet. The fields are a subset of the fields normally returned from this API.","default":"''","type":"string","name":"fields"}],"url":"/v1/snippets/:id"},"isReference":true,"order":115,"body":"For response format, see [/snippets](doc:snippets)","excerpt":"Fetches a snippet","slug":"snippets-id-get","type":"endpoint","title":"/snippets/:id"}

get/snippets/:id

Fetches a snippet

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
required
string
Snippet Id

Query Params

includeDeleted:
booleanfalse
(Optional) include snippets marked for deletion when querying
expand:
string
(Optional) Pass `expand=snippetId` to expand `_id` to include id of parent tag. Pass `expand=savedBy` to expand `savedBy` to include id, name, and email of user who last saved this snippet.
fields:
string''
(Optional) Comma separated list of fields to return from the snippet. The fields are a subset of the fields normally returned from this API.

Examples


Result Format


Documentation

For response format, see [/snippets](doc:snippets)

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}