Skip to main content

🔍 Get Link Information by ShortUrl

Use ChottuLink's REST API to retrieve detailed information about a specific dynamic link using its short URL. This public API endpoint allows you to fetch link metadata including destination URL, creation time, link name, and enabled status - perfect for integrating link data into external systems or dashboards.

Endpoint

POST https://api2.chottulink.com/chotuCore/pa/v1/links/info

Authentication

Include your API key in the request header:

API-KEY: c_api_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
API Key Replacement Required

Replace c_api_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx with your actual REST API integration key from the ChottuLink Dashboard.

Request Parameters

Parameter Guidelines:
  • The shortUrl parameter is mandatory
  • The short URL must be associated with your organization
  • The short URL must include the full URL format (including protocol)
  • Empty or invalid short URLs will result in a 400 error
Required Parameters
ParameterTypeRequiredDescriptionExample
shortUrlstringYesThe complete short URL of the link you want to retrieve info forhttps://yourapp.chottu.link/promo-summer

Example Request

Basic Request

curl --location 'https://api2.chottulink.com/chotuCore/pa/v1/links/info' \
--header 'API-KEY: c_api_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"shortUrl":"https://yourapp.chottu.link/promo-summer"
}'

Response

Success Response

Status Code: 200 OK

{
"createdTime": "2025-07-02T10:22:01",
"destination_url": "https://yourapp.com/content",
"id": "4eb66e2e-6acd-4b40-8767-3966ebf7c5a6",
"is_enabled": true,
"link_name": "Summer Sale",
"modifiedTime": "2025-07-02T10:22:01",
"org_id": "6867c0be01ed16b7bf180376",
"short_url": "https://yourapp.chottu.link/promo-summer"
}

Response Fields

FieldTypeDescription
createdTimestringCreated date time of the link
destination_urlstringDestination URL of the provided short URL
idstringID of the link
is_enabledbooleanIs link enabled or not, represent boolean value
link_namestringName of the link
modifiedTimestringModified date time of the link
org_idstringOrganization ID
short_urlstringShort URL of the link

Error Responses

Empty Short URL

Status Code: 400 Bad Request

{
"code": 101,
"errorMessage": "There was one or more validation error(s)",
"error": {
"errorMessage": "shortUrl can not be null and empty!",
"fieldName": "INVALID_VALUE"
}
}
note

This error occurs when the request is sent with an empty or missing shortUrl field.

Short URL Not Found

Status Code: 400 Bad Request

{
"code": 139,
"errorMessage": "Client Error",
"error": {
"errorMessage": "CLIENT_ERROR",
"fieldName": "{\"detail\":\"Link with short_url 'api3.maeight.com/cron' not found for organization '687f8d35064fe1799bfe5ab8'.\"}"
}
}
note

This error occurs when the provided short URL doesn't exist in the system or isn't associated with your organization.

Unauthorized API Key

Status Code: 401 Unauthorized

{
"code": 130,
"errorMessage": "Authorization Failed!",
"error": {
"errorMessage": "'API-KEY' missing",
"fieldName": "UNAUTHORIZED_ACCESS"
}
}
note

This error occurs when the provided API key is missing, invalid, expired, or not included in the request headers.

Usage Examples

curl --location 'https://api2.chottulink.com/chotuCore/pa/v1/links/info' \
--header 'API-KEY: c_api_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"shortUrl": "https://yourapp.chottu.link/promo-summer"
}'

Best Practices

Implementation Tips:
  • Validate Short URLs: Always validate the short URL format before making the request
  • Error Handling: Implement comprehensive error handling for all possible HTTP status codes
  • Caching: Consider caching link information to reduce API calls for frequently accessed links
  • Rate Limiting: Respect API rate limits and implement exponential backoff for retries
  • Logging: Log API requests and responses for debugging and monitoring purposes

Rate Limits

The API is subject to rate limiting. Please contact support for specific rate limit information for your account.