Skip to main content
DELETE
/
inbox_messages
/
{inbox_message_id}
/
attachments
/
{id}
JavaScript
import Moonbase from '@moonbaseai/sdk';

const client = new Moonbase({
  apiKey: process.env['MOONBASE_API_KEY'], // This is the default and can be omitted
});

await client.inboxMessages.attachments.delete('id', { inbox_message_id: 'inbox_message_id' });
{
  "type": "errors",
  "errors": [
    {
      "type": "error",
      "status": "400",
      "title": "Bad Request",
      "detail": "The request could not be understood due to malformed syntax or invalid parameters."
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.moonbase.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Your Moonbase API key.

Path Parameters

inbox_message_id
string
required

The ID of the Message.

id
string
required

The ID of the attachment to remove.

Response

Deletion succeeded.