Checkly Snippets API
The Snippets API from Checkly — 5 operation(s) for snippets.
The Snippets API from Checkly — 5 operation(s) for snippets.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/checkly-snippets-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
openapi: 3.2.0
info:
title: Checkly Public Snippets API
version: v1
description: These are the docs for the newly released Checkly Public API.<br />If you have any questions, please do not hesitate to get in touch with us.
servers:
- url: https://api.checklyhq.com
security:
- Bearer: []
tags:
- name: Snippets
paths:
/v1/snippets:
get:
summary: List all snippets
operationId: getV1Snippets
description: Lists all current snippets in your account.
tags:
- Snippets
responses:
'200':
description: Successful
content:
application/json:
schema:
$ref: '#/components/schemas/SnippetList'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedError'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsError'
parameters:
- schema:
type: integer
minimum: 1
maximum: 100
default: 10
description: Limit the number of results
required: false
description: Limit the number of results
name: limit
in: query
- schema:
type: number
default: 1
description: Page number
exclusiveMinimum: 0
required: false
description: Page number
name: page
in: query
- schema:
type: string
x-format:
guid: true
description: Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
required: false
description: Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
name: x-checkly-account
in: header
post:
summary: Create a snippet
operationId: postV1Snippets
description: Creates a new snippet.
tags:
- Snippets
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/Snippet'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedError'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsError'
parameters:
- schema:
type: string
x-format:
guid: true
description: Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
required: false
description: Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
name: x-checkly-account
in: header
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SnippetCreate'
/v1/snippets/{id}:
delete:
summary: Delete a snippet
operationId: deleteV1SnippetsId
description: Permanently removes a snippet.
tags:
- Snippets
responses:
'204':
description: No Content
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedError'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsError'
parameters:
- schema:
type: integer
exclusiveMinimum: 0
required: true
name: id
in: path
- schema:
type: string
x-format:
guid: true
description: Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
required: false
description: Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
name: x-checkly-account
in: header
get:
summary: Retrieve a snippet
operationId: getV1SnippetsId
description: Show details of a specific snippet.
tags:
- Snippets
responses:
'200':
description: Successful
content:
application/json:
schema:
$ref: '#/components/schemas/Snippet'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedError'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundError'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsError'
parameters:
- schema:
type: integer
exclusiveMinimum: 0
required: true
name: id
in: path
- schema:
type: string
x-format:
guid: true
description: Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
required: false
description: Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
name: x-checkly-account
in: header
put:
summary: Update a snippet
operationId: putV1SnippetsId
description: Updates a snippet.
tags:
- Snippets
responses:
'200':
description: Successful
content:
application/json:
schema:
$ref: '#/components/schemas/Snippet'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedError'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundError'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsError'
parameters:
- schema:
type: integer
exclusiveMinimum: 0
required: true
name: id
in: path
- schema:
type: string
x-format:
guid: true
description: Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
required: false
description: Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
name: x-checkly-account
in: header
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SnippetCreate'
components:
schemas:
attributes:
type: object
error:
type: string
enum:
- Unauthorized
ForbiddenError:
type: object
properties:
statusCode:
type: number
enum:
- 403
error:
$ref: '#/components/schemas/Model1'
message:
type: string
example: Forbidden
required:
- statusCode
- error
Model4:
type: string
enum:
- Not Found
Snippet:
type: object
properties:
id:
type: number
example: 1
name:
type: string
description: The snippet name.
example: Snippet
script:
type: string
description: Your Node.js code that interacts with the API check lifecycle, or functions as a partial for browser checks.
example: request.url = request.url + '/extra'
created_at:
type: string
format: date-time
updated_at:
type:
- string
- 'null'
format: date-time
UnauthorizedError:
type: object
properties:
statusCode:
type: number
enum:
- 401
error:
$ref: '#/components/schemas/error'
message:
type: string
example: Bad Token
attributes:
$ref: '#/components/schemas/attributes'
required:
- statusCode
- error
ApiError:
type: object
properties:
statusCode:
type: number
error:
type: string
message:
type: string
required:
- statusCode
- error
- message
Model1:
type: string
enum:
- Forbidden
SnippetCreate:
type: object
properties:
name:
type: string
minLength: 1
description: The snippet name.
example: Snippet
script:
type: string
minLength: 1
description: Your Node.js code that interacts with the API check lifecycle, or functions as a partial for browser checks.
example: request.url = request.url + '/extra'
required:
- name
- script
SnippetList:
type: array
items:
$ref: '#/components/schemas/Snippet'
Model2:
type: string
enum:
- Too Many Requests
TooManyRequestsError:
type: object
properties:
statusCode:
type: number
enum:
- 429
error:
$ref: '#/components/schemas/Model2'
message:
type: string
example: Too Many Requests
attributes:
$ref: '#/components/schemas/attributes'
required:
- statusCode
- error
NotFoundError:
type: object
properties:
statusCode:
type: number
enum:
- 404
error:
$ref: '#/components/schemas/Model4'
message:
type: string
example: Not Found
required:
- statusCode
- error
securitySchemes:
Bearer:
type: http
scheme: bearer
bearerFormat: Bearer
description: 'The Checkly Public API uses API keys to authenticate requests. You can get the API Key <a href="https://app.checklyhq.com/settings/user/api-keys" target="_blank">here</a>.</br>Your API key is like a password: <br>keep it secure!</br></br>Authentication to the API is performed using the Bearer auth method in the Authorization header and using the account ID.</br></br>For example, set <b>Authorization</b> header while using cURL: <code>curl -H "Authorization: Bearer [apiKey]" "X-Checkly-Account: [accountId]"</code></br>'