How to archive or unarchive a TinyURL using TinyURL API?

It is possible to archive or unarchive TinyURLs on your account using PATCH /archive endpoint.

All API requests need an authentication token so the first step is to create one. For this particular request, the token must have API permission for “Archive TinyURL”. Please refer to “How to create or modify an API token with specific permissions?” if you want guidance on how to create API token with specific permissions

Once authenticated, all you need with the PATCH /archive endpoint is a Request Body that contains a domain and alias as input variables so a link can be archived or unarchived.

TinyURL Open API - Patch archive (1).png

If all goes well, you should get a successful server response with Code 200.

TinyURL Open API - Patch archive Response (1).png

Please enter a valid email address.

Signup for a TinyURL premium account

Unlock access to full analytics to your TinyURLs, use your own branded domain, and more.

View Details

Create an Account

Create an account to enjoy easy link shortening, customized TinyURLs, and full shortened URL history.

Sign Up