Skip to main content
POST
Upload an operator attachment

Authorizations

Authorization
string
header
required

A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

Query Parameters

filename
string
required

The file's name.

Minimum string length: 1

Body

*/*

The body is of type file.

Maximum string length: 33554432

Response

The stored attachment.

id
string
required
filename
string
required
media_type
string
required

image/png, image/jpeg, image/gif, image/webp, video/mp4, video/quicktime, video/webm, or a text type.

size_bytes
integer
required
Required range: x >= 0
width
integer

An image's stored width, the width the model sees.

Required range: x >= 1
height
integer

An image's stored height, the height the model sees.

Required range: x >= 1