---
title: "Confirm attachment upload and save to database"
method: POST
path: "/cards/{cardPublicId}/attachments/confirm"
tags: ["Attachments"]
---

# Confirm attachment upload and save to database

`POST /cards/{cardPublicId}/attachments/confirm`

Confirms an attachment upload and saves the record to the database

## Path parameters

- `cardPublicId` string, required

## Request body

- object
  - `s3Key` string, required
  - `filename` string, required
  - `originalFilename` string, required
  - `contentType` string, required
  - `size` number, required

## Response `200`

Successful response

- object
  - `publicId` string, required
  - `filename` string, required
  - `originalFilename` string, required
  - `contentType` string, required
  - `size` number, required
  - `s3Key` string, required
  - `createdAt` string, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `500` — Internal server error

---

[API](https://skmtc.net/kan/apis/kan-api.md) · [All operations](https://skmtc.net/kan/apis/kan-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kan/kan-api/revisions/3235f0c88e7a/schema)
