P
Payload REST API
Details
- URL
-
https://<your-payload-host>/api - Docs
- https://payloadcms.com/docs/rest-api/overview
Authentication
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.
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>`.