Skip to main content
GET
/
api
/
access
/
:accessID
Get Access
curl --request GET \
  --url https://api.example.com/api/access/:accessID
{
  "access": {
    "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": {}
}
Retrieve details of a specific access record.

Authentication

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

Path Parameters

accessID
integer
required
The unique identifier of the access record

Response

access
object
The access record details

Error Responses

401 Unauthorized
object
User not authenticated
400 Bad Request
object
Invalid access ID
404 Not Found
object
Access record or associated file not found
403 Forbidden
object
User doesn’t own the file
curl -X GET https://api.defdrive.com/api/access/456 \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Build docs developers (and LLMs) love