---
title: "POST /comments/{commentId}/attachment-upload-url"
method: POST
path: "/comments/{commentId}/attachment-upload-url"
tags: ["Tickets"]
---

# POST /comments/{commentId}/attachment-upload-url

`POST /comments/{commentId}/attachment-upload-url`

## Request

- Base URL: `https://connect.clever.gy`
- URL: `https://connect.clever.gy/comments/{commentId}/attachment-upload-url`
- Auth: API key in header `clevergy-api-key`

Returns a signed, temporary bucket url to upload an file for a comment

## Path parameters

- `commentId` string, uuid, required

## Request body

- CommentAttachmentRequest: Request to get a signed URL to upload a file for a comment
  - `fileName` string, required: The name of the file to upload. It should include the extension. If this file already exists, it will be overwritten.

## Response `200`

A signed, temporary bucket url to upload an file for a comment. Valid for 15 minutes. To upload a file send a PUT request adding the file as form data. The file will be uploaded to the bucket and the url will be returned in the response.

- CommentAttachmentUrl: Signed url to attach a file to a comment
  - `url` string, required: The signed url to upload the file. Valid for 15 minutes. Send a PUT request to this url with the file as form data.

## Other responses

- `default`: Unexpected error

---

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