Skip to main content
POST

Authorizations

x-api-key
string
header
default:your-project-api-key
required

Your Composio project API key. Create or copy it from the Composio dashboard.

Body

application/json
toolkit_slug
string
required

Slug of the app where this file belongs to. Example: "gmail", "slack", "github"

tool_slug
string
required

Slug of the action where this file belongs to. Example: "GMAIL_SEND_EMAIL", "SLACK_UPLOAD_FILE"

filename
string
required

Name of the original file. Example: "quarterly_report.pdf"

mimetype
string
required

Mime type of the original file. Example: "application/pdf", "image/png"

md5
string
required

MD5 hash of the file for deduplication and integrity verification. Example: "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"

Response

Successfully created upload URL for request file

id
string
required

ID of the request file. Example: "req_file_9mZn4qR8sXwT"

key
string
required

Object storage upload location. Example: "projects/pr_1a2b3c4d5e6f/requests/slack/SLACK_UPLOAD_FILE/document_9mZn4q.docx"

newPresignedUrl
string
required
deprecated
type
enum<string>
required
deprecated

[DEPRECATED] Indicates this is a new file that needs to be uploaded

Available options:
new
metadata
object
required