curl -X POST https://api.linquid.io/api/links \ -H "X-API-Key: lw_your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "destinationUrl": "https://example.com/landing-page", "title": "Summer Campaign Link", "campaignId": "camp_xyz789", "tags": ["summer", "promo"] }'
{ "success": true, "data": { "id": "link_abc123", "shortCode": "abc123", "shortUrl": "https://linqu.id/abc123", "destinationUrl": "https://example.com/landing-page", "title": "Summer Campaign Link", "campaignId": "camp_xyz789", "enabled": true, "passwordProtected": false, "expiresAt": null, "clicksLimit": null, "tags": ["summer", "promo"], "createdAt": "2024-01-15T10:30:00.000Z", "updatedAt": "2024-01-15T10:30:00.000Z" } }
Create a new smart link
{ "success": false, "error": { "code": "VALIDATION_ERROR", "message": "Invalid destination URL format" } }
{ "success": false, "error": { "code": "SHORT_CODE_EXISTS", "message": "This short code is already in use" } }
{ "success": false, "error": { "code": "INSUFFICIENT_CREDITS", "message": "Workspace has insufficient credits" } }
Was this page helpful?