Skip to main content

REST API v1 Overview

The okl.ink REST API allows developers to automate page generation, link management, theme configuration, and analytics retrieval.

Base URL


Authentication

All v1 API requests must include a Bearer token in the Authorization header or an X-API-Key header:

Token Scopes

API tokens enforce granular permissions:

Standard Error Response

When an error occurs, the API returns standard HTTP status codes and a JSON error object:

HTTP Status Codes