---
updatedAt: 2025-06-09T22:08:17.000Z
agentTools:
  projectIndex: https://streak.readme.io/llms.txt
---

# Get a snippet

This call lets you get a single [snippet](reference#snippets).

> 🚧 Authorization
>
> Make sure to include your authorization in any request you make on your own.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "streak-v1",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.streak.com/api/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/snippets/{key}": {
      "get": {
        "summary": "Get a snippet",
        "description": "This call lets you get a single [snippet](reference#snippets).",
        "operationId": "get-a-specific-snippet",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "description": "The key of the snippet you're requesting",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "[{\n  \"userKey\": \"agptYWlhgBDA\",\n  \"creationDate\": 1372272713606,\n  \"partOfPipeline\": false,\n  \"snippetText\": {\n    \"value\": \"bar\"\n  },\n  \"snippetName\": \"Foo\",\n  \"snippetType\": \"HTML\",\n  \"snippetKey\": \"agptYWdBjGAQw\",\n  \"key\": \"agptYWdBjGAQw\"\n}] "
                  }
                },
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "userKey": {
                        "type": "string",
                        "example": "agptYWlhgBDA"
                      },
                      "creationDate": {
                        "type": "integer",
                        "example": 1372272713606,
                        "default": 0
                      },
                      "partOfPipeline": {
                        "type": "boolean",
                        "example": false,
                        "default": true
                      },
                      "snippetText": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string",
                            "example": "bar"
                          }
                        }
                      },
                      "snippetName": {
                        "type": "string",
                        "example": "Foo"
                      },
                      "snippetType": {
                        "type": "string",
                        "example": "HTML"
                      },
                      "snippetKey": {
                        "type": "string",
                        "example": "agptYWdBjGAQw"
                      },
                      "key": {
                        "type": "string",
                        "example": "agptYWdBjGAQw"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```