Skip to main content

Overview

This guide explains how to authenticate with our API using API keys. This authentication method is designed for server-to-server communication where your application needs to access API resources on its own behalf.

Prerequisites

Before you begin, ensure you have:
Important: Make sure to keep your API keys in a safe place since they are sensitive information. Never commit API keys to version control, share them publicly, or share them with anyone.

Examples

Making API requests

curl --request GET \
  --url https://api.engrate.io/v1/power-tariffs/SE/lat/57.727011/lon/14.155703 \
  --header 'authorization: $API_KEY'
  --header "Content-Type: application/json"