NexiShare API
Upload files and create share links from your own code. The API is available to accounts with the Developer role — ask an admin to enable it, then sign in as a developer and create a key under Dashboard → Developer.
Authentication
Send your key as a Bearer token on every request. Keys start with nxs_live_, are shown once when created, and can be revoked at any time. Treat them like passwords — never put one in client-side code.
Authorization: Bearer nxs_live_xxxxxxxxxxxxxxxxxxxxxxxxBase URL: https://nexishare.eu.cc/api/v1. Limit: 60 requests per minute per key(429 beyond that). Files use your account's plan quota and are automatically deleted 7 days after upload.
Uploading a file (3 steps)
Bytes go straight to storage, not through our servers: (1) ask for an upload URL, (2) PUT the file to it, (3) tell us it's done.
# 1) Request an upload URL
curl -X POST https://nexishare.eu.cc/api/v1/uploads \
-H "Authorization: Bearer $NEXISHARE_KEY" \
-H "Content-Type: application/json" \
-d '{"fileName":"report.pdf","fileSize":482113,"contentType":"application/pdf"}'
# → { "key": "...", "uploadUrl": "https://...", "method": "PUT",
# "headers": { "Content-Type": "application/pdf", "Content-Disposition": "..." } }
# 2) PUT the bytes — send EXACTLY the returned headers
curl -X PUT "$UPLOAD_URL" \
-H "Content-Type: application/pdf" \
-H "Content-Disposition: $RETURNED_DISPOSITION" \
--data-binary @report.pdf
# 3) Register it
curl -X POST https://nexishare.eu.cc/api/v1/uploads/complete \
-H "Authorization: Bearer $NEXISHARE_KEY" \
-H "Content-Type: application/json" \
-d '{"key":"<key from step 1>","fileName":"report.pdf","fileSize":482113,"contentType":"application/pdf"}'
# → { "id": "3f1c…" }The headers in step 2 are part of the signed URL — if they don't match what step 1 returned, storage rejects the upload with 403. The upload URL expires after 15 minutes.
POST/api/v1/uploads
Body: fileName, fileSize (bytes), contentType. Errors: 413 over your per-file limit or storage quota, 415 blocked file type.
POST/api/v1/uploads/complete
Body: key, fileName, fileSize, contentType. Returns { "id": "…" }. Safe to call twice for the same key. Returns 409 if the bytes weren't uploaded yet.
GET/api/v1/files
Your 100 most recent files (excludes Trash).
curl https://nexishare.eu.cc/api/v1/files -H "Authorization: Bearer $NEXISHARE_KEY"
# → { "files": [ { "id", "name", "size", "contentType", "downloads", "createdAt" } ] }POST/api/v1/files/{id}/share
Creates a public link. Every field is optional: customSlug, password, expiresAt (ISO 8601), maxDownloads, oneTime.
curl -X POST https://nexishare.eu.cc/api/v1/files/$FILE_ID/share \
-H "Authorization: Bearer $NEXISHARE_KEY" \
-H "Content-Type: application/json" \
-d '{"password":"s3cret","maxDownloads":5}'
# → { "slug": "aB3kZ9q", "url": "https://nexishare.eu.cc/s/aB3kZ9q" }DELETE/api/v1/files/{id}
Moves the file to Trash (it can be restored from the dashboard). Its links stop working.
Errors
Errors are JSON: { "error": "message" }. 401 bad/missing/revoked key · 403 the key's owner no longer has developer access · 404 not found · 429 rate limited.