Skip to main content
GET
/
v4
/
snippets
/
{id}
Get a snippet
curl --request GET \
  --url https://api.kit.com/v4/snippets/{id} \
  --header 'X-Kit-Api-Key: <api-key>'
{
  "snippet": {
    "id": 24,
    "name": "Welcome message",
    "snippet_type": "inline",
    "archived": false,
    "key": "welcome-message",
    "created_at": "2023-02-17T11:43:55Z",
    "updated_at": "2023-02-17T11:43:55Z",
    "content": "Hello {{ subscriber.first_name }}",
    "document": {
      "id": 100,
      "value": null,
      "value_html": "content",
      "value_plain": null,
      "version": 1
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.kit.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Kit-Api-Key
string
header
required

Authenticate API requests via an API Key

Path Parameters

id
integer
required

Response

Returns the snippet details

snippet
object
required