Some questions about the API response

I made a successful API call with the following URL:

https://www.patreon.com/api/oauth2/v2/identity?include=memberships.currently_entitled_tiers,memberships.campaign&fields[user]=email,first_name,full_name,image_url,last_name,thumb_url,url,vanity,is_email_verified&fields[member]=currently_entitled_amount_cents,lifetime_support_cents,campaign_lifetime_support_cents,last_charge_status,patron_status,last_charge_date,pledge_relationship_start

and this is what I got back (with personal data removed):

{
  "data": {
    "attributes": {
      "email": "anonymous@example.com",
      "first_name": "Anonymous",
      "full_name": "Anonymous User",
      "image_url": "https://patreon.com/placeholder/image/12345678",
      "is_email_verified": true,
      "last_name": "User",
      "thumb_url": "https://patreon.com/placeholder/thumb/12345678",
      "url": "https://www.patreon.com/user?u=12345678",
      "vanity": null
    },
    "id": "12345678",
    "relationships": {
      "memberships": {
        "data": [
          {
            "id": "11111111",
            "type": "member"
          },
          {
            "id": "22222222",
            "type": "member"
          }
        ]
      }
    },
    "type": "user"
  },
  "included": [
    {
      "attributes": {
        "campaign_lifetime_support_cents": 5000,
        "currently_entitled_amount_cents": 500,
        "last_charge_date": "2024-01-18T00:17:48.000+00:00",
        "last_charge_status": "Paid",
        "lifetime_support_cents": 5000,
        "patron_status": "active_patron",
        "pledge_relationship_start": "2023-04-18T05:37:13.502+00:00"
      },
      "id": "11111111",
      "relationships": {
        "campaign": {
          "data": { "id": "33333333", "type": "campaign" },
          "links": {
            "related": "https://www.patreon.com/api/oauth2/v2/campaigns/33333333"
          }
        },
        "currently_entitled_tiers": { "data": [ { "id": "44444444", "type": "tier" } ] }
      },
      "type": "member"
    },
    {
      "attributes": {
        "campaign_lifetime_support_cents": 0,
        "currently_entitled_amount_cents": 300,
        "last_charge_date": null,
        "last_charge_status": null,
        "lifetime_support_cents": 0,
        "patron_status": "active_patron",
        "pledge_relationship_start": "2024-02-03T16:48:03.603+00:00"
      },
      "id": "22222222",
      "relationships": {
        "campaign": {
          "data": { "id": "55555555", "type": "campaign" },
          "links": {
            "related": "https://www.patreon.com/api/oauth2/v2/campaigns/55555555"
          }
        },
        "currently_entitled_tiers": { "data": [ { "id": "66666666", "type": "tier" } ] }
      },
      "type": "member"
    },
    { "attributes": {}, "id": "33333333", "type": "campaign" },
    { "attributes": {}, "id": "55555555", "type": "campaign" },
    { "attributes": {}, "id": "44444444", "type": "tier" },
    { "attributes": {}, "id": "66666666", "type": "tier" }
  ],
  "links": { "self": "https://www.patreon.com/api/oauth2/v2/user/12345678" }
}

I have some questions about this.

  1. Can I just check if a user has a specific tier id? all I want to do is make sure the member is subscribing to a certain tier and I’m hoping not to have to deal with paginated results. Basically if I can narrow the api query down to a single campaign and user or user and tier that would be helpful.

Also request the currently_entitled_tiers relation, and you will get the relevant tiers for each patron.