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

Authorizations

Authorization
string
header
required

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

Body

application/json
files
object[]
user_id
string

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

project_id
string

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

Response

200
application/json
All files uploaded successfully
success
boolean
uploaded_files
string[]

Array of uploaded file names.