Overview
The link management system is the core feature of Macondo Link Manager. Create shortened URLs, organize them by clients and campaigns, tag them for easy filtering, and generate QR codes for sharing.Short URLs
Generate unique short codes automatically
QR Codes
Create scannable QR codes for any link
Organization
Associate links with clients and campaigns
Tagging
Categorize links with flexible tags
Creating Links
Create a new shortened link by providing the destination URL and organizational details.API Endpoint
Required Fields
The full destination URL where users will be redirected. Must be a valid URL with protocol.
The UUID of the client this link belongs to. Client must exist.
Optional Fields
The UUID of the campaign this link is associated with. Can be
null for links not tied to a specific campaign.List of tag names to categorize this link. Tags are automatically created if they don’t exist.
Response
Successful creation returns a201 Created status with the link object:
The
shortCode is automatically generated using a cryptographically secure random string generator. The system ensures uniqueness by checking for collisions and regenerating if necessary.Short Code Generation
Short codes are the unique identifiers that make up your shortened URLs.Generation Algorithm
- Character Set: alphanumeric (a-z, A-Z, 0-9)
- Length: 6 characters
- Possible Combinations: 62^6 = ~56 billion unique codes
- Collision Handling: Automatic retry with new code if collision detected
URL Format
Shortened links follow this pattern:Listing Links
Retrieve all links with optional filtering capabilities.API Endpoint
Query Parameters
| Parameter | Type | Description |
|---|---|---|
clientId | UUID | Filter by specific client |
campaignId | UUID | Filter by specific campaign |
search | string | Search in URLs and metadata |
Examples
Viewing Link Details
Get complete information about a specific link, including related data.API Endpoint
Response
Returns detailed link information including:- Full link metadata
- Associated client and campaign names
- Applied tags
- Total click count
Editing Links
Update link properties after creation.API Endpoint
All fields are optional in the update request. Only provide the fields you want to change.
Updatable Fields
Change the destination URL. The short code remains the same.
Move the link to a different client. The new client must exist.
Change the campaign association or set to
null to remove campaign link.Replace all existing tags with a new set. This completely overwrites the current tags.
Response
Returns200 OK with the updated link object.
Deleting Links
Permanently remove a link and all associated click data.API Endpoint
Response
Returns204 No Content on successful deletion.
QR Code Generation
Generate QR codes for your shortened links to enable easy scanning and sharing.How It Works
QR code generation is handled entirely on the frontend using thereact-qr-code library. No API calls are required.
Features
PNG Copy
Copy QR code as image to clipboard
SVG Download
Download high-quality vector format
Customizable Size
Adjust QR code dimensions as needed
Client-Side
No server processing required
Technical Details
The QR code component uses these properties:Link Analytics
View detailed metrics for individual links.API Endpoint
Query Parameters
Number of days to include in metrics (1-365)
Response
Association with Clients and Campaigns
Client Association
Every link must be associated with a client. This is a required field that helps organize links by customer or project.Campaign Association
Links can optionally be associated with a campaign for more granular organization:Organizational Hierarchy
When a campaign is deleted, links associated with it have their
campaignId set to null but remain associated with the client.Error Handling
Common Errors
| Status Code | Error | Description |
|---|---|---|
404 | Client not found | The specified clientId doesn’t exist |
404 | Campaign not found | The specified campaignId doesn’t exist |
404 | Link not found | The specified link id doesn’t exist |
400 | Invalid URL | The originalUrl is not a valid URL format |
401 | Unauthorized | Authentication required or token expired |
Example Error Response
Best Practices
Use Descriptive Tags
Tag links with meaningful categories for easier filtering and reporting
Associate Campaigns
Link to campaigns when possible for better analytics segmentation
Update URLs Carefully
When updating destination URLs, ensure redirects still make sense to users
Monitor Click Metrics
Regularly check link analytics to optimize your campaigns
