Skip to content

Authentication

The SIA Checker API uses API key–based authentication. All requests must include a valid API key in the Authorization header using the Bearer token scheme.

Authorization header

Provide your API key in the following format:

HTTP
Authorization: Bearer YOUR_API_KEY

Requests without a valid API key are rejected.

Examples

cURL

Bash
curl https://api.siachecker.co.uk/v1/quota/usage \
  -H "Authorization: Bearer YOUR_API_KEY"

JavaScript

JavaScript
await fetch('https://api.siachecker.co.uk/v1/quota/usage', {
  headers: {
    Authorization: 'Bearer YOUR_API_KEY',
  },
})

Python

Python
import requests

requests.get(
    "https://api.siachecker.co.uk/v1/quota/usage",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
)

Error responses

401 Unauthorized

Returned when the request is missing an API key or the provided key is invalid or expired.

JSON
{
  "code": "UNAUTHORIZED",
  "message": "Invalid or missing API key"
}

Notes

  • API keys identify and authenticate the calling application
  • Keys must be kept secret and never exposed in client-side code
  • Each request is authenticated independently