Shinai Docs

API Documentation

Home

API Documentation

Complete guide to integrate Shinai CDN & URL Shortener into your application

Server Domain

https://shinai.my.id Alternative
https://shinai.onrender.com Recommended

API Endpoints

CDN Upload

/api/4/cdn

URL Shortener

/api/4/short

cURL Examples

Basic URL Shortening

POST
curl -X POST https://shinai.onrender.com/api/4/short \
-H "x-api-key: sazukaxcmv" \
-H "Content-Type: application/json" \
-d '{"url":"https://google.com"}'

Custom Slug Shortening

POST
curl -X POST https://shinai.onrender.com/api/4/short \
-H "x-api-key: sazukaxcmv" \
-H "Content-Type: application/json" \
-d '{"url":"https://google.com", "customId": "optional-custom-id"}'

File Upload to CDN

POST
curl -X POST https://shinai.onrender.com/api/4/cdn \
-H "x-api-key: sazukaxcmv" \
-F "file=@awwhh.jpg"

Authentication

API Key Header

x-api-key: sazukaxcmv
sazukaxcmv

Include this header in all your API requests

Response Examples

CDN Upload Response

{
  "status": "success",
  "url": "https://shinai.onrender.com/files/filename.jpg",
  "filename": "filename.jpg",
  "size": "2.5MB"
}

URL Shortener Response

{
  "status": "success",
  "shortUrl": "https://shinai.onrender.com/abc123",
  "id": "abc123",
  "originalUrl": "https://google.com"
}

2025 Shinai

Made with by Sazuka