The project’s snippets
GET
/v1/snippets
const url = 'https://beta-api.plune.ai/v1/snippets';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://beta-api.plune.ai/v1/snippets \ --header 'Authorization: Bearer <token>'Every snippet, ordered case-insensitively by title. The case form’s «Insert snippet» menu is this list; «Start from» on a new case is the ones with template: true.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”The snippets
Media type application/json
object
snippets
required
Array<object>
object
id
required
string format: uuid
projectId
required
string
title
required
Unique within the project — the name in the «Insert snippet» menu.
string
text
required
Markdown, up to 16 384 bytes. Inserted into a case as a copy: editing the snippet later changes no case.
string
template
required
Listed under «Start from» on a new case when true.
boolean
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example
{ "snippets": [ { "id": "6f1c2b3a-0000-4000-8000-0000000000f2", "projectId": "u-shop::default", "title": "Refund — checklist", "text": "## Steps\n* Open the order and choose “Refund”.\n* Enter the amount and confirm.\n\n## Expected result\nThe refund is listed with the entered amount.", "template": true, "createdAt": "2026-09-16T09:12:04.151Z", "updatedAt": "2026-09-16T09:12:04.151Z" } ]}No / invalid token or session