canonical: https://jentic.com/apis/tinyurl.com/tinyurl

# TinyURL API

The TinyURL API allows you to programmatically shorten long URLs, manage shortened links, and retrieve analytics data. The API exposes 5 endpoints secured with apiKey authentication.

## For AI agents

Programmatically create a shortened url, get url details by alias. Covers 5 operations with apiKey authentication.

## Scope

Does not handle payments, communications, or crm - use for analytics only.

## Capabilities

- Create a shortened URL
- Get URL details by alias
- Update a shortened URL
- Delete a shortened URL
- Monitor TinyURL API operational status and events

## Use cases

### Analytics Operations

Use the TinyURL API to perform analytics operations programmatically. The API provides 5 endpoints covering core functionality including create a shortened url, get url details by alias, update a shortened url.

Example prompt: Call POST /create to create a shortened url

### Automated URLs Management

Automate urls operations by combining multiple TinyURL API endpoints. Agents can get url details by alias and then update a shortened url in a single workflow.

Example prompt: Call GET /alias/{alias} to get url details by alias, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call TinyURL API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle apiKey tokens manually.

Example prompt: Search Jentic for 'create a shortened url', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | /create | Create a shortened URL |
| GET | /alias/{alias} | Get URL details by alias |
| PATCH | /alias/{alias} | Update a shortened URL |
| DELETE | /alias/{alias} | Delete a shortened URL |
| GET | /analytics | Get click analytics |

## Key resources

- **URLs** — URL shortening and management operations
- **Analytics** — Link analytics and click tracking

## Why Jentic

- **Setup:** Wiring the TinyURL API by hand means setting its Authorization API key, working through its create and alias endpoints, and handling retries yourself. Through Jentic you install once, import TinyURL from the API Directory, store the API key once, and your agent calls it.
- **Permission scoping:** TinyURL puts the alias in the URL path (/alias/{alias}), so a rule can pin your agent to one alias: it can read and update that alias and nothing else. You choose the operations it may call, so a destructive one like alias deletion is not included unless you add it.
- **Credential handling:** Your TinyURL API key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'create a short link' or 'read link analytics', and Jentic returns the matching TinyURL operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Mixpanel** — Alternative analytics API
- **Amplitude** — Alternative analytics API
- **Segment** — Complementary analytics API
- **Pendo** — Complementary analytics API

## FAQ

### What authentication does the TinyURL API use?

The TinyURL API uses an API key passed in the `Authorization` header. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I create a shortened url with the TinyURL API?

Yes. Use the POST /create endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the TinyURL API?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I create a shortened url through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'create a shortened url'. Jentic returns the matching TinyURL API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the TinyURL API have?

The TinyURL API exposes 5 endpoints covering urls, analytics operations.

### Can I limit what my agent is allowed to do with the TinyURL API?

Yes. Jentic One is self-hosted, so you write the rules that decide which TinyURL operations and credentials your agent can use. You can grant only the calls it needs, such as creating a short link with POST /create and reading a link's details or click analytics, while leaving destructive operations like deleting an alias out entirely. Because the alias sits in the URL path at /alias/{alias}, you can also pin the agent to a single alias so it reads and updates that one link and nothing else.
