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

# PFEntityGetEntityTokenAsync

> Get the cached PFEntityToken for an Entity.

Get the cached PFEntityToken for an Entity.

## Syntax

```cpp theme={null}
HRESULT PFEntityGetEntityTokenAsync(  
    PFEntityHandle entityHandle,  
    XAsyncBlock* async  
)  
```

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle returned from a login call.

**`async`**   XAsyncBlock\*\
*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Requirements

**Header:** PFEntity.h

## See also

[PFEntity members](https://docs.xbox.com/services/playfab/api-references/c/pfentity/pfentity_members.md)


## Related topics

- [PFEntityGetEntityTokenResult](https://docs.xbox.com/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenresult.md)
- [PFEntityGetEntityTokenResultSize](https://docs.xbox.com/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenresultsize.md)
- [Entity Handles](https://docs.xbox.com/services/playfab/sdks/c/entity-handles.md)
- [Services C API overview - PFEntity.h](https://docs.xbox.com/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [PFAuthenticationValidateEntityTokenAsync](https://docs.xbox.com/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokenasync.md)
