P

Payload REST API

REST discovered

Details
URL
https://<your-payload-host>/api
Docs
https://payloadcms.com/docs/rest-api/overview
Authentication
Payload user JWT jwt discovered Get key ↗
Authorization: JWT <credential>

Enable auth on a Payload collection, then authenticate a user via the collection's login operation as described in Authentication Operations. The response includes a token you can send as Authorization: JWT <token> per JWT Strategy.

Payload user API key api_key discovered Get key ↗
Authorization: <collection-slug> API-Key <credential>

Enable auth.useAPIKey: true on an auth collection, then in the Payload Admin UI generate an API key for a user in that collection, as documented in API Key Strategy. Requests send it in Authorization using the format `<collection-slug> API-Key <apiKey>`.