Authorization Token

HTTP Protocol

curl -H "Authorization: Bearer <encrypted_jwt_token>" "http://localhost:7512/..."

Other Protocols

{
  // Optional: Unique request Identifier
  "requestId": "<unique request identifier>",
  "controller": "<controller>",
  "action": "<action>",
  "collection": "<collection>",

  // Request headers:
  "jwt": "<encrypted_jwt_token>"

  "body": {..}
}

Kuzzle uses JSON Web Tokens to authenticate users. The token is generated by the Auth controller via the login action and must be included with each resource request.