If you copied and paste the escaped JSON… this is why it’s not working probably

{
  "secret_id": "yoursecretid",
  "secret_key": "yoursecretkey"
}

By the way, this kind of auth can be used in custom oauth2 token.