Link Hider

Link Hider API

Utilities

Mask any link behind a tidy opentools.ca/link address so it never spoils the surprise. Reveal one you were sent, and track views on the ones you save.

Authentication

All API requests require a valid API key passed in the Authorization header as a Bearer token.

Rate Limit

20 requests per minute

Endpoints

1 endpoint available

Overview

Create a masked link: a short https://opentools.ca/link/<slug> address that redirects to the URL you give it. Links made through the API belong to the account that owns the API key, so they appear under Your links on the Link Hider page, with a view count, and can be turned off or deleted there.

Notes

  • Only http and https URLs are accepted. If you leave off the scheme, https:// is added.
  • You cannot mask a link that is already an OpenTools masked link.
  • Masking is not privacy: anyone with the masked link can see its destination with the Reveal a link tab, and links can be reported for abuse.
  • Each call creates a new link, even for a URL you have masked before.

Endpoints

POST
https://opentools.ca/api/v1/tools/link-hider
Create a masked link owned by your account.

Request Body

Content-Type: application/json

ParameterTypeRequiredDescription
url
string
Required
Destination URL (http or https), up to 2048 characters.

Response Example

{
  "success": true,
  "slug": "aB3x9Kq",
  "maskedUrl": "https://opentools.ca/link/aB3x9Kq",
  "destinationUrl": "https://example.com/some/long/page?ref=newsletter",
  "isActive": true,
  "createdAt": "2026-11-25T15:04:05.000Z"
}

Error Codes

400
Missing or invalid URL, a non-http(s) scheme, or an OpenTools masked link
401
Missing or invalid API key
403
API key inactive, expired, or not allowed from this IP
429
Rate limit exceeded
500
Internal server error

Code Examples

curl -X POST https://opentools.ca/api/v1/tools/link-hider \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/some/long/page"}'

Ready to get started?

Create an API key to start using the Link Hider API.

Rather use it in your browser? Open the Link Hider