oceansidejoe
08/07/2025, 1:30 AMPOST https://backend.composio.dev/api/v3/files/upload/request
Content-Type: application/json
x-api-key: [API_KEY]
{
"toolkit_slug": "GMAIL",
"tool_slug": "GMAIL_CREATE_EMAIL_DRAFT",
"filename": "MY_RESUME_2025.pdf",
"mimetype": "application/pdf",
"md5": "bffab9a81ec67cf6f4b76b7576fe2bae"
}
Response:
{
"type": "new",
"id": "19fa6bdb-2eac-4fb9-9b3a-d6ab8e4bc0e1",
"key": "122445/GMAIL/GMAIL_CREATE_EMAIL_DRAFT/request/bffab9a81ec67cf6f4b76b7576fe2bae"
}
Gmail Tool Execution (Failing)
Agent Tool Call:
{
"name": "execute_composio_tool",
"arguments": {
"slug": "GMAIL_CREATE_EMAIL_DRAFT",
"data": {
"to": [
"myemail@outlook.com"
],
"subject": "Resume for Review",
"body": "Dear Hiring Manager,\n\nI hope this message finds you well...",
"attachment": "122445/GMAIL/GMAIL_CREATE_EMAIL_DRAFT/request/bffab9a81ec67cf6f4b76b7576fe2bae"
},
"request_heartbeat": true
}
}
Tool Response (Error):
{
"status_code": 200,
"body": {
"data": {},
"successful": false,
"error": "An error occurred (404) when calling the HeadObject operation: Not Found",
"log_id": "log_G_i3xlbTDkDQ"
},
"success": true
}
Key Observations
1) File upload succeeds - Files are uploaded to the correct toolkit/tool location
2) S3 key format - Using the exact key value from the upload response
3) Tool execution - Agent correctly calls GMAIL_CREATE_EMAIL_DRAFT with the S3 key
4) 404 error persists - Gmail tool cannot find the file at the provided S3 location
Any help or guidance is appreciated
Thanks
JoeComposio Support Agent
08/07/2025, 5:14 AMoceansidejoe
08/07/2025, 10:33 PM"attachment": {
"s3key": "122445/GMAIL/GMAIL_CREATE_EMAIL_DRAFT/request/bffab9a81ec67cf6f4b76b7576fe2bae",
"name": "ANTONECCHIA_RESUME_2025.pdf",
"mimetype": "application/pdf"
}
The Composio API is still returning a 404 error:
"error": "An error occurred (404) when calling the HeadObject operation: Not Found"Composio Support Agent
08/08/2025, 7:02 AMoceansidejoe
08/12/2025, 9:44 PMabhishekpatil4
08/13/2025, 7:47 AMoceansidejoe
08/13/2025, 3:31 PMoceansidejoe
08/13/2025, 6:39 PMabhishekpatil4
08/14/2025, 7:11 AMoceansidejoe
08/14/2025, 2:34 PMabhishekpatil4
08/14/2025, 3:12 PMabhishekpatil4
08/14/2025, 3:13 PMGMAIL_CREATE_EMAIL_DRAFT, you can just pass the path of the file you want to upload and rest would be handled by SDK. Do try and lmk if you face any issuesoceansidejoe
08/15/2025, 5:00 AMComposio Support Agent
08/15/2025, 6:43 AMoceansidejoe
08/15/2025, 6:03 PMoceansidejoe
08/17/2025, 9:55 PMComposio Support Agent
08/17/2025, 10:34 PMoceansidejoe
08/17/2025, 11:19 PM