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

# PFEntityToken

> PlayFab EntityToken and its expiration time. Used to authenticate PlayFab service calls.

PlayFab EntityToken and its expiration time. Used to authenticate PlayFab service calls.

## Syntax

```cpp theme={null}
typedef struct PFEntityToken {  
    const char* token;  
    time_t const* expiration;  
} PFEntityToken;  
```

### Members

**`token`**   const char\*

The token used to set X-EntityToken for all entity based API calls.

**`expiration`**   time\_t const\*

(Optional) The time the token will expire, if it is an expiring token, in UTC.

## Requirements

**Header:** PFEntity.h

## See also

[PFEntity members](/services/playfab/api-references/c/pfentity/pfentity_members)


## Related topics

- [PFEntityTokenRefreshedEventHandler](/services/playfab/api-references/c/pfentity/functions/pfentitytokenrefreshedeventhandler.md)
- [PFEntityGetEntityTokenAsync](/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenasync.md)
- [PFEntityGetEntityTokenResult](/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenresult.md)
- [Services C API overview - PFEntity.h](/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [Quickstart GDK](/services/playfab/sdks/c/quickstart-gdk.md)
