v1.26.0 — Project details in the API, and entry links in React hooks

1.26.0New featureDenis Povarov

Your site can now read the project's name, default language and portal address in one request, and the React hooks resolve links between entries once the provider has getPath.

New

  • Project details. GET /v1/project, or kookee.project.get() in @kookee/sdk 1.17.0, returns the project's name, its default language, the address of its hosted portal (null while the portal is off) and whether its widget settings are saved. Each call counts as one API request.

  • Entry links in React hooks. KookeeProvider in @kookee/react 1.17.0 takes getPath. A link from one entry to another inside a body read through the hooks then gets its href, where before it showed as plain text.

The @kookee/react README now uses apiKey in every example: projectId works only while the hosted portal is on, so on your own site use the API key and list your domains under Allowed Origins in Settings → Project.

The Allowed Origins card in project settings with https://lumen.example and https://www.lumen.example on the list

Getting it

Run npm install @kookee/sdk@latest, and add @kookee/react@latest if you use the React package (1.17.0 needs SDK 1.17.0). The endpoint is live on every plan. See Using the REST API without the SDK and Reading Kookee content with React hooks.

Learn more