Hi, I'm having issues calling the token introspect...
# talk-hydra
b
Hi, I'm having issues calling the token introspection endpoint in my Ory Network project. It seems to think my POST body is empty. Any ideas?
Copy code
curl --location 'https://<MY ORY NETWORK PROJECT>/admin/oauth2/introspect' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <MY API KEY>' \
--data '{ 
    "token": "<TOKEN I'M CHECKING>"
}'

// returns:
{
    "error": "invalid_request",
    "error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. The POST body can not be empty."
}
Checking the same token with the Ory CLI is working
ory introspect token <TOKEN I'M CHECKING> --project "$project_id"
I see the issue now, the body can't be JSON. It's application/x-www-form-urlencoded