API Introduction
Create programmatic interactions with the Phare API.
Welcome, this API allows you to interact programmatically with the Phare platform, enabling seamless integration and automation of almost everything that can be done in your control panel.
Create an API key
To access the Phare API, you will need to create an API key with the right accesses, this can be done on your control panel.
While creating an API key, you will be able to choose an access scope (Read / Write) for each Phare product as well as access to the resources of the Phare platform. You can find the list of available endpoints in the left navigation of this documentation.
You can create as many keys as necessary to fit your use case.
Authentication
The Phare API uses Bearer Token Authentication to secure access to its endpoints. To authenticate your requests, include the API key in the Authorization header of your HTTP requests. The format for this header is as follows:
Authorization: Bearer YOUR_API_KEY
Here’s an example of a cURL command to list the monitors in your project using your API key:
curl \
-X GET "https://api.phare.io/uptime/monitors" \
-H "Authorization: Bearer YOUR_API_KEY"
If you suspect that your API key has been compromised, revoke it immediately through your control panel and generate a new one.
Rate limiting
Access to the API is currently rate limited to 100 calls per minute across your organization. This means that all the API keys in your organization will share the same rate limiting.
If you are missing an API endpoint or need a custom rate limit for your organization, feel free to contact us, we’ll be happy to find a solution for your use case.
Was this page helpful?