cURL
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>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The name of the file to be uploaded.
Base64 encoded content of the file.
The user ID associated with the file. Required if project_id is not provided.
The project ID associated with the file. Required if user_id is not provided.
File uploaded successfully
The name of the uploaded file.
Was this page helpful?