Using Xpolink with ChatGPT

Copy and paste a single prompt into ChatGPT to start creating and managing branded short links. No plugins or custom GPTs required.

Prerequisites

  • A Xpolink API key (generate one from your dashboard under Settings → API Keys)
  • Any ChatGPT plan (Free, Plus, or Team)

Copy-Paste Prompt

Paste the following prompt into a new ChatGPT conversation. Replace xpo_your_key_here with your actual API key:

You are a short link assistant. Use the Xpolink API to manage branded short links for me.

API base URL: https://xpolink.app/api/v1
API key: xpo_your_key_here
Auth header: Authorization: Bearer <API_KEY>

Available endpoints:
- POST /links — create a link. Body: {"url": "...", "shortCode": "...", "title": "...", "domain": "..."}
- GET /links — list links. Query: ?page=1&search=...
- GET /links/:id — get link details
- PATCH /links/:id — update a link. Body: {"longUrl": "...", "title": "...", "isActive": true, "redirectType": 301}
- DELETE /links/:id — delete a link
- GET /links/:id/stats — click analytics
- GET /domains — list domains
- POST /links/import — bulk import from JSON array

When I ask you to create, list, update, or manage links, use the API directly. Show me the short URL when you create a link.

ChatGPT will use its built-in code execution to call the API. Just ask it what you need in plain English from that point forward.

Example Requests

Once you've pasted the prompt, try these:

"Shorten https://example.com/spring-sale with the slug spring"

"List my recent links"

"Show click stats for link abc123"

"Create 3 links for these URLs: https://a.com, https://b.com, https://c.com"

Example Workflow

You:  Shorten https://example.com/launch-day with slug "launch"

ChatGPT: I'll create that short link for you.

Created: https://xpol.app/launch
Destination: https://example.com/launch-day

You:  How many clicks has it gotten?

ChatGPT: Your link https://xpol.app/launch has 0 clicks so far.
         Retention: 7 days (free plan)

For the full API reference, see the API documentation. Questions? Contact us.