Hi Balaji, Make sure you are correctly sending credentials (e.g., username and password) to the login endpoint. Typically, the request should be something like: curl -X POST "https://yourapi.com/api/login/" \ -H "Content-Type: application/json" \ -d '{"username": "username", "password": "password"}' regards, miky
On Thu, 13 Feb 2025 at 15:01, Balaji V <balajivinothkumar152...@gmail.com> wrote: > while working inside the project I getting the error for generating the > token. the error was shown { > "detail": "Authentication credentials were not provided." > } > how to fix this error to get the token from the login api of the website > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To view this discussion visit > https://groups.google.com/d/msgid/django-developers/80e1a208-ec66-42de-9762-11f8d97ce75fn%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/80e1a208-ec66-42de-9762-11f8d97ce75fn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/django-developers/CAA5xHrUHE%3DkwKv0vGP9bSM3CgE029PKDojqU4ME%2BPru5YscL8A%40mail.gmail.com.