# A feedback API your stack can read

Canonical: https://feeblo.com/features/api Markdown mirror of: https://feeblo.com/features/api

One workspace, one key, versioned REST. Read boards and posts, write comments and votes, publish changelog entries, and keep your CRM in step without a browser session.

- Base URL: `https://api.feeblo.com/api/v1`
- OpenAPI 3.1 document: `https://api.feeblo.com/api/v1/openapi.json`
- Reference: `https://api.feeblo.com/api/v1/docs`
- Guide: https://docs.feeblo.com/developers/public-api

## The records behind the feedback loop

The Public API is the versioned HTTP API for one workspace. It covers the board, the discussion around a post, the changelog, and the customer records that make feedback actionable. It is not the widget HTTP API, which anonymous visitors call, and it is not the dashboard transport, which uses session-authenticated RPC.

- **Boards and posts.** List the boards in a workspace and read the posts on them. Write scopes add create, update, delete, and merge for posts.
- **Comments and votes.** Read discussion threads and vote counts. Write scopes cover comments, pinned comments, and vote creation or removal.
- **Tags.** Read the tags that organize a board and assign them to posts. Tags have their own create, update, delete, and assign scopes.
- **Changelog.** Read entries and write them. Publishing is a separate scope because it emails every changelog subscriber.
- **Companies.** Keep company records in step with your CRM. Company writes are opt-in and scoped separately from post writes.
- **End users.** Read the people behind feedback and write end-user records. This is how a support tool resolves a customer without a browser session.

The API is deliberately narrow. It does not try to be a general-purpose database client, and it does not expose another workspace through a parameter. A key is the boundary, and the workspace that owns the key is the only data the key can reach. That makes the API safe to hand to a server-side job without a separate permission model.

## One key, one workspace, fixed scopes

A workspace admin or owner creates keys in the dashboard under Settings, then Developers. The plaintext key is shown once, starts with `fbk_`, and is bound to the workspace that owns it. No request parameter can point a key at another workspace.

Every key gets the read scopes for boards, posts, comments, votes, tags, and changelog. Write scopes, CRM scopes, and end-user scopes are opt-in at creation. A key never gains a scope later, so an integration that needs more gets a new key with the wider set.

| Capability | Read scope | Write scopes |
| --- | --- | --- |
| Boards | `boards.read` | None |
| Posts | `posts.read` | `posts.create`, `posts.update`, `posts.delete`, `posts.merge` |
| Comments | `comments.read` | `comments.create`, `comments.update`, `comments.delete`, `comments.pin` |
| Votes | `votes.read` | `votes.create`, `votes.delete` |
| Tags | `tags.read` | `tags.create`, `tags.update`, `tags.delete`, `tags.assign` |
| Changelog | `changelog.read` | `changelog.create`, `changelog.update`, `changelog.delete`, `changelog.publish` |
| Companies | `companies.read` | `companies.create`, `companies.update`, `companies.delete` |
| End users | `end_users.read` | `end_users.write` |

Publishing is separate from editing because it emails every changelog subscriber. Merging is separate because it archives one post and moves its comments and votes onto another. Treat both as operations with a real audience, not as a save button.

Send the key in the `x-api-key` header. There is no OAuth flow and no session cookie.

```bash
curl https://api.feeblo.com/api/v1/boards \
  -H "x-api-key: fbk_..."
```

On feeblo cloud, the Public API is included in Starter and Professional. The Free plan blocks key creation, and an existing key answers 403 with `PLAN_REQUIRES_UPGRADE` until the workspace upgrades. Keys are kept while the workspace is on Free, can still be revoked, and work again on upgrade. A self-hosted server serves the same paths from its own `API_URL`.

## Responses you can switch on

Every response is JSON. A failure carries a machine-readable `_tag`:

```json
{
  "_tag": "FORBIDDEN_SCOPE",
  "message": "This API key is missing the posts.create scope."
}
```

The message is for a human and may change. The tag is part of the contract and grows append-only within v1. Switch on the tag, not the message.

| Status | Tag | Meaning |
| --- | --- | --- |
| 401 | `MISSING_API_KEY` | No `x-api-key` header, or an empty one |
| 401 | `INVALID_API_KEY` | Unknown, revoked, expired, or disabled key |
| 403 | `FORBIDDEN_SCOPE` | The key lacks the scope the endpoint requires |
| 403 | `PLAN_REQUIRES_UPGRADE` | The workspace plan does not include the Public API |
| 404 | `NOT_FOUND` | The record does not exist in this workspace |
| 409 | `CONFLICT` | The write conflicts with the current state |
| 429 | `RATE_LIMITED` | The per-key budget is exhausted |
| 500 | `INTERNAL_ERROR` | Unexpected server failure |
| 503 | `SERVICE_UNAVAILABLE` | A required dependency is unavailable |

A 404 does not reveal whether the record exists in another workspace. It means the record is not in the workspace the key belongs to. A 409 means the write conflicts with the current state, for example a merge or update that no longer matches. A 503 means a dependency is down and the request fails closed instead of returning partial data.

## Pagination and rate limits

List endpoints accept `limit` from 1 to 100, default 25, and an opaque `cursor`. The response carries the next cursor as `nextCursor`:

```json
{
  "data": [],
  "nextCursor": null
}
```

Pass `nextCursor` back as `cursor` and repeat until it is null. The cursor is opaque, so do not parse it or construct one by hand.

Rate limits are per key, not per IP, and reads and writes share one budget of 300 requests per minute. Every successful response and every 429 reports the budget:

| Header | Meaning |
| --- | --- |
| `X-RateLimit-Limit` | Requests allowed in the current window |
| `X-RateLimit-Remaining` | Requests left after this one |
| `X-RateLimit-Reset` | When the budget next allows a request, as a Unix timestamp in seconds |

A request refused before it spends a budget carries none of these headers. That covers a missing key, an invalid key, and a workspace plan without the API. A 429 includes `Retry-After`.

## A version you can pin

The path carries the version. Within v1, new fields, new error codes, and new optional request fields may appear. Existing fields keep their meaning and type, and are not removed. A breaking change ships as `/api/v2`. When a v2 exists, v1 responses carry `Deprecation` and `Sunset` headers, so a client has a date to work with.

The OpenAPI document is served at `/api/v1/openapi.json`. The reference at `/api/v1/docs` is generated from the same document, so a generated client and the readable reference cannot drift apart.

## Build the bridge your workflow needs

The API exists so feedback does not stop at the board. A support tool can file a post. A CRM can read the demand behind an account. A release pipeline can draft the changelog entry and publish it when the deploy finishes.

1. **Sync feedback to a CRM.** Read posts, votes, and comments, then match them to companies and end users. Write the CRM IDs back as companies or custom fields.
2. **File posts from support.** Create a post when a support conversation turns into a feature request. Attach the requester as an end user, then let the board handle votes and status.
3. **Publish from a CMS.** Create a changelog entry from your release notes, then call the publish operation when the release is live. Expect an email to every subscriber.
4. **Report on demand.** Pull posts and votes into a warehouse or a dashboard. The list endpoints page with a cursor, so a nightly job can walk the full set.

Authentication is a header, so a server-side job or a queue worker can call the API without a browser. Keys belong to a workspace, and every write is attributed to that workspace, not to a person.

A nightly sync is the simplest integration: list posts with a cursor, write the rows you care about to your warehouse, and store the cursor only if you can replay from a known point. The API does not promise a change feed. Webhooks cover the events that need to arrive in real time, and they are configured separately from the key.

## Three surfaces, three jobs

### Public API

Authenticated with an `x-api-key` header. One workspace per key. Covers boards, posts, comments, votes, tags, changelog, companies, and end users. Budget is 300 requests per minute, shared by reads and writes.

### Widget HTTP API

No key and no session. Anonymous visitors call it to read public boards and updates, check for duplicates, and submit feedback. Four routes under `/api/widget/v1`, rate limited by client IP, and limited to public boards.

### MCP

The same operations as tools at `https://api.feeblo.com/mcp` over streamable HTTP, using the same key. Useful when an agent should read the board without a custom HTTP client.

## Where keys live

Settings, then Developers, in the workspace dashboard. A key can be revoked at any time. Revoking one does not touch the others, so an integration can have its own key and its own scope set.

A key cannot:

- Read another workspace.
- Gain a scope after creation.
- Use a session cookie or an OAuth token.
- Bypass the plan gate on the hosted service.

## Public API FAQ

### Where is the API reference?

The readable reference is at https://api.feeblo.com/api/v1/docs. The OpenAPI 3.1 document is at https://api.feeblo.com/api/v1/openapi.json, and the guide at https://docs.feeblo.com/developers/public-api explains authentication, scopes, pagination, and versioning.

### How do I authenticate a request?

Create a workspace API key in the dashboard under Settings, then Developers, and send it in the `x-api-key` header. There is no OAuth flow and no session cookie. The plaintext key is shown once and starts with `fbk_`.

### Which plan includes the Public API?

On feeblo cloud, the Public API is included in Starter and Professional. The Free plan blocks key creation, and an existing key answers 403 with `PLAN_REQUIRES_UPGRADE` until the workspace upgrades. A self-hosted server serves the same paths from its own `API_URL`.

### What is the rate limit?

Reads and writes share one budget of 300 requests per minute per key. Successful responses and 429 responses carry `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and `X-RateLimit-Reset`. A 429 includes `Retry-After`.

### How do I read past the first page?

List endpoints accept `limit` from 1 to 100, default 25, and an opaque `cursor`. The response carries the next cursor as `nextCursor`. Pass it back as `cursor` and repeat until `nextCursor` is null.

### Is v1 stable?

Yes. Within v1, new fields, new error codes, and new optional request fields may appear, but existing fields keep their meaning and type and are not removed. A breaking change ships as `/api/v2`, and v1 responses then carry `Deprecation` and `Sunset` headers.

## Next

- Public API guide: https://docs.feeblo.com/developers/public-api
- OpenAPI document: https://api.feeblo.com/api/v1/openapi.json
- API reference: https://api.feeblo.com/api/v1/docs
- MCP server: https://feeblo.com/features/mcp
- Widget HTTP API: https://feeblo.com/features/widget
