Skip to content

Add endpoint to create short URLs in batch #2587

Description

@roo-oliv

Summary

Add a new POST /rest/v3/short-urls/batch endpoint that takes a batch of short URL payloads, allowing multiple short URLs to be created at once.

I have a working implementation with unit and API tests available here. I've tested locally with a batch of 1000 URLs (4s without title resolution, ~1m30s with). Happy to open a PR if the approach is acceptable.

Use case

When integrating Shlink in our production workflows that need to create many short URLs at once, the only option today is to send multiple concurrent requests to /rest/v3/short-urls. A batch endpoint would reduce requests overhead and simplify client-side logic. The original request in #422 also describes this need.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions