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)
| Method | Path | Notes |
|---|---|---|
| POST | /api/convert/pdf/to-word | PDF → DOCXAuth: Bearer or cookie |
| POST | /api/convert/pdf/compress | Compress PDF server-sideAuth: Bearer or cookie |
| POST | /api/convert/share | Upload result → 24h share link + public pageAuth: Bearer or cookie |
| GET | /api/convert/share/:token/info | Public metadata for share landing (no file body)Auth: None |
| GET | /api/convert/share/:token | Download shared file (proxy when no presign)Auth: None |
| GET | /api/health | Service 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