Overview
Bulk operations allow you to create or delete up to 100 links in a single API request. This is perfect for:- Launching marketing campaigns with many variations
- Migrating links from another service
- Cleaning up expired campaign links
- Automating link generation at scale
Bulk Create Links
Create up to 100 links in one request usingPOST /v1/links/bulk.
Basic Example
Response Format
created- Array of successfully created linksfailed- Array of links that failed with error detailssummary- Count of total, succeeded, and failed operations
Partial success is supported - if some links fail, the successful ones are still created.
Real-World Examples
Marketing Campaign with UTM Parameters
Generate 50 links for a social media campaign across platforms:Import from CSV
Read links from a CSV file and bulk create:Bulk Delete Links
Delete up to 100 links in one request usingDELETE /v1/links/bulk.
Example
Response
Delete Links by Tag
CombineGET /v1/links with bulk delete to remove all links with a specific tag:
Best Practices
Batch size limit: 100 links
Batch size limit: 100 links
The API accepts a maximum of 100 links per request. For larger operations, split into multiple batches:
Handle partial failures
Handle partial failures
Always check the
failed array in the response:Rate limits apply per request
Rate limits apply per request
Each bulk request counts as 1 request toward your rate limit, regardless of how many links are in it. This makes bulk operations very efficient!Example: Creating 100 links individually = 100 requests. Creating 100 links with bulk = 1 request.
Add delays between batches
Add delays between batches
When processing multiple batches, add a small delay to avoid overwhelming the API:
Error Handling
Quota Exceeded
If you exceed your plan’s link limit, the entire bulk request fails:Some Links Failed
If individual links fail validation, they appear in thefailed array:
Next Steps
Create Link
Create a single link with full customization
Get Analytics
Get aggregated analytics across all links
Organize with Groups
Create groups to organize bulk-created links
Error Handling
Handle errors and rate limits