アカウントなしでも、すぐにファイルをアップロードできます。
アカウントを登録して取得した APIキーを使うと、大容量ファイルの送信・長期保存・ファイル管理が可能になります。
quink_... で始まるキーを入力します。ファイルをアップロードして、発行された URL をそのままメールで送信するサンプルスクリプトです。
upload_and_notify.ps1 と同じフォルダに置き、ps1 内の API キーと SMTP 設定を書き換えてください。
.\upload_and_notify.ps1 -To "recipient@example.com" -Files "C:\data\report.zip"
chmod +x upload_and_notify.sh # 初回のみ
./upload_and_notify.sh recipient@example.com report.zip
./upload_and_notify.sh recipient@example.com a.zip b.pdf
# Windows (PowerShell) $urls = .\upload.ps1 -Files "C:\data\report.zip" $urls | ForEach-Object { # ここに処理を追記 }
# Mac urls=$(./upload.sh report.zip) echo "$urls" # ここに処理を追記
REST API に X-API-Key ヘッダーを付けるだけで、AI エージェント・社内システム・自動化スクリプトなど、あらゆるツールから直接アップロードできます。
API キーはマイページのプロフィールから確認できます。
curl -X POST https://quink.jp/upload \
-H "X-API-Key: quink_xxxxx" \
-F "file=@report.pdf"
# → {"url":"https://quink.jp/f/abc123", "expires_at":"..."}
curl -X POST https://quink.jp/upload \ -H "X-API-Key: quink_xxxxx" \ -F "file=@data.zip" \ -F "comment=月次レポートです" \ -F "download_password=secret123"
import requests
url = "https://quink.jp/upload"
headers = {"X-API-Key": "quink_xxxxx"}
with open("report.pdf", "rb") as f:
r = requests.post(url, headers=headers, files={"file": f})
print(r.json()["url"])
$headers = @{ "X-API-Key" = "quink_xxxxx" }
$form = @{ file = Get-Item "report.pdf" }
$r = Invoke-RestMethod -Uri "https://quink.jp/upload" `
-Method Post -Headers $headers -Form $form
Write-Host $r.url
アップロード後もAPIでファイルの一覧取得・削除・メタデータ更新ができます。
curl https://quink.jp/myfiles \ -H "X-API-Key: quink_xxxxx"
curl -X DELETE https://quink.jp/f/{id} \
-H "X-API-Key: quink_xxxxx"
curl -X PATCH https://quink.jp/f/{id}/meta \
-H "X-API-Key: quink_xxxxx" \
-H "Content-Type: application/json" \
-d '{"comment":"更新しました","download_password":"newpass"}'
curl https://quink.jp/quota \ -H "X-API-Key: quink_xxxxx"