curl -X POST https://1link.1workspace.in/api/v1/links \
-H "Authorization: Bearer fk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Summer launch",
"defaultUrl": "https://example.com/app",
"destinations": [
{
"platform": "IOS",
"url": "https://apps.apple.com/app/id1234567890"
},
{
"platform": "ANDROID",
"url": "https://play.google.com/store/apps/details?id=com.example.app"
}
],
"rules": [
{
"name": "Germany",
"countries": [
"DE"
],
"destinationUrl": "https://example.com/de/app"
}
],
"utm": {
"source": "newsletter",
"medium": "email",
"campaign": "summer-launch"
}
}'