I created a custom permission to allow users only with a specific API KEY to access my API endpoints..
from rest_framework import permissions from django.conf imp