Snippets

Retrieve a snippet

Changed on

Show details of a specific snippet.

get/v1/snippets/{id}

Request

Path parameters

idinteger required

Headers

x-checkly-accountstring

Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

Response

Successful

idnumber
namestring

The snippet name.

scriptstring

Your Node.js code that interacts with the API check lifecycle, or functions as a partial for browser checks.

created_atstring date-time
updated_atstring date-time nullable

Example response

{
  "id": 1,
  "name": "Snippet",
  "script": "request.url = request.url + '/extra'"
}

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • warning

      for the path request parameter id, the exclusiveMinimum was set to true

    • warning

      for the path request parameter id, the min was set to 0.00

    • info

      added the non-success response with the status