# Post a comment

`POST` `https://streetartcities.com/api/comments`

Comment on something for the person using your app. For now, only suggestions in the review queue (`edit.{id}`) can get comments here. The people involved and anyone mentioned get a notification.

## Request body

- **entity** `string` · pattern: ^[a-z][a-z-]*\.[^\s#,]+$ — required
  What the comments are on, like `edit.123`
- **comment** `string` · min length: 1 · max length: 10000 — required
- **attachments** `array string[]` · max items: 20
  Links to images uploaded for the comment
- **attributes** `object`
  Anything else to keep with the comment
  - ***** `any`

## Requirements

Needs an [access token](/authentication/tokens/). When using OAuth, the token needs the [`comments:write`](/authentication/scopes/) scope.

## Responses

### `201` The new comment

- **type** `string` · const: Note — required
- **id** `string` — required
- **actor** `object` — required
  Who wrote it
  - **id** `string` — required
  - **displayName** `string` — required
  - **href** `string` — required
    A link to a profile on Street Art Cities
  - **avatar** `string`
- **noteType** `string` · const: comment — required
- **summary** `string` — required
  The author's name, as a link
- **content** `string | null`
  The comment itself. Mentions are stored as `<@Kim|https://streetartcities.com/users/123>`
- **attachments** `array string[]` — required
- **published** `string` — required
  When it was written
- **edited** `boolean`
- **likesCount** `number` — required

### `400` Invalid request

- **error** `object` — required
  - **message** `string` — required
  - **details** `array any[]`

### `401` Not logged in

- **error** `object` — required
  - **message** `string` — required
  - **details** `array any[]`

### `403` The app doesn't have the comments:write scope

- **error** `object` — required
  - **message** `string` — required
  - **details** `array any[]`

### `404` There's nothing with that ID

- **error** `object` — required
  - **message** `string` — required
  - **details** `array any[]`
