Can't Access Private Gradio Space API Endpoint Through Postman

I am trying to access my Huggingface space through a Postman request. When I copy the exported curl command, it looks like this:

curl --location 'https://MY_SPACE_NAME_HERE.hf.space/--replicas/RANDOMDIGITS/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer hf_REST_OF_MY_TOKEN_HERE' \
--data '{"data": ["data:image/jpeg;base64,PIC_IN_BASE64_HERE"]}'

But when I run this request, I get:

{
    "detail": "Method Not Allowed"
}

How do get this request to succeed?

Also my API endpoint works perfectly when I access it via the boilerplate python code that Gradio gives me. Do you know what the problem is?