> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keephq.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Checkly

> Checkly allows you to receive alerts from Checkly using API endpoints as well as webhooks

## Authentication

This provider requires authentication.

* **checklyApiKey**: Checkly API Key (required: True, sensitive: True)
* **accountId**: Checkly Account ID (required: True, sensitive: True)

Certain scopes may be required to perform specific actions or queries via the provider. Below is a summary of relevant scopes and their use cases:

* **read\_alerts**: Read alerts from Checkly

## In workflows

This provider can't be used as a "step" or "action" in workflows. If you want to use it, please let us know by creating an issue in the [GitHub repository](https://github.com/keephq/keep/issues).

## Connecting Checkly to Keep

1. Open Checkly dashboard and click on your profile picture in the top right corner.

2. Click on `User Settings`.

<Frame width="100" height="200">
  <img height="10" src="https://mintcdn.com/keep-docs/jGkt7cWtIlPdKHEY/images/checkly-provider_1.png?fit=max&auto=format&n=jGkt7cWtIlPdKHEY&q=85&s=7f88c0965fe6e36fbdd05f59fe757b1d" data-path="images/checkly-provider_1.png" />
</Frame>

3. Open the `API Keys` tab and click on `Create API Key` to generate a new API key.

<Frame width="100" height="200">
  <img height="10" src="https://mintcdn.com/keep-docs/jGkt7cWtIlPdKHEY/images/checkly-provider_2.png?fit=max&auto=format&n=jGkt7cWtIlPdKHEY&q=85&s=5414bf38b25cf1ed2ff2f594a49fce22" data-path="images/checkly-provider_2.png" />
</Frame>

4. Copy the API key.

5. Open `General` tab under Account Settings and copy the `Account ID`.

<Frame width="100" height="200">
  <img height="10" src="https://mintcdn.com/keep-docs/jGkt7cWtIlPdKHEY/images/checkly-provider_3.png?fit=max&auto=format&n=jGkt7cWtIlPdKHEY&q=85&s=3c0fa6727d1f5becbef69b328b038fbc" data-path="images/checkly-provider_3.png" />
</Frame>

6. Go to Keep, add Checkly as a provider and enter the API key and Account ID in the respective fields and click on `Connect`.

## Webhooks Integration

1. Open Checkly dashboard and open `Alerts` tab in the left sidebar.

<Frame width="100" height="200">
  <img height="10" src="https://mintcdn.com/keep-docs/jGkt7cWtIlPdKHEY/images/checkly-provider_4.png?fit=max&auto=format&n=jGkt7cWtIlPdKHEY&q=85&s=197b3cc18c448a04a14c240eb7ee725b" data-path="images/checkly-provider_4.png" />
</Frame>

2. Click on `Add more channels`

<Frame width="100" height="200">
  <img height="10" src="https://mintcdn.com/keep-docs/jGkt7cWtIlPdKHEY/images/checkly-provider_5.png?fit=max&auto=format&n=jGkt7cWtIlPdKHEY&q=85&s=6281481df30b1f4668ad742f19feb0b6" data-path="images/checkly-provider_5.png" />
</Frame>

3. Select `Webhook` from the list of available channels.

<Frame width="100" height="200">
  <img height="10" src="https://mintcdn.com/keep-docs/jGkt7cWtIlPdKHEY/images/checkly-provider_6.png?fit=max&auto=format&n=jGkt7cWtIlPdKHEY&q=85&s=f29e7f34db72eec9890769dacb0f83bf" data-path="images/checkly-provider_6.png" />
</Frame>

4. Enter a name for the webhook, select the method as `POST`

5. Enter [https://api.keephq.dev/alerts/event/checkly](https://api.keephq.dev/alerts/event/checkly) as the URL.

6. Copy the below snippet and paste in the `Body` of Webhook. Refer the screenshot below for reference.

```json theme={null}
{
  "event": "{{ALERT_TITLE}}",
  "alert_type": "{{ALERT_TYPE}}",
  "check_name": "{{CHECK_NAME}}",
  "group_name": "{{GROUP_NAME}}",
  "check_id": "{{CHECK_ID}}",
  "check_type": "{{CHECK_TYPE}}",
  "check_result_id": "{{CHECK_RESULT_ID}}",
  "check_error_message": "{{CHECK_ERROR_MESSAGE}}",
  "response_time": "{{RESPONSE_TIME}}",
  "api_check_response_status_code": "{{API_CHECK_RESPONSE_STATUS_CODE}}",
  "api_check_response_status_text": "{{API_CHECK_RESPONSE_STATUS_TEXT}}",
  "run_location": "{{RUN_LOCATION}}",
  "ssl_days_remaining": "{{SSL_DAYS_REMAINING}}",
  "ssl_check_domain": "{{SSL_CHECK_DOMAIN}}",
  "started_at": "{{STARTED_AT}}",
  "tags": "{{TAGS}}",
  "link": "{{RESULT_LINK}}",
  "region": "{{REGION}}",
  "uuid": "{{$UUID}}"
}
```

<Frame width="100" height="200">
  <img height="10" src="https://mintcdn.com/keep-docs/jGkt7cWtIlPdKHEY/images/checkly-provider_7.png?fit=max&auto=format&n=jGkt7cWtIlPdKHEY&q=85&s=8bbe0b3d710cc4ff1196a034888aa578" data-path="images/checkly-provider_7.png" />
</Frame>

7. Go to Headers tab and add a new header with key as `X-API-KEY` and create a new API key in Keep and paste it as the value and save the webhook.

<Frame width="100" height="200">
  <img height="10" src="https://mintcdn.com/keep-docs/jGkt7cWtIlPdKHEY/images/checkly-provider_8.png?fit=max&auto=format&n=jGkt7cWtIlPdKHEY&q=85&s=e2dca97f5c4812ee6d1d794fe6c001b4" data-path="images/checkly-provider_8.png" />
</Frame>

8. Follow the below steps to create a new API key in Keep.

9. Go to Keep dashboard and click on the profile icon in the botton left corner and click `Settings`.

<Frame width="100" height="200">
  <img height="10" src="https://mintcdn.com/keep-docs/jGkt7cWtIlPdKHEY/images/checkly-provider_9.png?fit=max&auto=format&n=jGkt7cWtIlPdKHEY&q=85&s=31ae0b7049a2175b42061dce29e8bc13" data-path="images/checkly-provider_9.png" />
</Frame>

10. Select `Users and Access` tab and then select `API Keys` tab and create a new API key.

<Frame width="100" height="200">
  <img height="10" src="https://mintcdn.com/keep-docs/jGkt7cWtIlPdKHEY/images/checkly-provider_10.png?fit=max&auto=format&n=jGkt7cWtIlPdKHEY&q=85&s=d94a2894b48fa0de2c1ced00758fef1d" data-path="images/checkly-provider_10.png" />
</Frame>

11. Give name and select the role as `webhook` and click on `Create API Key`.

<Frame width="100" height="200">
  <img height="10" src="https://mintcdn.com/keep-docs/jGkt7cWtIlPdKHEY/images/checkly-provider_11.png?fit=max&auto=format&n=jGkt7cWtIlPdKHEY&q=85&s=2a66ae031bca81a70041fc4895e2c3e2" data-path="images/checkly-provider_11.png" />
</Frame>

12. Use the generated API key in the `X-API-KEY` header of the webhook created in Checkly.

## Useful Links

* [Checkly Website](https://www.checklyhq.com/)
