canonical: https://jentic.com/apis/flyn.to/flyn

# Flyn To Flyn API

The Flyn API creates and manages short links, QR codes, and custom branded domains, then tracks every click and conversion that flows through them. It records conversions through dedicated ingest and postback endpoints, attaches retargeting pixels to links, and fires webhooks when link events occur. Bulk link creation, per-link click reporting, and domain verification support campaigns that span many destinations.

## For AI agents

Create and manage short links, QR codes, and branded domains, then pull per-link click and conversion reports. Record conversions, attach retargeting pixels, and register webhooks for link events.

## Scope

Does not run paid ad campaigns, send emails, or manage a CRM. Use for short link creation, QR codes, and click and conversion tracking only.

## Capabilities

- Shorten destination URLs into trackable short links, including bulk creation of many links to one destination
- Generate a QR code for a link or encode arbitrary content as a QR image
- Add, update, and verify custom branded domains for short links
- Record conversions through the conversion and postback endpoints and pull a conversion report
- Attach, edit, and remove retargeting pixels on your links
- Register webhooks for link events and send a test delivery
- List the click activity for an individual short link

## Use cases

### Agent-Driven Link Automation

An AI agent connected through Jentic can turn any destination into a branded short link, generate its QR code, and then report on the clicks and conversions the link drives, without a developer wiring the Flyn API by hand. The agent discovers the right operation by intent and calls it with a stored credential.

Example prompt: Shorten a campaign landing page URL, generate a QR code for the new link, and return the short URL and QR image

### Campaign Link Tracking

Marketing teams shorten every campaign URL through Flyn, attach retargeting pixels, and measure which links drive conversions. Flyn records conversions through its ingest and postback endpoints and returns a conversion report, so spend can be attributed to specific links.

Example prompt: Create a short link for a promotion, attach a retargeting pixel, and read the conversion report after the campaign

### Branded Domain Short Links

Businesses serve short links from their own verified domain instead of a generic shortener host. Flyn adds a custom domain, verifies it, and issues short links on that domain, keeping branding consistent across QR codes and shared links.

Example prompt: Add a custom domain, trigger its verification, and create a branded short link once the domain is verified

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/api/links` | Create a short link |
| GET | `/api/links/{id}/clicks` | List clicks for a link |
| POST | `/api/shorten` | Quick shorten a URL |
| POST | `/api/qr` | Encode content as a QR code |
| POST | `/api/domains/add` | Add a custom domain |
| GET | `/api/conversions` | Get the conversion report |
| POST | `/api/webhooks` | Create a webhook |

## Key resources

- **Links** — Create, list, update, and remove short links, bulk-create many links to one destination, and read per-link click activity
- **QR codes** — Generate a QR code for a link or encode arbitrary content as a QR image
- **Custom domains** — Add, update, verify, and remove branded domains for short links
- **Conversions** — Record conversions through the conversion and postback endpoints and pull a conversion report
- **Pixels** — Save, edit, and remove retargeting pixels attached to links
- **Webhooks** — Register webhooks for link events and send a test delivery

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 73 / 100
- **Maturity:** AI-Aware
- **Dimensions:**
  - Foundational Compliance: 87 / 100
  - Developer Experience & Jentic Compatibility: 74 / 100
  - AI-Readiness & Agent Experience: 58 / 100
  - Agent Usability: 94 / 100
  - Security: 60 / 100
  - AI Discoverability: 82 / 100
- **View full report:** https://jentic.com/apis/flyn.to/flyn/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring the Flyn API by hand means handling its bearer token, learning which endpoints accept unauthenticated conversion pixels, and building retry logic yourself. Through Jentic you install once, import Flyn from the API Directory, store the token once, and your agent calls it.
- **Permission scoping:** Flyn exposes link, domain, pixel, conversion, and webhook operations, so a rule can let your agent create links and read click reports while leaving domain and webhook changes out. You choose the operations it may call, so destructive ones like deleting a link or removing a custom domain are not included unless you add them.
- **Credential handling:** Your Flyn 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 'shorten a URL' or 'read click analytics', and Jentic returns the matching Flyn operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Bitly** — Established link-management platform with short links, QR codes, and click analytics.
- **Dub** — Open link-management API with short links, click analytics, and conversion attribution.
- **Rebrandly** — Branded-link service focused on custom domains and large-scale link creation.
- **Mailchimp** — Email marketing platform that pairs with short links for campaign distribution.

## FAQ

### What authentication does the Flyn API use?

The Flyn API authenticates with a bearer token sent in the Authorization header, per its OpenAPI spec. The conversion ingest endpoints accept unauthenticated calls so they can be fired from a browser or a tracking pixel. Through Jentic your token is stored encrypted by your own Jentic One instance and injected at call time, so it never reaches the agent's context.

### Can I create QR codes with the Flyn API?

Yes. Flyn can generate a QR code for an existing short link or encode arbitrary content as a QR image through its QR operations, returning the image for download or display.

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

Yes. Write a rule that allows only the link-creation and click-reporting operations, so the agent can shorten URLs and read analytics but cannot delete links, remove custom domains, or change webhooks. Every call it makes is logged.

### Is there a Flyn MCP server?

You do not need an MCP server to give your agent the Flyn API. Jentic connects it directly from the API Directory: import Flyn, store your token once, and your agent calls its operations by intent, so no extra server's tool definitions sit in the agent's context.

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

The OpenAPI spec does not specify numeric rate limits for the Flyn API. Check the Flyn documentation at https://www.flyn.to for current limits before running high-volume link creation.

### How do I shorten a URL with the Flyn API through Jentic?

Search Jentic for an intent like 'shorten a URL', and it returns Flyn's link-creation operation with its input schema so your agent can call it with a destination and get back a short link. To run it on your own infrastructure, install Jentic One from its GitHub repo.
