Skip to main content
The H0p API gives you full programmatic control over your short links, custom domains, QR codes, and analytics. Automate link creation from your CMS, pull click data into your dashboards, or let AI agents manage your campaigns through a clean RESTful interface.

What you can build

Marketing automation

Create campaign-specific links automatically from your marketing tools.

CMS integration

Generate short links when content is published.

Analytics dashboards

Pull click data into your BI tools for custom reporting.

AI workflows

Let AI agents create and manage links via MCP.

API capabilities

Getting started

1

Create an API key

Generate an API key from the H0p dashboard under Developer Tools > API Keys.
2

Make your first request

Test your key by listing your domains or creating a short link.
3

Build your integration

Connect H0p to your tools using our REST endpoints or MCP server.
Ready to start? Follow the Quickstart guide to make your first API call.

Authentication

All API requests require an API key in the x-api-key header:
API keys are scoped to a specific organization and have configurable permissions. See the Authentication guide for details on key types and permissions.
Keep your API key secure. Never expose it in client-side code or public repositories.

Base URL

All API requests should be made to:

API documentation

The H0p API is documented using OpenAPI 3.0. You can:
  • Browse the interactive API reference in this documentation
  • Access the OpenAPI spec directly at https://api.h0p.co/doc
  • View the Swagger UI at https://api.h0p.co/ui

Request format

All POST, PATCH, and PUT requests must include a JSON body with the Content-Type: application/json header.

Response format

Successful responses return JSON with the requested data:
Error responses include a code and message:

HTTP status codes

Common error codes

Rate limiting

API requests are rate-limited to ensure fair usage: When you exceed the rate limit, you receive a 429 Too Many Requests response:
Implement exponential backoff in your integration:

Pagination

List endpoints support pagination with page and limit parameters:
Response includes pagination metadata:
  • page starts at 0
  • limit defaults to 10, maximum 50

SDKs and tools

While we don’t offer official SDKs yet, you can:
  • Use the OpenAPI spec to generate clients in any language
  • Connect via MCP for AI tool integration
  • Use standard HTTP libraries in your preferred language

Support

Contact support

Reach out for technical assistance.

Dashboard

Manage your links, domains, and API keys.