List files attached to a context entry
GET
/v1/context/{id}/attachments
const url = 'https://api.varman.io/v1/context/ctx_abc123def456/attachments';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.varman.io/v1/context/ctx_abc123def456/attachments \ --header 'X-API-Key: <X-API-Key>'Returns the supporting documents uploaded for one org profile answer (context entry), each with a short-lived download URL.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Example
ctx_abc123def456Context entry ID
Responses
Section titled “Responses”Media typeapplication/json
Array<object>
object
id
required
Unique identifier for the attachment
string
name
required
Original filename
string
type
required
File type/MIME type
string
size
required
File size in bytes
number
downloadUrl
required
Signed URL for downloading the file (temporary)
string
createdAt
required
Upload timestamp
string format: date-time
Example
[ { "id": "att_abc123def456", "name": "document.pdf", "type": "application/pdf", "size": 1024000, "downloadUrl": "https://bucket.s3.amazonaws.com/path/to/file.pdf?signature=...", "createdAt": "2024-01-15T10:30:00Z" }]