---
title: Attachments API
description: "Use the AI Inbx attachments API. Browse endpoints, request parameters, response schemas, and code examples for your integration."
sidebar:
  label: Overview
---

{/* Generated by scripts/openapi.ts from the shared API contract. */}

Download original and prepared attachment content.

## Endpoints

| Method | Operation | Path |
| --- | --- | --- |
| `GET` | [Download an attachment](/api/endpoints/attachments/download-attachment) | `/attachments/{attachment_id}` |
| `HEAD` | [Inspect attachment metadata](/api/endpoints/attachments/inspect-attachment) | `/attachments/{attachment_id}` |
| `GET` | [Download prepared attachment text](/api/endpoints/attachments/retrieve-attachment-content) | `/attachments/{attachment_id}/content` |

## Request essentials [#request-essentials]

Use `https://api.aiinbx.com/api/v2` as the base URL and send your API key in `Authorization: Bearer <key>`. Keep credentials on your server.

See [Authentication](/authentication) for scopes, [Conventions](/reference/conventions) for pagination and idempotency, and [Errors](/reference/errors) for recovery guidance. Each endpoint page includes its parameters, response schemas, and copyable curl, JavaScript, and Python examples.
