Skip to main content
GET
/
api
/
files
/
:fileID
/
access
List Accesses
curl --request GET \
  --url https://api.example.com/api/files/:fileID/access
{
  "accesses": [
    {
      "id": 123,
      "fileID": 123,
      "name": "<string>",
      "link": "<string>",
      "subnets": [
        {}
      ],
      "ips": [
        {}
      ],
      "expires": "<string>",
      "public": true,
      "oneTimeUse": true,
      "ttl": 123,
      "enableTTL": true
    }
  ],
  "401 Unauthorized": {},
  "400 Bad Request": {},
  "404 Not Found": {},
  "403 Forbidden": {},
  "500 Internal Server Error": {}
}
Retrieve all access links for a specific file.

Authentication

This endpoint requires authentication. Include a valid JWT token in the Authorization header.

Path Parameters

fileID
integer
required
The unique identifier of the file

Response

accesses
array
Array of access records for the file

Error Responses

401 Unauthorized
object
User not authenticated
400 Bad Request
object
Invalid file ID
404 Not Found
object
File not found
403 Forbidden
object
User doesn’t own the file
500 Internal Server Error
object
Failed to retrieve accesses
curl -X GET https://api.defdrive.com/api/files/123/access \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Build docs developers (and LLMs) love