Flag

Authorization: Bearer <your-token>

curl -X POST https://api.pinarkive.com/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "your-email", "password": "your-password"}'

: POST

: https://api.pinarkive.com/file

: multipart/form-data

: Authorization: Bearer <your-token>

: file: The file to upload (multipart/form-data).

:

{
  "cid": "",
  "size": 
}

:

  • 400: "No file received" (if no file is sent).
  • 403: "Storage quota exceeded" (if storage limit is exceeded).
  • 500: "Failed to upload file" (internal error).

:

curl -X POST https://api.pinarkive.com/file \
-H "Authorization: Bearer " \
-F "file=@/path/to/your/file.jpg"