Programmatically create QR transfers. Requires Pro or Team plan.
X-API-Key: your_keycurl -X POST https://inlink-6j1g.onrender.com/api/v1/transfers \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "my-file.pdf",
"expiresInHours": 24,
"oneTime": false,
"webhookUrl": "https://yourapp.com/webhook"
}'
{
"ok": true,
"roomId": "a1b2c3d4",
"downloadUrl": "https://inlink-6j1g.onrender.com/download/a1b2c3d4"
}
GET /api/v1/transfers
X-API-Key: YOUR_KEY
| Field | Type | Description |
|---|---|---|
| name | string | Display name |
| expiresInHours | number | Auto-expire after N hours |
| oneTime | boolean | Single-use download |
| webhookUrl | string | POST on download event |
| allowedEmails | string[] | Restrict to these emails via OTP |
| colorDark / colorLight | string | QR code colours (hex) |
When a file is downloaded, inlink sends a POST request to your webhookUrl:
{
"event": "download",
"roomId": "a1b2c3d4",
"fileName": "document.pdf",
"fileSize": 1048576,
"timestamp": 1708000000000
}