Endpoint

https://tyny.to/linkApi/


Endpoint: /create
Method: POST

  • apiKey :
  • url :
curl -X POST -d "apiKey=your_api_key&url=https://www.example.com/long_url" https://tyny.to/linkApi/create
Success

Response Code: 200 OK

{
  "success": true,
  "linkId": "1a3b5",
  "shortnedUrl": "https://tyny.to/get/f0c1d26f-b421-4395-abed-fe7020f4f039",
  "shortnedUrl": "https://tyny.to/1a3b5"
}
Error - Bad Method

Response Code: 400 Bad Request

{
  "success": false,
  "message": "bad_method"
}

Error - Bad API Key

Response Code: 401 Unauthorized

{
  "success": false,
  "message": "bad_api_key"
}

Error - No API Key

Response Code: 401 Unauthorized

{
  "success": false,
  "message": "no_api_key"
}

  • 200 OK:
  • 400 Bad Request:
  • 401 Unauthorized: