Links
Create Link
Create a new dynamic link with simplified parameters for easy integration
POST
Request
string
required
Your API key:
b2co_your_api_keystring
Custom short code for the link. If not provided, a random code will be
generated. Must be unique within your project and contain only alphanumeric
characters, hyphens, and underscores (3-50 characters).
Link Codes are Unique: Each link code must be unique within your project.
Use the Check Code Availability endpoint to
verify if a code is available before creating a link.
string
Optional display name for the link to help with organization and
identification.
object
required
Link configuration object containing destination URL and platform-specific
settings.
string
required
The destination URL where users will be redirected when they click the dynamic
link.
string
ID of a saved iOS mobile app to use for this link. When provided, the link will use the saved app’s configuration instead of manual iOS settings.
string
ID of a saved Android mobile app to use for this link. When provided, the link will use the saved app’s configuration instead of manual Android settings.
object
Android-specific configuration for deep linking and app store fallbacks.
string
Android app package name (e.g., com.yourapp.android).
string
Play Store URL to redirect Android users without the app.
string
Minimum app version required to handle the deep link.
boolean
Whether to save this Android configuration as a reusable mobile app.
string
Name for the saved mobile app (required if saveApp is true).
object
iOS-specific configuration for deep linking and App Store fallbacks.
string
iOS app bundle identifier (e.g., com.yourapp.ios).
string
App Store URL to redirect iOS users without the app.
string
App Store ID for the iOS app.
string
Minimum app version required to handle the deep link.
boolean
Whether to save this iOS configuration as a reusable mobile app.
string
Name for the saved mobile app (required if saveApp is true).
object
Social media preview configuration for rich link sharing.
string
Title displayed in social media previews.
string
Description displayed in social media previews.
string
Image URL displayed in social media previews.
object
UTM campaign parameters for analytics tracking.
string
Campaign source parameter.
string
Campaign medium parameter.
string
Campaign name parameter.
string
Campaign term parameter (for paid search keywords).
string
Campaign content parameter (for A/B testing and content-targeted ads).
string
Fallback URL for desktop users.
string
Optional expiration date in ISO 8601 format. Link will become inactive after
this date.
Response
boolean
Indicates if the request was successful
object
The created link object
string
Unique identifier for the link
string
The unique short code for the link
string
The complete short URL that can be shared
string
The original destination URL
string
Display name of the link
string
Current status of the link (ACTIVE, PAUSED, etc.)
string
QR code URL for the link
string
ISO 8601 timestamp when the link was created
string
ISO 8601 timestamp when the link expires (if set)
number
Number of times the link has been clicked
Error Codes
string
Invalid request payload or parameters
string
The specified code is already in use
string
API key is missing or invalid
string
Too many requests, please try again later
string
Active subscription required to create links