Oblive Docs
Integrations

Strapi

Read selected endpoints of an organization-owned Strapi backend with a read-only API token.

The Strapi connector reads exact endpoints of your Strapi server through a fixed backend provider. You choose the server origin and every endpoint path agents may read. The connector is always Read-only: agents receive one read tool and no writes.

Oblive stores the API token encrypted in the backend. Agents receive a short-lived execution capability, never the token. Your organization owns the Strapi server, its permissions and its data.

Operator, Chat, Growth, Engineering and Support receive the connector. Every profile reads only the endpoints configured for the organization. New organizations start with Strapi disabled; existing workspaces show the Strapi card after Oblive is updated.

Before you connect

The Strapi server must be reachable over public HTTPS on the default port, at a DNS name rather than an IP address. Hosts such as localhost and names ending in .local, .localdomain, .internal or .home.arpa are rejected. Oblive resolves the host on every request and rejects it when it resolves to a non-public address. Redirects are rejected, so use the origin that answers directly.

Each allowed endpoint must already exist as a GET route under /api/. The connection check reads the first endpoint with per_page=1, so list a route that accepts that parameter first.

Create the API token

In the Strapi 4 or Strapi 5 admin panel:

  1. Open Settings → Global settings → API Tokens and select Create new API Token.
  2. Enter a Name and, optionally, a Description.
  3. Choose a Token duration: 7, 30 or 90 days, or Unlimited. Choose a duration your organization will rotate.
  4. Set Token type to Custom.
  5. Under each content type, such as Article, enable only the actions behind the endpoints Oblive should read. For /api/articles, enable only find.
  6. Select Save and copy the token immediately. Strapi shows it only once.

Do not use Full access. Prefer Custom over Read-only, which grants find and findOne on every content type.

Connect

  1. Open Integrations and select Strapi.
  2. In Connection, enter the Strapi origin, such as https://cms.example.com, without a path. A trailing slash or uppercase host name is normalized.
  3. Under Allowed endpoints, list each GET path under /api/ that your agents need, one per line, such as /api/articles.
  4. Paste the Strapi API token and select Connect Strapi.
  5. Confirm the toast reports Connected — Oblive can access the selected data.

Connecting reads <origin><first endpoint>?per_page=1 before saving. If you connect without an endpoint, Oblive saves the token without a read and the integration stays Needs configuration. Saving endpoints later validates the token against the first one.

Endpoint paths match exactly:

  • start with /api/, followed by one to eight segments;
  • each segment starts with a letter or digit and contains only letters, digits, _ or -, up to 64 characters;
  • query strings, route parameters such as :id, dots and encoded characters are rejected; and
  • up to 20 unique paths are allowed.

What agents can do

Agents get one read-only tool, strapi_get. Its schema lists the allowed endpoints, so an agent cannot request any other path.

InputSent asLimits
pathRequest pathOne of the allowed endpoints.
perPageper_page1–200.
afterafter1–128 letters, digits, _ or -.
pagepagination[page]1–10,000.
pageSizepagination[pageSize]1–100.

Use perPage and after for cursor-paginated custom routes, and page and pageSize for Strapi content API routes. Other query parameters, such as filters, sorting or population, cannot be sent.

Every call is a GET with Accept: application/json and the token as Bearer authorization. It times out after 15 seconds and never follows redirects. A response larger than 256 KiB is rejected with a request for a smaller page. The result contains the path, the query sent and the endpoint’s JSON response.

Strapi has no retained Insights collection. Oblive records connection and operation health only.

Check connection

Check connection repeats the one-item read of the first endpoint and runs strapi_get against it with perPage: 1. The result is recorded as operation health.

Strapi responseMeaningWhat to do
401The token was rejected or has expired.Create a new token and reconnect.
403The token lacks the action behind the path.The integration needs configuration. Enable that action on the token in Strapi.
404Strapi has no route at the path.The integration needs configuration. Correct the path or deploy the route.
400Strapi rejected the query parameters.List a route that accepts per_page first.
429, 5xx or no responseStrapi is rate-limiting, failing or too slow.Wait, then check the connection again.

Strapi ignores unknown query keys by default. A Strapi 5 server with strict query parameters enabled rejects per_page on core content API routes, so list such a route after one that accepts per_page.

Readiness and rotation

StateWhat to do
Needs credentialsPaste a Strapi API token and connect.
Needs configurationAdd at least one allowed endpoint, or fix the path or token permission reported by the check.
DisabledEnable the integration in Connection.
ReadyRun a small bounded read before depending on the connector.

The token must be 16–4096 printable ASCII characters. It is write-only and never returned to the browser or an agent process. To rotate it, create a new token in Strapi, reconnect with it, confirm the check succeeds, then revoke the old token in Strapi. Rotating the token, changing the origin or changing the endpoint list invalidates older execution capabilities.

Changing the origin of a connected integration requires entering the token again. The token field appears when you edit the origin, and Oblive never sends a saved token to a new origin.

Troubleshooting

  • Origin rejected: enter only https:// and the host name, without a port, path, query or embedded credential. Private, internal and IP-address hosts are not accepted.
  • Endpoint rejected: remove query strings and route parameters, and enter the exact route path under /api/.
  • Redirect rejected: enter the origin Strapi finally answers on, such as the www or custom domain it redirects to.
  • Response too large: ask the agent to request a smaller page with perPage or pageSize.

For access behavior shared by every connector, see Access and Consequential Actions.