I make a curl request to an API and get a json return with jq.
The result
{
  "errors": [],
  "metadata": {
    "clientTransactionId": "",
    "serverTransactionId": "20190318164551347"
  },
  "responses": [
    {
      "comment": "",
      "keyData": {
        "algorithm": 13,
        "flags": 257,
        "protocol": 3,
        "publicKey": "a1"
      },
      "keyTag": 28430
    },
    {
      "comment": "",
      "keyData": {
        "algorithm": 13,
        "flags": 257,
        "protocol": 3,
        "publicKey": "a4"
      },
      "keyTag": 28430
    },
    {
      "comment": "",
      "keyData": {
        "algorithm": 13,
        "flags": 257,
        "protocol": 3,
        "publicKey": "fa4"
      },
      "keyTag": 33212
    }
  ],
  "status": "success",
  "warnings": []
}
Now i want have a loop to make a second api request with the four values frim keyData
But how can I make it? I search a half day and don't have found out it.
My request:
curl -v -X POST --data '{
    "authToken": ".......",
    "clientTransactionId": "",
}' https:/domain.tld/api/v1/json/keysList | jq .
With jq '.responses[]' I have a "array" with this, but I don't find the solution for a loop with my values.