Skip to main content

Overview

The Bouncy.ai API offers multiple ways to create short links:
  • Single link creation - Create one link at a time with full customization
  • Bulk creation - Create up to 100 links in a single request
  • Custom slugs - Choose your own memorable short URLs
  • Tags and groups - Organize links for campaigns
The minimum required field is url - the destination URL:
Response:
The API automatically generates a random slug (abc123) if you don’t specify one. Add optional fields for full control:
Full example:

Slug Best Practices

  • ✅ Good: summer, promo, docs
  • ❌ Bad: this-is-a-very-long-slug-that-nobody-will-remember
  • ✅ Valid: summer-2026, promo123, new-product
  • ❌ Invalid: Summer Sale!, promo@2026, new_product
If a slug is already taken, you’ll receive a 409 Conflict error:
Solution: Choose a different slug or omit the slug field for auto-generation.

Using Custom Domains

If you’ve connected a custom domain (e.g., go.yourbrand.com), specify it in the domain field:
This creates: https://go.yourbrand.com/welcome
Custom domains must be verified before use. See the Custom Domains guide for setup instructions.

Organizing with Tags

Tags help you filter and organize links:
Later, retrieve all links with a specific tag:

Organizing with Groups

Groups provide folder-like organization:
1

Create a group

Response: {"id": "grp_abc123", "name": "Summer Campaign"}
2

Assign links to the group

See the Groups API Reference for more details.

Error Handling

Common errors when creating links:

Invalid URL

Solution: Ensure your URL starts with http:// or https://.

Slug Already Exists

Solution: Choose a different slug or omit it for auto-generation.
Solution: Upgrade your plan or delete unused links.

Next Steps

Bulk Create Links

Create up to 100 links at once

Update Links

Modify link destinations and metadata

Get Analytics

Track clicks and performance

Error Handling

Handle errors gracefully