Manage your links programmatically using API keys. Create, update, and delete links from your applications.
All API requests require authentication using an API key. Include your API key in the request header:
x-api-key: your-api-key-here
Note: You can generate API keys from the dashboard by selecting a link and navigating to the API Keys section.
/linksCreate a new link with a name and destination URL.
{
"name": "string",
"destination": "string"
}curl -X POST https://api.qrhopr.com/links \
-H "Content-Type: application/json" \
-H "x-api-key: your-api-key-here" \
-d '{
"name": "my-link",
"destination": "https://example.com"
}'{
"id": "60d5ec49f1b2c72b8c8e4f3a",
"name": "my-link",
"destination": "https://example.com",
"userId": "60d5ec49f1b2c72b8c8e4f3b",
"createdAt": "2025-11-15T10:30:00.000Z",
"updatedAt": "2025-11-15T10:30:00.000Z"
}/links/:linkIdUpdate the destination URL of an existing link.
{
"destination": "string"
}curl -X PATCH https://api.qrhopr.com/links/60d5ec49f1b2c72b8c8e4f3a \
-H "Content-Type: application/json" \
-H "x-api-key: your-api-key-here" \
-d '{
"destination": "https://new-destination.com"
}'{
"id": "60d5ec49f1b2c72b8c8e4f3a",
"name": "my-link",
"destination": "https://new-destination.com",
"userId": "60d5ec49f1b2c72b8c8e4f3b",
"createdAt": "2025-11-15T10:30:00.000Z",
"updatedAt": "2025-11-15T11:45:00.000Z"
}/links/:linkIdDelete a link permanently. This action cannot be undone.
curl -X DELETE https://api.qrhopr.com/links/60d5ec49f1b2c72b8c8e4f3a \ -H "x-api-key: your-api-key-here"
{
"message": "Link deleted successfully"
}All API requests should be made to:
https://api.qrhopr.com
The API returns standard HTTP status codes:
200 - Success201 - Created400 - Bad Request (invalid parameters)401 - Unauthorized (invalid API key)404 - Not Found429 - Too Many Requests (rate limit exceeded)500 - Internal Server ErrorAPI key authentication allows for programmatic access to your links. Please use responsibly and avoid excessive requests.