Documentation Index
Fetch the complete documentation index at: https://api.lensmor.com/llms.txt
Use this file to discover all available pages before exploring further.
Agent file detail
Resolve a generated file resource into metadata and a temporary download URL. Use this endpoint when you have alensmor-file://{fileUuid} resource link and need file metadata plus a signed URL to download the content.
Endpoint
GET /external/agent-files/:id
Authentication
See AuthenticationSuccess status code
200 OK
Path parameters
| Name | Required | Type | Notes |
|---|---|---|---|
id | Yes | string | File UUID from a lensmor-file://{fileUuid} resource link. |
Response body
| Field | Type | Notes |
|---|---|---|
fileId | string | File UUID. |
name | string | Original file name. |
mimeType | string | MIME type for the file. |
sizeBytes | integer or null | Uploaded file size in bytes when known. |
signUrl | string | Temporary download URL. |
Response example
Error responses
400 Bad Requestwhenidis empty.401 Unauthorizedwhen the API key is missing, malformed, or invalid.403 Forbiddenwhen the file exists but belongs to another user.404 Not Foundwhen the file cannot be resolved.
Notes
- Only uploaded, non-deleted files can be resolved.
:idis a file UUID, not the numeric file record identifier returned by Agent files upload presign.- Download URLs expire after 1 hour.