Skip to navigation

API reference

Every endpoint of the Divertly REST API.
View as Markdown

The Divertly API lets you do everything the dashboard does from your own code: add domains, create routes, add targets, change weights, generate QR codes, and manage your organization.

Basics

Base URLhttps://api.divert.ly/v1
AuthenticationAuthorization: Key <base64(keyId:secret)>
FormatJSON requests and responses

Successful responses are wrapped in a body field. List endpoints that paginate also return a meta block, and accept page (1-based) and size (1–256, default 20). Errors return { "error": "<message>", "meta": { "errorCode": "<code>" } }.

curl https://api.divert.ly/v1/whoami \
-H "Authorization: Key $CREDENTIAL"

Where to go next

Explore the endpoints

The endpoints below are grouped by resource. Use the interactive explorer on any endpoint page to try a request with your own API key.

Official SDKs for Python, JavaScript, and Go are coming soon. Until then, the API is plain HTTP and works with any client. See SDKs.