Docs REST API
API overview
The base URL, the request format, pagination, errors and rate limits of the Feedback Pilgrim REST API.
The REST API reads and writes the data of one project: posts, release notes, contacts, testimonials and tags. Each request uses an API token, and the token decides the project. Read Authentication.
The OpenAPI spec and the Postman collection describe each endpoint. Read OpenAPI and Postman.
The MCP server uses the same code and the same validation. Read MCP server.
Base URL
https://feedback.example.com/api/public/v1
Use the dashboard host of your instance, that is the host of APP_URL.
Keys
The API uses two keys:
| Key | Where to get it | Endpoints |
|---|---|---|
| API token | Settings > API Tokens. Read Authentication. | All endpoints of /api/public/v1 |
Publishable key (pk_) |
Settings > Embed Widget. Read Widget init. | POST /api/v1/init only |
An API token has all abilities (*) and no expiry date. The app has no token abilities to limit a token. A token can read and change all the data of its project.
The publishable key is public. The widget sends it from the browser. It gives no access to the REST API.
Endpoints
| Method | Path | Page |
|---|---|---|
POST |
/init |
Init |
GET, POST |
/posts |
Posts |
GET, PUT, PATCH, DELETE |
/posts/{id} |
Posts |
GET, POST |
/release-notes |
Release notes |
GET, PUT, PATCH, DELETE |
/release-notes/{id} |
Release notes |
GET, POST |
/contacts |
Contacts |
GET, PUT, PATCH |
/contacts/{id} |
Contacts |
GET, POST |
/testimonials |
Testimonials |
GET, PUT, PATCH, DELETE |
/testimonials/{id} |
Testimonials |
GET, POST |
/tags |
Tags |
PUT, PATCH, DELETE |
/tags/{id} |
Tags |
The widget endpoint has another prefix and another key:
| Method | Path | Page |
|---|---|---|
POST |
/api/v1/init |
Widget init |
An update accepts PUT or PATCH. Both change only the fields that you send.
DELETE on a post, a release note or a testimonial always returns 405 with {"message": "Method not allowed"}. The only delete in the API is the delete of a tag.
Request format
Send these headers with each request:
Authorization: Bearer <your-token>
Accept: application/json
Content-Type: application/json
Send Accept: application/json. Without it, an error can come back as a redirect instead of JSON.
The app does not read a project ID from the request. It takes the project from the token. A record of another project returns 404.
Lists and pagination
Each list endpoint accepts these query parameters:
| Parameter | Default | Rules |
|---|---|---|
page |
1 |
A number below 1 counts as 1. |
per_page |
15 |
Maximum 100. A number below 1 counts as 15. |
search |
none | Finds the text in some fields. Each endpoint page lists the fields. |
sort_by |
Differs for each endpoint | One of the columns that the endpoint page lists. |
sort_direction |
desc (asc for tags) |
asc or desc. Another value counts as the default. |
If sort_by is not in the list of the endpoint, the list has no fixed order. The tags list is different: it sorts by title.
A list returns the pagination object of Laravel:
{
"current_page": 1,
"data": [],
"first_page_url": "https://feedback.example.com/api/public/v1/posts?page=1",
"from": 1,
"last_page": 3,
"last_page_url": "https://feedback.example.com/api/public/v1/posts?page=3",
"links": [],
"next_page_url": "https://feedback.example.com/api/public/v1/posts?page=2",
"path": "https://feedback.example.com/api/public/v1/posts",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 42
}
The records are in data. To read all the pages, follow next_page_url until it is null.
Errors
| Status | Body | Cause |
|---|---|---|
401 |
{"message": "Unauthenticated."} |
The token is missing, wrong or deleted, or its user is deactivated. |
401 |
{"error": "Invalid API token"} |
The token has no project, or its user is not a member of the project now. |
404 |
{"message": "..."} |
The record does not exist in the project of the token. |
405 |
{"message": "Method not allowed"} |
A delete that the API does not support. |
422 |
{"message": "...", "errors": {"field": ["..."]}} |
The request failed validation. |
429 |
{"message": "Too Many Attempts."} |
The rate limit stopped the request. |
A 422 body looks like this:
{
"message": "The title field is required.",
"errors": {
"title": ["The title field is required."]
}
}
Rate limit
The API allows 120 requests a minute for each user. All the tokens of one user share this limit. Without a user, for example for the widget init call, the limit applies to each IP address.
Each response has the headers X-RateLimit-Limit and X-RateLimit-Remaining. A 429 response also has Retry-After, the number of seconds to wait. The MCP server has its own limit. Read MCP server.
Dates
The API returns dates as ISO 8601 strings in UTC, for example 2026-11-17T09:00:00.000000Z.