Skip to main content
POST
/
admin
/
v0
/
files
Upload file
curl --request POST \
  --url https://api.tightknit.ai/admin/v0/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<unknown>' \
  --form 'filename=<string>' \
  --form size=2 \
  --form 'description=<string>'
{
  "success": true,
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "title": "<string>",
    "size": 123,
    "mimetype": "<string>",
    "url": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.tightknit.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
any
required
filename
string
required
Required string length: 1 - 255
size
integer
required
Required range: x >= 1
description
string

Response

File uploaded successfully

success
boolean
required
data
object
required