Create an idea
const url = 'https://feedzzie.com/api/v1/ideas';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"title":"Add keyboard shortcuts","description":"Adding keyboard shortcuts would improve productivity for power users.","topic_id":"456e7890-e89b-12d3-a456-426614174000","is_private":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://feedzzie.com/api/v1/ideas \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "title": "Add keyboard shortcuts", "description": "Adding keyboard shortcuts would improve productivity for power users.", "topic_id": "456e7890-e89b-12d3-a456-426614174000", "is_private": false }'Create a new idea in the organization’s default project. Ideas created via API are automatically approved and have no user author (author: null). Requires write scope. When the project requires a topic for new ideas, a request without topic_id answers 400. The idea is open, so it counts toward the plan’s active ideas limit: when the organization has reached it, the request answers 403 PLAN_LIMIT_REACHED and no idea is created. Two requests at once cannot both take the last place: the second answers 403 PLAN_LIMIT_REACHED. 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 idea, as it is now, also when the plan has filled up since; the same key with another body answers 422 IDEMPOTENCY_KEY_REUSED, and once the idea it created was deleted, 410 GONE (for 30 days after the delete). Without the header, every request creates an idea.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Idea title. Trimmed, then 1-200 characters: a title of only spaces answers 400, as does a NUL or an unpaired surrogate
Detailed description, trimmed (empty or only spaces is stored as null). A NUL or an unpaired surrogate answers 400
Topic UUID (must belong to your organization’s default project). Required when that project requires a topic for new ideas
Whether the idea should be private
Example
{ "title": "Add keyboard shortcuts", "description": "Adding keyboard shortcuts would improve productivity for power users.", "topic_id": "456e7890-e89b-12d3-a456-426614174000", "is_private": false}Responses
Section titled “Responses”Re-send of a request already answered (same Idempotency-Key, API key and body): nothing is created. The idea, as it is now
object
object
Unique identifier
Idea title
Detailed description
pending_review is an idea awaiting moderation and rejected one a moderator rejected: both are not approved, so only an admin key sees them (listed with include_pending=true, and by id); their status changes only once a moderator approves them. duplicate is an idea merged into another (merged_into and is_duplicate_of name it); it stays approved, so every key lists and reads it, and it is accepted as a status filter. Of the three, only duplicate, with merged_into, is a status update value
Status of an idea in the feedback workflow
Number of votes
Number of comments
Whether the idea is private to the organization
Whether the idea is pinned
False for an idea awaiting moderation (status pending_review) and for a rejected one (status rejected), which only an admin key sees; true otherwise, including a duplicate idea
The id of the idea this one is a duplicate of (the main idea, for a merged idea), or null. It is also null for an idea with status duplicate whose original was deleted
The idea this one is merged into (its status is then duplicate), or null; a duplicate marked before merging existed has is_duplicate_of and no merged_into. Undo with PATCH and merged_into: null
Creation timestamp
Last update timestamp
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
User ID
User full name
URL to user avatar
object
Topic UUID
Topic name
Topic color hex code
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
Example
{ "data": { "status": "open" }}Headers
Section titled “Headers”The request id, the same as the body’s meta.request_id (a 204 has no body)
Maximum requests allowed in the window (when the rate limiter counted the request)
Requests remaining in the current window (when the rate limiter counted the request)
When the window resets, in Unix time in milliseconds (when the rate limiter counted the request)
Idea created successfully
object
object
Unique identifier
Idea title
Detailed description
pending_review is an idea awaiting moderation and rejected one a moderator rejected: both are not approved, so only an admin key sees them (listed with include_pending=true, and by id); their status changes only once a moderator approves them. duplicate is an idea merged into another (merged_into and is_duplicate_of name it); it stays approved, so every key lists and reads it, and it is accepted as a status filter. Of the three, only duplicate, with merged_into, is a status update value
Status of an idea in the feedback workflow
Number of votes
Number of comments
Whether the idea is private to the organization
Whether the idea is pinned
False for an idea awaiting moderation (status pending_review) and for a rejected one (status rejected), which only an admin key sees; true otherwise, including a duplicate idea
The id of the idea this one is a duplicate of (the main idea, for a merged idea), or null. It is also null for an idea with status duplicate whose original was deleted
The idea this one is merged into (its status is then duplicate), or null; a duplicate marked before merging existed has is_duplicate_of and no merged_into. Undo with PATCH and merged_into: null
Creation timestamp
Last update timestamp
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
User ID
User full name
URL to user avatar
object
Topic UUID
Topic name
Topic color hex code
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
Example
{ "data": { "status": "open" }}Headers
Section titled “Headers”The request id, the same as the body’s meta.request_id (a 204 has no body)
Maximum requests allowed in the window (when the rate limiter counted the request)
Requests remaining in the current window (when the rate limiter counted the request)
When the window resets, in Unix time in milliseconds (when the rate limiter counted the request)
Validation error
object
object
Error code
Human-readable error message
What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403
object
Field name with the error
Error message for this field
The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)
The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
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
object
object
Error code
Human-readable error message
What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403
object
Field name with the error
Error message for this field
The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)
The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
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
object
object
Error code
Human-readable error message
What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403
object
Field name with the error
Error message for this field
The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)
The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
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" }}Another request with the same Idempotency-Key is still being processed: retry later
object
object
Error code
Human-readable error message
What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403
object
Field name with the error
Error message for this field
The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)
The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
Example
{ "error": { "code": "CONFLICT", "message": "A request with this Idempotency-Key is in progress: retry later" }, "meta": { "request_id": "req_abc123", "timestamp": "2024-01-22T10:00:00Z" }}The idea this Idempotency-Key created was deleted: nothing is created
object
object
Error code
Human-readable error message
What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403
object
Field name with the error
Error message for this field
The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)
The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
Example
{ "error": { "code": "GONE", "message": "The idea this Idempotency-Key created was deleted" }}The Idempotency-Key was already used with another request body: nothing about that request is revealed and nothing is created
object
object
Error code
Human-readable error message
What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403
object
Field name with the error
Error message for this field
The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)
The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
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
object
object
Error code
Human-readable error message
What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403
object
Field name with the error
Error message for this field
The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)
The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
Example
{ "error": { "code": "RATE_LIMITED", "message": "Rate limit exceeded" }, "meta": { "request_id": "req_abc123", "timestamp": "2024-01-22T10:00:00Z" }}Headers
Section titled “Headers”Maximum requests allowed
Requests remaining in current window
When the window resets, in Unix time in milliseconds
Seconds to wait before retrying
Internal server error
object
object
Error code
Human-readable error message
What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403
object
Field name with the error
Error message for this field
The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)
The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
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.
object
object
Error code
Human-readable error message
What the error is about: the fields of a validation error, or the scope, key type or plan limit of a 403
object
Field name with the error
Error message for this field
The value that would be accepted: the scope (INSUFFICIENT_SCOPE, field scope) or the key type (WRONG_KEY_TYPE, field key_type)
The plan’s limit for the resource named in field (PLAN_LIMIT_REACHED)
object
Unique request identifier for debugging
Response timestamp
object
Current page number
Items per page: the request’s per_page, or its default
Total number of items
Total number of pages
Whether there are more pages
Where a walk by cursor is (GET /ideas with cursor)
object
The cursor of the next page, with the same filters; null on the last page
Whether another page follows
Items per page: the request’s per_page, or its default
Example
{ "error": { "code": "SERVICE_UNAVAILABLE", "message": "Service temporarily unavailable" }, "meta": { "request_id": "req_abc123", "timestamp": "2024-01-22T10:00:00Z" }}Headers
Section titled “Headers”Seconds to wait before retrying