Pagekit Docs

Guides

Troubleshooting

401 Unauthorized

  • Is the header exactly Authorization: Bearer pk_live_…?
  • Was the key revoked in Project → Settings?
  • Are you using a key from a different project?

Empty data array

Drafts are not public by default. Pass ?status=draft for authenticated reads, or publish the post.

Slug collisions

Slugs are unique per project. Creating a second post titled "Hello" produces hello-2.

Webhook did not arrive

  • Is the endpoint publicly reachable over HTTPS?
  • Is the webhook subscribed to that event and not paused?
  • Check your host's logs for a non-2xx response.

Images 404

Media URLs point at object storage. Confirm the asset was registered with POST /v1/media and that the bucket is public behind the CDN.

Still stuck

Open the dashboard and use GET /v1/me to confirm which project your key resolves to.