Skip to main content
POST
/
orgs
/
{org_id}
/
files
cURL
curl --request POST \
  --url https://dev.timbal.ai/orgs/{org_id}/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file=1
{
  "content_length": 123,
  "content_type": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z",
  "id": 123,
  "name": "<string>",
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

Timbal API key. Obtain your API key from the Timbal platform settings. See Authentication for more information.

Path Parameters

org_id
integer
required

Body

multipart/form-data
file
integer[]
required

Response

200 - application/json

File uploaded successfully

content_length
integer
required

The content length of the file in bytes

content_type
string
required

The content type of the file

created_at
string<date-time>
required

The time the file was created

id
integer
required

Unique identifier for the file

name
string
required

The name of the file

url
string
required

The URL where the file can be accessed

expires_at
string<date-time> | null

The time the file expires at