API Documentation
Learn how to connect and integrate with our API.
Authentication
All the API endpoints require an API key sent by the Bearer Authentication method.
Mandatory two-factor authentication (for administrators, all accounts or the members of a team) only applies to signing in to the portal. API keys are not affected and keep working, so treat them like a password.
Authorization: Bearer {api_key}
curl --request GET \
--url 'https://peaknode.de/api/{endpoint}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://peaknode.de/api/{endpoint}' \
--header 'Authorization: Bearer {api_key}' \
Errors
Our API uses conventional HTTP status codes to indicate the success or failure of a request.
{
"errors": [
{
"title": "You do not have access to the API.",
"status": 401
}
]
}
200 Request completed successfully
400 Bad request - Required parameters are missing or invalid
401 Unauthorized - API key is missing or invalid
403 Forbidden - The limit of your plan has been reached
404 The requested resource was not found
429 Too many requests - Rate limit exceeded
500 Internal server error - this means there is a problem on our end
All API endpoint results work with the UTC timezone unless specified otherwise.
User
Uptime monitors
DNS monitors
Server monitors
Heartbeats
Domain names
Notification handlers
Status pages
Status page statistics
Incidents
Maintenance windows
Projects
Account payments
Account logs
Change log
Prometheus export