Skip to Content
GuidesAPI Reference
Overview

API Reference

The Brevr REST API lets you create and manage short links programmatically — from your CMS, deployment pipeline, or any system that can make an HTTP request.

Base URL

https://app.brevr.io/api/v1

All endpoints are relative to this base URL.

Authentication

Brevr uses API keys to authenticate requests. Pass your key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Generate API keys from your workspace Settings → API Keys. Keys are shown once at creation — store them in a secrets manager or environment variable.

To revoke a key, delete it from Settings → API Keys. It stops working immediately.

Rate Limits

Requests are rate-limited per workspace. The limit depends on your plan:

PlanRequests per minute
Free100
Pro600
Business1,200
Enterprise3,000

When you exceed the limit, the API returns 429 Too Many Requests. Retry after the window resets.

Rate limit headers are included on every response:

HeaderDescription
X-RateLimit-LimitMaximum requests allowed in the current window
X-RateLimit-RemainingRequests remaining in the current window
X-RateLimit-ResetUnix timestamp when the window resets

Response Format

All responses are JSON. Successful requests return 200 OK or 201 Created.

Success

{ "link": { "id": "clx1234...", "shortCode": "my-link", ... } }

Errors

{ "error": "A human-readable description of what went wrong." }

Common status codes:

StatusMeaning
400 Bad RequestInvalid request body or parameters
401 UnauthorizedMissing or invalid API key
403 ForbiddenValid key but insufficient permissions
404 Not FoundResource does not exist in your workspace
409 ConflictDuplicate short code or slug
422 Unprocessable EntityValidation failed (e.g. invalid URL format)
429 Too Many RequestsRate limit exceeded
500 Internal Server ErrorSomething went wrong on our end

Workspace Scoping

All resources (links, tags, domains) are scoped to the workspace the API key belongs to. You cannot access resources from other workspaces with a single key.

What’s Available via API

The public API currently covers link management. Dashboard features like analytics, custom domains, team management, and billing are available only through the web interface.

Last updated on