🚨 Open Responses API (Alpha). Learn more here [blocked]
cURL
curl --request POST \ --url http://api/files \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "description": "", "mime_type": "<string>", "content": "<string>", "project": "<string>" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "created_at": "2023-11-07T05:31:56Z", "name": "<string>", "description": "", "mime_type": "<string>", "content": "<string>", "project": "<string>", "size": 2, "hash": "<string>" }
Payload for creating a file
120
1 - 255
Successful Response
x >= 1