API
Reference

Reference

GET /status

Get a status of API key.

Example request

curl --request GET \
 --url https://api.linkdrip.com/v1/status \
 --header 'accept: application/json' \
 --header 'Authorization: Bearer [YOUR_API_KEY]'

Example response

{
  "success": true,
  "data": {
    "status": "ok"
  }
}

POST /create

Create a new link.

Example request

 curl --request POST \
 --url https://api.linkdrip.com/v1/create \
 --header 'accept: application/json' \
 --header 'Authorization: Bearer [YOUR_API_KEY]' \
 --data '{
    "target_url": "https://www.google.com",
    "title": "Title To Display",
    "description": "Description to show for the link",
    "og_image": "https://www.cdn.stuff.com/image.jpg",
    "utm_campaign": "UTM Campaign parameter",
    "utm_content": "UTM Content parameter",
    "utm_medium": "UTM Medium parameter",
    "utm_source": "UTM Source parameter",
    "utm_term": "UTM Term parameter",
    "custom_domain": "simonl.ink",
    "project_name": "Newsletters",
    "workspace_name": "LinkDrip Workspace"
  }'

Example response

{
  "success": true,
  "data": {
    "short_link": "https://drp.li/xUas9",
    "target_url": "https://www.goggle.com",
    "title": "Title To Display",
    "description": "Description to show for the link",
    "og_image": "https://www.cdn.stuff.com/image.jpg",
    "utm_campaign": "UTM Campaign parameter",
    "utm_content": "UTM Content parameter",
    "utm_medium": "UTM Medium parameter",
    "utm_source": "UTM Source parameter",
    "utm_term": "UTM Term parameter"
  }
}

The API returns only existing values. For example, if an attribute such as utm_term is set to null in the request, it will not be included in the response.

Reference attribute options for creating and updating links:

AttributeisRequiredDescription
target_urltrueDestination of your link.
titlefalseOG data. If is not provided in the request, the system automatically retrieves it from the target URL and stores it along with the link.
descriptionfalseOG data. If is not provided in the request, the system automatically retrieves it from the target URL and stores it along with the link.
og_imagefalseOG data. If is not provided in the request, the system automatically retrieves it from the target URL and stores it along with the link.
utm_campaignfalseUTM Campaign parameter.
utm_contentfalseUTM Content parameter.
utm_mediumfalseUTM Medium parameter.
utm_sourcefalseUTM Source parameter.
utm_termfalseUTM Term parameter.
custom_domainfalseCustom domain. If a custom domain is provided, but is not owned and active by the user, the endpoint will return an error.
project_namefalseProject/Folder name. If a workspace or project name is provided, but does not exists/not owned by the account, the endpoint will return an error. If a workspace or project name is not provided, the link will be stored in the personal space in the default project.
workspace_namefalseWorkspace name. If a workspace or project name is provided, but does not exists/not owned by the account, the endpoint will return an error. If a workspace or project name is not provided, the link will be stored in the personal space in the default project.

GET /:id

Get a specific link by ID.

Example request

curl --request GET \
 --url https://api.linkdrip.com/v1/xUas9 \
 --header 'accept: application/json' \
 --header 'Authorization: Bearer [YOUR_API_KEY]'

Example response

{
  "success": true,
  "data": {
    "short_link": "https://drp.li/xUas9",
    "target_url": "https://www.goggle.com",
    "title": "Title To Display",
    "description": "Description to show for the link",
    "og_image": "https://www.cdn.stuff.com/image.jpg",
    "utm_campaign": "UTM Campaign parameter",
    "utm_content": "UTM Content parameter",
    "utm_medium": "UTM Medium parameter",
    "utm_source": "UTM Source parameter",
    "utm_term": "UTM Term parameter"
  }
}

The API returns only existing values. For example, if an attribute such as utm_term is set to null in the request, it will not be included in the response.

PUT /:id

Update a specific link by ID.

Example request

curl --request PUT \
 --url https://api.linkdrip.com/xUas9 \
 --header 'accept: application/json' \
 --header 'Authorization: Bearer [YOUR_API_KEY]' \
 --data '{
    "target_url": "https://www.google.com",
    "title": "Title To Display",
    "description": "Description to show for the link",
    "og_image": "https://www.cdn.stuff.com/image.jpg",
    "utm_campaign": "UTM Campaign parameter",
    "utm_content": "UTM Content parameter",
    "utm_medium": "UTM Medium parameter",
    "utm_source": "UTM Source parameter",
    "utm_term": "UTM Term parameter",
    "custom_domain": "simonl.ink",
    "project_name": "Newsletters",
    "workspace_name": "LinkDrip Workspace"
  }'

Example response

{
  "success": true
}

The API returns only existing values. For example, if an attribute such as utm_term is set to null in the request, it will not be included in the response.

Reference attribute options for creating and updating links:

AttributeisRequiredDescription
target_urlfalseDestination of your link.
titlefalseOG data.
descriptionfalseOG data.
og_imagefalseOG data.
utm_campaignfalseUTM Campaign parameter.
utm_contentfalseUTM Content parameter.
utm_mediumfalseUTM Medium parameter.
utm_sourcefalseUTM Source parameter.
utm_termfalseUTM Term parameter.
custom_domainfalseCustom domain.
project_namefalseProject/Folder name.
workspace_namefalseWorkspace name.

DELETE /:id

Removed a specific link by ID.

Example request

curl --request DELETE \
 --url https://api.linkdrip.com/xUas9 \
 --header 'accept: application/json' \
 --header 'Authorization: Bearer [YOUR_API_KEY]' \

Example response

{
  "success": true,
  "data": {
    "short_link": "https://drp.li/xUas9",
    "target_url": "https://www.goggle.com",
    "title": "Title To Display",
    "description": "Description to show for the link",
    "og_image": "https://www.cdn.stuff.com/image.jpg",
    "utm_campaign": "UTM Campaign parameter",
    "utm_content": "UTM Content paremeter",
    "utm_medium": "UTM Medium parameter",
    "utm_source": "UTM Source paremeter",
    "utm_term": "UTM Term paremeter"
  }
}

The API returns only existing values. For example, if an attribute such as utm_term is set to null in the request, it will not be included in the response.