Skip to content

List files attached to a context entry

GET
/v1/context/{id}/attachments
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.

id
required
string

Example

ctx_abc123def456

Context entry ID

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"
}
]