DocsInteractive API Docs/api/v1/link-shorten/create-link
post

/api/v1/link-shorten/create-link

API endpoint documentation

Endpoint Info
Base URLapi.bizkithub.com
AuthBearer Token
Methods1
Authentication Required

This endpoint requires a valid API key passed as a query parameter or Bearer token.

Get your API key

Parameters

3 body parameters

urlstringrequired
customAliasstring
expiresAtstring

Example Request

JavaScript fetch

const response = await fetch("https://api.bizkithub.com/api/v1/link-shorten/create-link", {
  method: "POST",
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "url": "example_url",
    "customAlias": "example_customAlias",
    "expiresAt": "example_expiresAt"
  })
});

const data = await response.json();
console.log(data);
post

Example Response

200Success
{
  "success": true
}

cURL

Command line example

curl -X POST "https://api.bizkithub.com/api/v1/link-shorten/create-link" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "example_url",
  "customAlias": "example_customAlias",
  "expiresAt": "example_expiresAt"
}'

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key