logo
InboxDelete an attachment
Inbox

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" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "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_...)
Bearer Token
Bearer Tokenstring
Required

API key as Bearer token

API key as Bearer token
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_...)

header
Authorizationstring
Required

Bearer token. API key as Bearer token

Query Parameters

keystring
Required

The attachment storage key returned from the upload endpoint

Responses

successboolean
dataobject