GET
/
v1
/
storage
/
objects
/
{key}
/
metadata
TypeScript client
import { TxAgentKitClient } from '@tx-agent-kit/sdk'

const client = new TxAgentKitClient({
  token: process.env.TX_AGENT_KIT_TOKEN
})

const response = await client.storage.getObjectMetadata({
  key: process.env.TX_AGENT_KIT_KEY ?? "key",
})
{
  "key": "<string>",
  "contentType": "<string>",
  "contentLength": 123,
  "lastModified": "<string>",
  "etag": "<string>"
}

Path Parameters

key
string
required

Response

Success

key
string
required
contentType
string | null
required
contentLength
number | null
required
lastModified
string | null
required
etag
string | null
required