canonical: https://jentic.com/apis/tny.app/tny

# Tny App TNY API

URL shortening and link management platform with GraphQL API for creating and managing short links. The API exposes 11 endpoints secured with bearer authentication.

## For AI agents

Programmatically create short link, list links. Covers 11 operations with bearer authentication.

## Scope

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

## Capabilities

- Create short link
- List links
- Get link
- Update link
- Delete link

## Use cases

### Developer Tools Operations

Use the TNY API to perform developer tools operations programmatically. The API provides 11 endpoints covering core functionality including create short link, list links, get link.

Example prompt: Call POST /links to create short link

### Automated Links Management

Automate links operations by combining multiple TNY API endpoints. Agents can list links and then get link in a single workflow.

Example prompt: Call GET /links to list links, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call TNY 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 bearer tokens manually.

Example prompt: Search Jentic for 'create short link', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/links` | Create short link |
| GET | `/links` | List links |
| GET | `/links/{linkId}` | Get link |
| PUT | `/links/{linkId}` | Update link |
| DELETE | `/links/{linkId}` | Delete link |
| GET | `/links/{linkId}/analytics` | Get link analytics |
| GET | `/analytics/summary` | Get analytics summary |
| POST | `/domains` | Add custom domain |

## Key resources

- **Links** — Link management
- **Analytics** — Link analytics
- **Domains** — Custom domain management

## Why Jentic

- **Setup:** Wiring the TNY API by hand means handling its bearer token, working through its link and domain endpoints, and managing retries yourself. Through Jentic you install once, import TNY from the API Directory, store the token once, and your agent calls it.
- **Permission scoping:** TNY puts the link id in the URL path (`/links/{linkId}`), so a rule can pin your agent to one link: it can read that link and its analytics and nothing else. You choose the operations it may call, so a destructive one like link deletion is not included unless you add it.
- **Credential handling:** Your TNY token 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 a link's analytics', and Jentic returns the matching TNY operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Github** — Alternative developer tools API
- **Gitlab** — Alternative developer tools API

## FAQ

### What authentication does the TNY API use?

The TNY API uses a Bearer token 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 short link with the TNY API?

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

### What are the rate limits for the TNY 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 short link through Jentic?

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

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

The TNY API exposes 11 endpoints covering links, analytics, domains operations.

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

Yes. Because you run Jentic One yourself, your own rules decide which TNY operations and credentials the agent may use, and TNY puts the link id in the URL path (`/links/{linkId}`), so a rule can pin the agent to a single link. You can allow it to read that link and its analytics through GET `/links/{linkId}` and GET `/links/{linkId}/analytics` while leaving everything else out. A destructive operation like DELETE `/links/{linkId}` is only available to the agent if you explicitly grant it.
