# POST /api/external/v2/ledger_attachments is deprecated

Pennylane API deprecated POST /api/external/v2/ledger_attachments without giving a shutdown date yet.

The provider has deprecated POST /api/external/v2/ledger_attachments without a shutdown date. Calls hitting this endpoint will eventually fail. The change affects all requests previously used to upload a file through this route.

## What to use instead

Use POST /api/external/v2/file_attachments instead. Note that moving to the replacement requires the file_attachments:all scope.

- API: Pennylane API (api.pennylane.com)
- Kind: Endpoint removal
- Announced: January 14, 2026
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `POST /api/external/v2/ledger_attachments`
- Source: [Announcement](https://pennylane.readme.io/docs/2026-api-changes-guide)
- Verified: October 26, 2026, against Pennylane API's own pages
- Page: https://www.okapi.bot/providers/pennylane-api/breaking-changes/post-api-external-v2-ledger-attachments-is-deprecated/

## Pennylane API's words

> Deprecated: POST /api/external/v2/ledger_attachments (Upload a file) Use instead: POST /api/external/v2/file_attachments (Upload a file)

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
