Overview
Campaigns allow you to group links under specific marketing initiatives or time periods. Each campaign must be associated with a client and can contain multiple links.All endpoints require authentication via Bearer token in the Authorization header.
List Campaigns
Query Parameters
Filter campaigns by client UUID.
Response
Unique identifier (UUID) of the campaign.
Name of the campaign.
UUID of the associated client.
Name of the associated client.
Number of links associated with this campaign.
ISO 8601 timestamp of creation.
ISO 8601 timestamp of last update.
Example Request
Example Response
Create Campaign
Request Body
Name of the campaign. Must be at least 3 characters long.
UUID of the client this campaign belongs to. Client must exist in the system.
Campaign names must be unique within each client. You can have campaigns with the same name across different clients.
Response
Unique identifier (UUID) of the created campaign.
Name of the campaign.
UUID of the associated client.
ISO 8601 timestamp of creation.
ISO 8601 timestamp of last update.
Example Request
Example Response
Error Responses
Client not found.
Campaign with this name already exists for this client.
Get Campaign
Path Parameters
UUID of the campaign to retrieve.
Response
Unique identifier (UUID) of the campaign.
Name of the campaign.
UUID of the associated client.
ISO 8601 timestamp of creation.
ISO 8601 timestamp of last update.
Example Request
Example Response
Error Responses
Campaign not found.
Update Campaign
Path Parameters
UUID of the campaign to update.
Request Body
Updated name for the campaign. Must be at least 3 characters long.
The updated name must be unique within the campaign’s client.
Response
Returns the updated campaign object with the same structure as the Get Campaign response.Example Request
Example Response
Error Responses
Campaign not found.
Another campaign with this name already exists for this client.
Delete Campaign
Path Parameters
UUID of the campaign to delete.
Response
Returns 204 No Content on success.Example Request
Error Responses
Campaign not found.
Deleting a campaign does NOT delete the associated links. Links will have their
campaignId set to null after the campaign is deleted.