I can't get the Login working with API Clients, I...
# talk-kratos
q
I can't get the Login working with API Clients, I need some help 🙏 https://www.ory.sh/kratos/docs/self-service/flows/user-login#api-clients I always get:
Copy code
{
  "error": {
    "code": 403,
    "status": "Forbidden",
    "reason": "A request failed due to a missing or invalid csrf_token value.",
    "message": "The requested action was forbidden"
  }
}
request:
Copy code
curl --location --request POST '<http://127.0.0.1:4455/.ory/kratos/public/self-service/login/methods/password?flow=cfcdaec5-442f-4a4d-91e7-0a5f9c6e23e6>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Cookie: csrf_token=MQJbb4sg4YZ98DREGUzI/DanDZhzNDZEcfRqTIpak84=' \
--data-raw '{
  "csrf_token": "jI2v/WE1V2coXugkyMTYW9ob/YhWoUO9qVoXyr8qJWi9j/SS6hW24VWu3GDRiBCn7LzwECWVdfnYrn2GNXC2pg==",
  "identifier": "<mailto:alex@web.de|alex@web.de>",
  "password": "Alex061091"
}'
I just can't get it to work, neither in Postman nor in my application 😞