POST
/
upload_file
curl --request POST \
  --url https://api.gumloop.com/api/v1/upload_file \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "file_name": "<string>",
  "file_content": "aSDinaTvuI8gbWludGxpZnk=",
  "user_id": "<string>",
  "project_id": "<string>"
}'
{
  "success": true,
  "file_name": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
file_name
string

The name of the file to be uploaded.

file_content
string

Base64 encoded content of the file.

user_id
string

The user ID associated with the file. Required if project_id is not provided.

project_id
string

The project ID associated with the file. Required if user_id is not provided.

Response

200
application/json
File uploaded successfully
success
boolean
file_name
string

The name of the uploaded file.