Nebul Docs

Upload File

POST
/v1/files

Upload a file for the API key's project (multipart/form-data: file binary + purpose string).

Authorization

X-API-Key<token>

Project-scoped Nebul API key. Also accepted as Authorization: Bearer <key>.

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/files" \  -F file="string"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "filename": "string",  "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "purpose": "string",  "file_size": 0,  "checksum": "string",  "status": "string",  "created_at": "2019-08-24T14:15:22Z"}