Skip to main content
POST
/
memory
/
{id}
/
files
Add file
curl --request POST \
  --url https://api.ziet.ai/v1/memory/{id}/files \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'path=<string>' \
  --form file=@example-file
{
  "id": "<string>",
  "name": "<string>",
  "path": "<string>",
  "size": 123,
  "content_type": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Format: 'Api-Key sk_live_YOUR_KEY'

Path Parameters

id
string
required

Body

multipart/form-data
file
file
required
path
string

Optional path (e.g., 'documents/report.pdf')

Response

File added

id
string
required
name
string
required
path
string
size
integer
content_type
string
created_at
string<date-time>