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
required

Object ID

vaultId
string
required

Vault ID

filename
string
required

Original filename

contentType
string
required

MIME type

downloadUrl
string
required

Presigned S3 download URL

expiresIn
integer
required

URL expiration time in seconds

ingestionStatus
string
required

Processing status (pending, processing, completed, failed)

createdAt
string<date-time>
required

Upload timestamp

sizeBytes
integer

File size in bytes

path
string | null

Optional folder path for hierarchy preservation

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