> ## Documentation Index
> Fetch the complete documentation index at: https://developer.onetrust.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SDK List Helpers

OneTrust SDK Public Methods for First Party SDKs

# Existing

## Get latest consent associated with the first party SDK

Retrieves the latest consent value for specified SDK identifier.

**Parameter:**

* `sdkId`: The SDK identifier represented as a string, for which value has to be return.

```swift
OTPublishersHeadlessSDK.shared.getConsentStatus(forSDKId:) -> Int8
```

**Returns:**

* Returns the consent status of the passed in SDK identifier.

# New

> 📘
>
> Starting in the 202504.1.0 release.

## Get list of all first party SDKs present in OneTrust SDK

Retrieves all the first party SDKs associated with all the purpose groups that get displayed in Preference Center UI.

```swift
OTPublishersHeadlessSDK.shared.getAllFirstPartyCookies() -> [FirstPartyCookiesData]
```

**Note:** This list contains all the first party SDKs including the ones that are associated with the children of parent purpose groups.