I am trying to read <https://docs.descope.com/api/...
# ask-a-descoper
s
I am trying to read https://docs.descope.com/api/management/audit/search-audit and try to get audit search data. It mentions
Authorization, < Project ID >:< Management Key > as bearer
I did that and construct the curl request. But i am not sure what management key is? is it in the descope console anywhere? also doing POST
https://api.descope.com/v1/mgmt/audit/search
with
Copy code
{
  "from": "2025-10-22T00:00:00Z"
}
gives me 400, E011001 Request is malformed
m
it here
s
thanks
s
but i am still getting the same error: this is my curl:
Copy code
curl --location --request POST 'https://api.descope.com/v1/mgmt/audit/search' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <omitted>' \
--data-raw '{
    "from": "2025-10-22T00:00:00Z"
}'
m
what error ?
s
Copy code
{
  "errorCode": "E011001",
  "errorDescription": "Request is malformed"
}
400
m
are you using the Bearer in this format ?
s
yes
m
on the response headers, there a header called cf-ray, plz post its value
s
993447156a54b021-LAX
i am using postman
m
s
got the same. i am talking with @Mary Greenlee now