curl --request POST \
--url https://api.getfernand.com/snippets \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "Welcome Message",
"actions": [
{
"name": "status",
"data": {
"status": "closed"
}
},
{
"name": "reply",
"data": {
"content": "Thank you for contacting us!"
}
}
]
}
'{
"id": 42,
"title": "Welcome Message",
"created": "2024-01-15T10:30:00Z",
"applied_count": 15,
"categories": [
1,
3
],
"actions": [
{
"id": 1,
"name": "status",
"data": {
"status": "closed"
},
"sort": 0
}
],
"shortcut": "welcome",
"last_applied_at": "2023-11-07T05:31:56Z"
}curl --request POST \
--url https://api.getfernand.com/snippets \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "Welcome Message",
"actions": [
{
"name": "status",
"data": {
"status": "closed"
}
},
{
"name": "reply",
"data": {
"content": "Thank you for contacting us!"
}
}
]
}
'{
"id": 42,
"title": "Welcome Message",
"created": "2024-01-15T10:30:00Z",
"applied_count": 15,
"categories": [
1,
3
],
"actions": [
{
"id": 1,
"name": "status",
"data": {
"status": "closed"
},
"sort": 0
}
],
"shortcut": "welcome",
"last_applied_at": "2023-11-07T05:31:56Z"
}Title of the snippet (required).
50"Welcome Message"
Array of actions to apply when snippet is used (1-10 actions required).
1 - 10 elementsShow child attributes
[
{
"name": "status",
"data": { "status": "closed" }
},
{
"name": "reply",
"data": { "content": "Thank you for contacting us!" }
}
]Optional keyboard shortcut (lowercase, numbers, and dashes only).
40"welcome"
Array of category IDs to assign this snippet to.
[1, 3]Snippet created successfully.
Unique identifier for the snippet
42
Title of the snippet
250"Welcome Message"
Timestamp when the snippet was created (UTC)
"2024-01-15T10:30:00Z"
Number of times this snippet has been applied
15
Array of category IDs this snippet belongs to (0 represents root category)
[1, 3]Array of actions to be applied when the snippet is used
Show child attributes
[
{
"id": 1,
"name": "status",
"data": { "status": "closed" },
"sort": 0
}
]Optional keyboard shortcut to quickly insert the snippet (lowercase, numbers, and dashes only)
40"welcome"
Timestamp when the snippet was last applied to a conversation (UTC)
Was this page helpful?