Please login first then then run the api , if you don't have any login page you can trying login from you django admin login page and try hiting the API.