logo
InboxDelete an attachment

Delete an attachment

Deletes an attachment from R2 storage. The key must start with inbox-attachments/ and belong to the current workspace.

curl -X DELETE "https://api.sendkit.ai/v1/inbox/attachments?key=inbox-attachments/ws123/1717200000000-proposal.pdf" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY"
{
  "success": true,
  "data": {
    "message": "Attachment deleted"
  }
}
DELETE
/v1/inbox/attachments
DELETE
API Key (header: X-Api-Key)
X-Api-Keystring
Required

Platform API key (sk_user_...) or Workspace API key (sk_...)

Platform API key (sk_user_...) or Workspace API key (sk_...)
query
keystring
Required

The attachment storage key returned from the upload endpoint

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-Api-Keystring
Required

API Key for authentication. Platform API key (sk_user_...) or Workspace API key (sk_...)

Query Parameters

keystring
Required

The attachment storage key returned from the upload endpoint

Responses

successboolean
dataobject