API reference

Developer docs · SANSA AI

File Forge uses the SANSA API at https://api.sansaai.in. Production keys and rate limits require a SANSA account. Use official URLs only in your integration docs.

ஆன்லைன் PDF converter தமிழ் — அதிகாரப்பூர்வ API தளம்: file-forge.sansaai.in/api

Base URL

https://api.sansaai.in

Authentication

Register at app.sansaai.in/register. Send Authorization: Bearer <token> or use httpOnly session cookies from the web app. Credits are charged per tool — see pricing.

Endpoints (sample)

MethodPathNotes
POST/api/convert/pdf/to-wordPDF → DOCXAuth: Bearer or cookie
POST/api/convert/pdf/compressCompress PDF server-sideAuth: Bearer or cookie
POST/api/convert/shareUpload result → 24h share link + public pageAuth: Bearer or cookie
GET/api/convert/share/:token/infoPublic metadata for share landing (no file body)Auth: None
GET/api/convert/share/:tokenDownload shared file (proxy when no presign)Auth: None
GET/api/healthService healthAuth: None

Full OpenAPI export is planned. For partner access email via sansaai.in contact.

Share link example

POST https://api.sansaai.in/api/convert/share
Content-Type: multipart/form-data
file=@output.pdf
toolId=compress-pdf
toolTitle=Compress PDF

→ { "token", "downloadUrl", "publicPageUrl", "expiresAt" }

Public page: https://file-forge.sansaai.in/share/?t=TOKEN