Developer API

Automate permanent uploads. Every file returns a lifetime URL and credit receipt.

Base URL

https://filecrater.site/api/v1

Demo endpoints on this mock run under the same origin (/api/*).

Endpoints

POST /api/estimate — credit cost from file size
POST /api/upload — upload file → permanent URL
POST /api/buy-credits — purchase a credit pack
DELETE /api/files/:id — delete a vault file

Upload example

curl -X POST https://filecrater.site/api/upload \ -H "Authorization: Bearer YOUR_KEY" \ -F "file=@release.zip" # Response { "ok": true, "url": "https://filecrater.site/7fXk9aQ2pL", "credits_used": 12, "credits_remaining": 2468, "file": { "name": "release.zip", "permanent": true } }

Estimate example

curl -X POST https://filecrater.site/api/estimate \ -H "Content-Type: application/json" \ -d '{"name":"photo.jpg","size":3210000}' # → { "credits": 4, "cost_usd": 0.04, "type": "image" }

Authentication

Production keys are issued from Account → API. This demo uses session cookies — no key required in the browser mock.

Create account for API access
Link copied