# APImetrics

[<mark style="color:blue;">APImetrics</mark>](https://apimetrics.io/) lets you make and run API calls or sequences of API calls (workflows) from external, remote cloud locations using exactly the same security configurations as a typical end user would use.

Route detailed alerts from APImetrics to the right users in Squadcast.

### Using APImetrics as an Alert Source

1. Navigate to **Services** -> **Service Overview** -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click **Add**.

<figure><img src="/files/jnyZrG28PsQGcEISI05r" alt="Integration of API metrics as an alert source in squadcast"><figcaption></figcaption></figure>

2\. Select **APImetrics.** Copy the displayed **Webhook URL** to [configure](#create-a-squadcast-webhook-alert-in-apimetrics) it within **APImetrics.** Finish by clicking **Add Alert Source** -> **Done.**

<figure><img src="/files/K8xBzdqjmw8ICq4A9g5c" alt="Webhook URL configuration within APImetrics in Squadcast"><figcaption></figcaption></figure>

{% hint style="warning" %}
**Important:**

When an alert source turns Active, it’ll show up under Configured Alert Sources, you can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source. An Alert Source is active if there is a recorded incident via that Alert Source for the Service.
{% endhint %}

## Create a Squadcast Webhook Alert in APImetrics

**(1)** Login to your APImetrics dashboard. Under the **Alerts & Webhooks** tab, click on **+ Add new action**

<figure><img src="/files/Ho0WhZMh2XPa7BKH2on0" alt="adding new section under alert &#x26; webhooks in APImetrics dashboard"><figcaption></figcaption></figure>

**(2)** Now, put in the **Name** and select **Type** as **Generic**. Paste the previously copied Squadcast Webhook URL in the **URL** place holder. Toggle the swtich **On** for all four Trigger alerts : **Pass, Slow, Warning & Fail**. Specify the remanining details accordingly and click on **Save**

<figure><img src="/files/6qC2QskSuibNwAm3g3z7" alt="Using Squadcast webhook URL with switching on all trigger alerts"><figcaption></figcaption></figure>

That's it, you are good to go! Your APImetrics integration is now complete.

Whenever APImetrics fires an alert, an incident will be created in Squadcast for it. Also, when an alert is cleared in APImetrics, the corresponding incident gets **auto-resolved** in Squadcast.

*Have any questions?* [*Ask the community*](https://community.squadcast.com/view/home)*.*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.squadcast.com/integrations/alert-source-integrations-native/apimetrics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
