---
title: "POST /v1/{+parent}/attachments:upload"
method: POST
path: "/v1/{+parent}/attachments:upload"
tags: ["media"]
---

# POST /v1/{+parent}/attachments:upload

`POST /v1/{+parent}/attachments:upload`

Uploads an attachment. For an example, see [Upload media as a file attachment](https://developers.google.com/workspace/chat/upload-media-attachments). Requires user [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.messages.create` - `https://www.googleapis.com/auth/chat.messages` - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File types blocked by Google Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).

## Path parameters

- `parent` string, required

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/chat.md) · [All operations](https://skmtc.dev/google/apis/chat/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/chat/revisions/a57a778f1fcb/schema)
