---
title: "Attach a file"
method: POST
path: "/v1/ideas/{ideaId}/attachments"
tags: ["brainstorms"]
---

# Attach a file

`POST /v1/ideas/{ideaId}/attachments`

## Request

- Base URL: `https://api.flowral.app`
- URL: `https://api.flowral.app/v1/ideas/{ideaId}/attachments`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (client credentials, token URL `https://api.flowral.app/v1/oauth/token`, scopes: `flows:write`)

A reference file on the idea. `multipart/form-data`.

## Path parameters

- `ideaId` string, required

## Response `201`

CREATED

- Attachment
  - `id` string, required
  - `name` string, required
  - `mimeType` string
  - `sizeBytes` integer
  - `kind` 'reference' | 'deliverable', required
  - `uploadedAt` string, date-time

## Other responses

- `400`: MISSING_FILE · FILE_TOO_LARGE · UNSUPPORTED_FILE_TYPE
- `401`: UNAUTHORIZED
- `403`: FORBIDDEN · PLAN_REQUIRED · INSUFFICIENT_SCOPE
- `404`: NOT_FOUND
- `429`: RATE_LIMITED

---

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