From curl to REST command

Hello,
I’ve searched a lot on the forum already but cannot find exactly the solution to my challenge.
Tried already many setups but the sensor always comes out as “unknown”.

Does anyone know how to translate the following curl to a rest command?

curl -i -k --user name:password --data "grant_type=client_credentials" https://elit.tennisvlaanderen.be/ords/ace/oauth/token

I’m looking to get the access_token from the JSON response.

Show us what you’ve tried, what your logs said and what a typical response looks like.

In the mean time I switched to a simpler command_line sensor using the curl command.
The output is:
HTTP/1.1 200 OK Date: Sun, 02 Jul 2023 07:02:20 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: keep-alive X-Frame-Options: SAMEORIGIN {"access_token":"bladibladibla","token_type":"bearer","expires_in":3600}

trying to get the access_token out with:
value_template: "{{value_json.access_token}}"
gives the error:
'value_json' is undefined when rendering '{{ value_json.access_token }}'
how to solve?
The response is not JSON?

never mind…
removing the -i and -k from the curl command solved that…