---
title: "Uploads a new team-scoped public attachment."
method: POST
path: "/api/attachments/public"
tags: ["Attachments"]
---

# Uploads a new team-scoped public attachment.

`POST /api/attachments/public`

## Request

- Base URL: `https://app.airfocus.com`
- URL: `https://app.airfocus.com/api/attachments/public`
- Auth: HTTP bearer

Stores a binary payload as a publicly-accessible attachment owned by the authenticated team. Public attachments can later be retrieved without authentication via the public download endpoint.

## Query parameters

- `fileName` string, required

## Headers

- `Content-Type` string

## Response `200`

- Attachment
  - `contentType` string, required
  - `createdAt` string, date-time, required
  - `fileName` string, required
  - `id` string, uuid, required
  - `isPublic` boolean, required
  - `lastUsedAt` string, date-time, required
  - `size` integer, required
  - `teamId` string, uuid, required

## Other responses

- `default`: If any other error happens.

---

[API](https://skmtc.dev/airfocus/apis/airfocus-api.md) · [All operations](https://skmtc.dev/airfocus/apis/airfocus-api/llms.txt) · [OpenAPI document](https://skmtc.dev/airfocus/apis/airfocus-api/revisions/fc9ccaa2ec6d?raw)
