Links
Create a New Link
Creates a new branded short link in the specified workspace.
Authorization:
- Requires valid apikey header
- Requires Workspace header to specify the workspace
Validation:
- destination must be a valid URL
- domainId must reference a verified domain shared with the workspace
- slashtag must be unique for the domain (auto-generated if not provided)
- slashtag length must comply with domain settings
Features:
- links.notes feature allows description field
- Link TTL is calculated based on workspace features
post/links
Request
- Base URLhttps://api.rebrandly.com/v1
- URLhttps://api.rebrandly.com/v1/links
- AuthAPI key in header apikey
Headers
Workspacestring required
Example:workspace123abc
Workspace ID header (required by middleware)
apikeystring required
Example:your-api-key-here
API key for authentication
Request body
Example request
{
"destination": "https://example.com/long/path/to/resource",
"domainId": "domain123abc",
"domain": {
"id": "domain123abc"
},
"slashtag": "my-custom-link",
"title": "My Example Link",
"description": "This link redirects to our example page"
}Response
Successfully created link
Example response
{
"id": "abc123def456",
"title": "My Example Link",
"slashtag": "my-link",
"destination": "https://example.com",
"shortUrl": "rebrand.ly/my-link",
"domainId": "domain123abc",
"domainName": "rebrand.ly",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z",
"status": "active",
"description": "This link redirects to our example page",
"https": true
}Changes
No recorded changes to this operation across all 1 revision of this API.