Skip to content

Create a comment

POST
/ideas/{id}/comments
curl --request POST \
--url https://feedzzie.com/api/v1/ideas/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/comments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "content": "Thanks for the feedback! We'\''re actively working on this feature.", "is_official": true }'

Add a new comment to an idea. Setting is_official requires admin scope. Requires write scope. The comment is signed by the person who created the API key (author), and the comment remembers the key: only that same key, with admin scope, can later update it (PATCH /comments/{id}). An idea that is not approved (awaiting moderation or rejected) exists only for an admin key: any other key gets 404, as for an idea that does not exist. Safe to retry with an Idempotency-Key header: the same request sent again with the same key and the same API key creates nothing and answers 200 with the comment, as it is now; the same key with another body or on another idea answers 422 IDEMPOTENCY_KEY_REUSED. A re-send after the comment was deleted creates it again. Without the header, every request creates a comment. A merged idea takes no comment: 409, naming the idea it is merged into, whose comments include its own.

id
required
string format: uuid

Idea UUID

Idempotency-Key
string format: uuid

A UUID (any case) generated once per create and sent with every attempt of it, as for the widget (Stripe’s pattern, draft-ietf-httpapi-idempotency-key-header). Keys are scoped to the API key that sends them. Anything else answers 400 on the field Idempotency-Key.

Media typeapplication/json
object
content
required

Comment content. Trimmed, then 1-5000 characters: only spaces answers 400, as does a NUL or an unpaired surrogate

string
>= 1 characters <= 5000 characters
parent_id

Parent comment ID for replies, a comment of the same idea. A top-level comment is level 0, and replies nest down to level 3: replying to a comment at level 3 answers 400

string format: uuid
nullable
is_official

Mark as official response (requires admin scope)

boolean

Example

{
"content": "Thanks for the feedback! We're actively working on this feature.",
"is_official": true
}

Re-send of a request already answered (same Idempotency-Key, API key and body): nothing is created. The comment, as it is now

Media typeapplication/json
object
data
required
object
id
required

Unique identifier

string format: uuid
idea_id
required

Parent idea ID

string format: uuid
content
required

Comment content

string
parent_id
required

Parent comment ID for replies

string format: uuid
nullable
is_official
required

Whether this is an official team response

boolean
created_at
required

Creation timestamp

string format: date-time
updated_at
required

Last update timestamp

string format: date-time
author
required

The person who wrote it. null when there is no user author: an idea created through the API or by an anonymous visitor of the widget

object
id

User ID

string
full_name

User full name

string
nullable
avatar_url

URL to user avatar

string
nullable
meta
required
object
request_id
required

Unique request identifier for debugging

string
timestamp
required

Response timestamp

string format: date-time
pagination
object
page
required

Current page number

integer
per_page
required

Items per page: the request’s per_page, or its default

integer
total
required

Total number of items

integer
total_pages
required

Total number of pages

integer
has_more
required

Whether there are more pages

boolean
cursor

Where a walk by cursor is (GET /ideas with cursor)

object
next
required

The cursor of the next page, with the same filters; null on the last page

string
nullable
has_more
required

Whether another page follows

boolean
per_page
required

Items per page: the request’s per_page, or its default

integer

Example generated

{
"data": {
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"idea_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"content": "example",
"parent_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"is_official": true,
"created_at": "2026-04-15T12:00:00Z",
"updated_at": "2026-04-15T12:00:00Z",
"author": {
"id": "example",
"full_name": "example",
"avatar_url": "example"
}
},
"meta": {
"request_id": "example",
"timestamp": "2026-04-15T12:00:00Z",
"pagination": {
"page": 1,
"per_page": 1,
"total": 1,
"total_pages": 1,
"has_more": true
},
"cursor": {
"next": "example",
"has_more": true,
"per_page": 1
}
}
}
X-Request-Id
string

The request id, the same as the body’s meta.request_id (a 204 has no body)

X-RateLimit-Limit
integer

Maximum requests allowed in the window (when the rate limiter counted the request)

X-RateLimit-Remaining
integer

Requests remaining in the current window (when the rate limiter counted the request)

X-RateLimit-Reset
integer

When the window resets, in Unix time in milliseconds (when the rate limiter counted the request)

Comment created successfully

Media typeapplication/json
object
data
required
object
id
required

Unique identifier

string format: uuid
idea_id
required

Parent idea ID

string format: uuid
content
required

Comment content

string
parent_id
required

Parent comment ID for replies

string format: uuid
nullable
is_official
required

Whether this is an official team response

boolean
created_at
required

Creation timestamp

string format: date-time
updated_at
required

Last update timestamp

string format: date-time
author
required

The person who wrote it. null when there is no user author: an idea created through the API or by an anonymous visitor of the widget

object
id

User ID

string
full_name

User full name

string
nullable
avatar_url

URL to user avatar

string
nullable
meta
required
object
request_id
required

Unique request identifier for debugging

string
timestamp
required

Response timestamp

string format: date-time
pagination
object
page
required

Current page number

integer
per_page
required

Items per page: the request’s per_page, or its default

integer
total
required

Total number of items

integer
total_pages
required

Total number of pages

integer
has_more
required

Whether there are more pages

boolean
cursor

Where a walk by cursor is (GET /ideas with cursor)

object
next
required

The cursor of the next page, with the same filters; null on the last page

string
nullable
has_more
required

Whether another page follows

boolean
per_page
required

Items per page: the request’s per_page, or its default

integer

Example generated

{
"data": {
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"idea_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"content": "example",
"parent_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"is_official": true,
"created_at": "2026-04-15T12:00:00Z",
"updated_at": "2026-04-15T12:00:00Z",
"author": {
"id": "example",
"full_name": "example",
"avatar_url": "example"
}
},
"meta": {
"request_id": "example",
"timestamp": "2026-04-15T12:00:00Z",
"pagination": {
"page": 1,
"per_page": 1,
"total": 1,
"total_pages": 1,
"has_more": true
},
"cursor": {
"next": "example",
"has_more": true,
"per_page": 1
}
}
}
X-Request-Id
string

The request id, the same as the body’s meta.request_id (a 204 has no body)

X-RateLimit-Limit
integer

Maximum requests allowed in the window (when the rate limiter counted the request)

X-RateLimit-Remaining
integer

Requests remaining in the current window (when the rate limiter counted the request)

X-RateLimit-Reset
integer

When the window resets, in Unix time in milliseconds (when the rate limiter counted the request)

Validation error

Media typeapplication/json
object
error
required
object
code
required

Error code

string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN WRONG_KEY_TYPE INSUFFICIENT_SCOPE PLAN_LIMIT_REACHED NOT_FOUND METHOD_NOT_ALLOWED CONFLICT GONE IDEMPOTENCY_KEY_REUSED RATE_LIMITED INTERNAL_ERROR SERVICE_UNAVAILABLE
message
required

Human-readable error message

string
details

What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403

Array<object>
object
field
required

Field name with the error

string
message
required

Error message for this field

string
expected

The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)

string
limit

The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)

integer
meta
required
object
request_id
required

Unique request identifier for debugging

string
timestamp
required

Response timestamp

string format: date-time
pagination
object
page
required

Current page number

integer
per_page
required

Items per page: the request’s per_page, or its default

integer
total
required

Total number of items

integer
total_pages
required

Total number of pages

integer
has_more
required

Whether there are more pages

boolean
cursor

Where a walk by cursor is (GET /ideas with cursor)

object
next
required

The cursor of the next page, with the same filters; null on the last page

string
nullable
has_more
required

Whether another page follows

boolean
per_page
required

Items per page: the request’s per_page, or its default

integer

Example

{
"error": {
"code": "VALIDATION_ERROR",
"message": "Title is required",
"details": [
{
"field": "title",
"message": "Title is required"
}
]
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2024-01-22T10:00:00Z"
}
}

Authentication required

Media typeapplication/json
object
error
required
object
code
required

Error code

string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN WRONG_KEY_TYPE INSUFFICIENT_SCOPE PLAN_LIMIT_REACHED NOT_FOUND METHOD_NOT_ALLOWED CONFLICT GONE IDEMPOTENCY_KEY_REUSED RATE_LIMITED INTERNAL_ERROR SERVICE_UNAVAILABLE
message
required

Human-readable error message

string
details

What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403

Array<object>
object
field
required

Field name with the error

string
message
required

Error message for this field

string
expected

The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)

string
limit

The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)

integer
meta
required
object
request_id
required

Unique request identifier for debugging

string
timestamp
required

Response timestamp

string format: date-time
pagination
object
page
required

Current page number

integer
per_page
required

Items per page: the request’s per_page, or its default

integer
total
required

Total number of items

integer
total_pages
required

Total number of pages

integer
has_more
required

Whether there are more pages

boolean
cursor

Where a walk by cursor is (GET /ideas with cursor)

object
next
required

The cursor of the next page, with the same filters; null on the last page

string
nullable
has_more
required

Whether another page follows

boolean
per_page
required

Items per page: the request’s per_page, or its default

integer

Example

{
"error": {
"code": "UNAUTHORIZED",
"message": "Missing or invalid API key"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2024-01-22T10:00:00Z"
}
}

Refused: WRONG_KEY_TYPE for a public key, INSUFFICIENT_SCOPE when the key lacks the scope in details[0].expected, (creating an idea, making one active again, or deleting one whose merged ideas become active) PLAN_LIMIT_REACHED, with the resource and the limit in details, or (updating a comment the key did not create) FORBIDDEN

Media typeapplication/json
object
error
required
object
code
required

Error code

string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN WRONG_KEY_TYPE INSUFFICIENT_SCOPE PLAN_LIMIT_REACHED NOT_FOUND METHOD_NOT_ALLOWED CONFLICT GONE IDEMPOTENCY_KEY_REUSED RATE_LIMITED INTERNAL_ERROR SERVICE_UNAVAILABLE
message
required

Human-readable error message

string
details

What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403

Array<object>
object
field
required

Field name with the error

string
message
required

Error message for this field

string
expected

The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)

string
limit

The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)

integer
meta
required
object
request_id
required

Unique request identifier for debugging

string
timestamp
required

Response timestamp

string format: date-time
pagination
object
page
required

Current page number

integer
per_page
required

Items per page: the request’s per_page, or its default

integer
total
required

Total number of items

integer
total_pages
required

Total number of pages

integer
has_more
required

Whether there are more pages

boolean
cursor

Where a walk by cursor is (GET /ideas with cursor)

object
next
required

The cursor of the next page, with the same filters; null on the last page

string
nullable
has_more
required

Whether another page follows

boolean
per_page
required

Items per page: the request’s per_page, or its default

integer

Example

{
"error": {
"code": "INSUFFICIENT_SCOPE",
"message": "Admin scope required to change idea status",
"details": [
{
"field": "scope",
"message": "Requires an API key with the admin scope",
"expected": "admin"
}
]
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2024-01-22T10:00:00Z"
}
}

Resource not found

Media typeapplication/json
object
error
required
object
code
required

Error code

string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN WRONG_KEY_TYPE INSUFFICIENT_SCOPE PLAN_LIMIT_REACHED NOT_FOUND METHOD_NOT_ALLOWED CONFLICT GONE IDEMPOTENCY_KEY_REUSED RATE_LIMITED INTERNAL_ERROR SERVICE_UNAVAILABLE
message
required

Human-readable error message

string
details

What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403

Array<object>
object
field
required

Field name with the error

string
message
required

Error message for this field

string
expected

The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)

string
limit

The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)

integer
meta
required
object
request_id
required

Unique request identifier for debugging

string
timestamp
required

Response timestamp

string format: date-time
pagination
object
page
required

Current page number

integer
per_page
required

Items per page: the request’s per_page, or its default

integer
total
required

Total number of items

integer
total_pages
required

Total number of pages

integer
has_more
required

Whether there are more pages

boolean
cursor

Where a walk by cursor is (GET /ideas with cursor)

object
next
required

The cursor of the next page, with the same filters; null on the last page

string
nullable
has_more
required

Whether another page follows

boolean
per_page
required

Items per page: the request’s per_page, or its default

integer

Example

{
"error": {
"code": "NOT_FOUND",
"message": "Idea not found"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2024-01-22T10:00:00Z"
}
}

The idea is merged into another one (the message names it), or another request with the same Idempotency-Key is still being processed: retry later

Media typeapplication/json
object
error
required
object
code
required

Error code

string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN WRONG_KEY_TYPE INSUFFICIENT_SCOPE PLAN_LIMIT_REACHED NOT_FOUND METHOD_NOT_ALLOWED CONFLICT GONE IDEMPOTENCY_KEY_REUSED RATE_LIMITED INTERNAL_ERROR SERVICE_UNAVAILABLE
message
required

Human-readable error message

string
details

What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403

Array<object>
object
field
required

Field name with the error

string
message
required

Error message for this field

string
expected

The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)

string
limit

The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)

integer
meta
required
object
request_id
required

Unique request identifier for debugging

string
timestamp
required

Response timestamp

string format: date-time
pagination
object
page
required

Current page number

integer
per_page
required

Items per page: the request’s per_page, or its default

integer
total
required

Total number of items

integer
total_pages
required

Total number of pages

integer
has_more
required

Whether there are more pages

boolean
cursor

Where a walk by cursor is (GET /ideas with cursor)

object
next
required

The cursor of the next page, with the same filters; null on the last page

string
nullable
has_more
required

Whether another page follows

boolean
per_page
required

Items per page: the request’s per_page, or its default

integer

Example

{
"error": {
"code": "VALIDATION_ERROR"
}
}

The Idempotency-Key was already used with another request body: nothing about that request is revealed and nothing is created

Media typeapplication/json
object
error
required
object
code
required

Error code

string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN WRONG_KEY_TYPE INSUFFICIENT_SCOPE PLAN_LIMIT_REACHED NOT_FOUND METHOD_NOT_ALLOWED CONFLICT GONE IDEMPOTENCY_KEY_REUSED RATE_LIMITED INTERNAL_ERROR SERVICE_UNAVAILABLE
message
required

Human-readable error message

string
details

What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403

Array<object>
object
field
required

Field name with the error

string
message
required

Error message for this field

string
expected

The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)

string
limit

The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)

integer
meta
required
object
request_id
required

Unique request identifier for debugging

string
timestamp
required

Response timestamp

string format: date-time
pagination
object
page
required

Current page number

integer
per_page
required

Items per page: the request’s per_page, or its default

integer
total
required

Total number of items

integer
total_pages
required

Total number of pages

integer
has_more
required

Whether there are more pages

boolean
cursor

Where a walk by cursor is (GET /ideas with cursor)

object
next
required

The cursor of the next page, with the same filters; null on the last page

string
nullable
has_more
required

Whether another page follows

boolean
per_page
required

Items per page: the request’s per_page, or its default

integer

Example

{
"error": {
"code": "IDEMPOTENCY_KEY_REUSED",
"message": "Idempotency-Key was already used for another request"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2024-01-22T10:00:00Z"
}
}

Rate limit exceeded

Media typeapplication/json
object
error
required
object
code
required

Error code

string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN WRONG_KEY_TYPE INSUFFICIENT_SCOPE PLAN_LIMIT_REACHED NOT_FOUND METHOD_NOT_ALLOWED CONFLICT GONE IDEMPOTENCY_KEY_REUSED RATE_LIMITED INTERNAL_ERROR SERVICE_UNAVAILABLE
message
required

Human-readable error message

string
details

What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403

Array<object>
object
field
required

Field name with the error

string
message
required

Error message for this field

string
expected

The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)

string
limit

The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)

integer
meta
required
object
request_id
required

Unique request identifier for debugging

string
timestamp
required

Response timestamp

string format: date-time
pagination
object
page
required

Current page number

integer
per_page
required

Items per page: the request’s per_page, or its default

integer
total
required

Total number of items

integer
total_pages
required

Total number of pages

integer
has_more
required

Whether there are more pages

boolean
cursor

Where a walk by cursor is (GET /ideas with cursor)

object
next
required

The cursor of the next page, with the same filters; null on the last page

string
nullable
has_more
required

Whether another page follows

boolean
per_page
required

Items per page: the request’s per_page, or its default

integer

Example

{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2024-01-22T10:00:00Z"
}
}
X-RateLimit-Limit
integer

Maximum requests allowed

X-RateLimit-Remaining
integer

Requests remaining in current window

X-RateLimit-Reset
integer

When the window resets, in Unix time in milliseconds

Retry-After
integer
>= 1

Seconds to wait before retrying

Internal server error

Media typeapplication/json
object
error
required
object
code
required

Error code

string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN WRONG_KEY_TYPE INSUFFICIENT_SCOPE PLAN_LIMIT_REACHED NOT_FOUND METHOD_NOT_ALLOWED CONFLICT GONE IDEMPOTENCY_KEY_REUSED RATE_LIMITED INTERNAL_ERROR SERVICE_UNAVAILABLE
message
required

Human-readable error message

string
details

What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403

Array<object>
object
field
required

Field name with the error

string
message
required

Error message for this field

string
expected

The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)

string
limit

The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)

integer
meta
required
object
request_id
required

Unique request identifier for debugging

string
timestamp
required

Response timestamp

string format: date-time
pagination
object
page
required

Current page number

integer
per_page
required

Items per page: the request’s per_page, or its default

integer
total
required

Total number of items

integer
total_pages
required

Total number of pages

integer
has_more
required

Whether there are more pages

boolean
cursor

Where a walk by cursor is (GET /ideas with cursor)

object
next
required

The cursor of the next page, with the same filters; null on the last page

string
nullable
has_more
required

Whether another page follows

boolean
per_page
required

Items per page: the request’s per_page, or its default

integer

Example

{
"error": {
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2024-01-22T10:00:00Z"
}
}

A database read the request needs failed (the key, its organization or plan, or a resource the operation reads), or the rate limiter (Upstash) could not be reached on a write, so the request was not processed. Retry after the given delay. A failed read is never answered as a 401, 404, an empty list or a lower plan. When only Upstash fails, reads are served without the rate limiter. A vote whose updated count cannot be read answers 503 although the vote is stored: retrying it answers 409.

Media typeapplication/json
object
error
required
object
code
required

Error code

string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN WRONG_KEY_TYPE INSUFFICIENT_SCOPE PLAN_LIMIT_REACHED NOT_FOUND METHOD_NOT_ALLOWED CONFLICT GONE IDEMPOTENCY_KEY_REUSED RATE_LIMITED INTERNAL_ERROR SERVICE_UNAVAILABLE
message
required

Human-readable error message

string
details

What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403

Array<object>
object
field
required

Field name with the error

string
message
required

Error message for this field

string
expected

The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)

string
limit

The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)

integer
meta
required
object
request_id
required

Unique request identifier for debugging

string
timestamp
required

Response timestamp

string format: date-time
pagination
object
page
required

Current page number

integer
per_page
required

Items per page: the request’s per_page, or its default

integer
total
required

Total number of items

integer
total_pages
required

Total number of pages

integer
has_more
required

Whether there are more pages

boolean
cursor

Where a walk by cursor is (GET /ideas with cursor)

object
next
required

The cursor of the next page, with the same filters; null on the last page

string
nullable
has_more
required

Whether another page follows

boolean
per_page
required

Items per page: the request’s per_page, or its default

integer

Example

{
"error": {
"code": "SERVICE_UNAVAILABLE",
"message": "Service temporarily unavailable"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2024-01-22T10:00:00Z"
}
}
Retry-After
integer

Seconds to wait before retrying