Can i filter deeper a post with media and one relation with media too?

What i want to achieve here is to filter through API my post with his media under header AND the relation users_permissions_user with avatar media. Could someone help me?

{
  "data": [
    {
      "id": 17,
      "attributes": {
        "title": "Livros de GURPS que você deveria ter na sua mesa",
        "small": "Uma lista enorme com mais de 120 títulos que você precisa conhecer que servem para qualquer RPG de mesa",
        "slug": "120-livros-de-GURPS",
        "header": {
          "id": 61,
          "name": "testa.jpg",
          "alternativeText": null,
          "caption": null,
          "width": 512,
          "height": 262,
          "formats": {
            "thumbnail": {
              "name": "thumbnail_testa.jpg",
              "url": "/uploads/thumbnail_testa_96e0ea2444.jpg"
            },
            "small": {
              "name": "small_testa.jpg",
              "url": "/uploads/small_testa_96e0ea2444.jpg"
            },
            "xsmall": {
              "name": "xsmall_testa.jpg",
              "url": "/uploads/xsmall_testa_96e0ea2444.jpg"
            }
          },
          "hash": "testa_96e0ea2444"
        },

        "users_permissions_user": {
          "id": 39,
          "bio": null,
          "social": {
            "twitter": "twitter",
            "facebook": "facebook",
            "instagram": "insta",
            "whatsapp": "whatsapp"
          },
          "color": null,
          "avatar": {
            "id": 57,
            "name": "thiago.jpg",
            "alternativeText": null,
            "caption": null,
            "width": 400,
            "height": 400,
            "formats": {
              "thumbnail": {
                "name": "thumbnail_thiago.jpg",
                "url": "/uploads/thumbnail_thiago_40ac064d95.jpg"
              },
              "xsmall": {
                "name": "xsmall_thiago.jpg",
                "url": "/uploads/xsmall_thiago_40ac064d95.jpg"
              }
            },
            "hash": "thiago_40ac064d95",
            "updatedAt": "2024-05-19T18:31:17.100Z"
          }
        }
      }
    }
  ]
}