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
| Feature | Description |
|---|---|
| Short links | Create, update, delete links with custom slugs, routing rules, and protection |
| Custom domains | Add and verify your own domains for branded links |
| QR codes | Generate customizable QR codes with logos and branding |
| Analytics | Access click data by geography, device, browser, and UTM parameters |
| Folders & tags | Organize links programmatically |
| Webhooks | Receive real-time notifications for events |
| Files | Upload images for QR codes and social previews |
Getting started
Create an API key
Generate an API key from the H0p dashboard under Developer Tools > API Keys.
Ready to start? Follow the Quickstart guide to make your first API call.
Authentication
All API requests require an API key in thex-api-key header:
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
AllPOST, 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:HTTP status codes
| Code | Description |
|---|---|
200 | Success - Request completed |
201 | Created - Resource created successfully |
400 | Bad Request - Invalid parameters or request body |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - Insufficient permissions or plan limit reached |
404 | Not Found - Resource doesn’t exist |
409 | Conflict - Resource already exists (e.g., duplicate slug) |
429 | Too Many Requests - Rate limit exceeded |
500 | Server Error - Something went wrong on our end |
Common error codes
| Code | Description |
|---|---|
UNAUTHORIZED | Invalid or missing API key |
FORBIDDEN | You don’t have permission for this action |
NOT_FOUND | The requested resource doesn’t exist |
ALREADY_EXIST | A resource with this identifier already exists |
PLAN_LIMIT_REACHED | Your plan limit has been exceeded |
FEATURE_NOT_AVAILABLE | This feature requires a Premium subscription |
ACTION_NOT_ALLOWED | Your API key doesn’t have this permission |
VALIDATION_ERROR | Request body validation failed |
Rate limiting
API requests are rate-limited to ensure fair usage:| Limit | Value |
|---|---|
| Requests per second | 5 |
| Requests per minute | 100 |
429 Too Many Requests response:
Pagination
List endpoints support pagination withpage and limit parameters:
pagestarts at 0limitdefaults 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.