Skip to main content
GET
/
vault
/
{id}
/
objects
/
{objectId}
Get vault object with download URL
curl --request GET \
  --url https://api.case.dev/vault/{id}/objects/{objectId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "obj_abc123",
  "vaultId": "vault_def456",
  "filename": "contract_amendment.pdf",
  "contentType": "application/pdf",
  "sizeBytes": 2048576,
  "downloadUrl": "https://s3.amazonaws.com/bucket/key?X-Amz-Algorithm=AWS4-HMAC-SHA256&...",
  "expiresIn": 3600,
  "ingestionStatus": "completed",
  "pageCount": 15,
  "textLength": 12500,
  "chunkCount": 32,
  "vectorCount": 32,
  "metadata": {
    "extractedText": true,
    "language": "en"
  },
  "createdAt": "2024-01-15T10:30:00Z"
}

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Path Parameters

id
string
required

Vault ID

objectId
string
required

Object ID within the vault

Response

Object metadata and download URL

id
string

Object ID

vaultId
string

Vault ID

filename
string

Original filename

contentType
string

MIME type

sizeBytes
integer

File size in bytes

downloadUrl
string

Presigned S3 download URL

expiresIn
integer

URL expiration time in seconds

ingestionStatus
string

Processing status (pending, processing, completed, failed)

pageCount
integer

Number of pages (for documents)

textLength
integer

Length of extracted text

chunkCount
integer

Number of text chunks created

vectorCount
integer

Number of embedding vectors generated

metadata
object

Additional metadata

createdAt
string<date-time>

Upload timestamp