> ## 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.

# Backwards compatibility with XDK XSAPI

> Include the xsapi-cpp compatibility header shipped with the GDK to keep using the XDK-era C++ XSAPI when porting existing XBOX Live game code.

## Accessing the XDK XSAPI Compatibility Header

While the XSAPI (XBOX Service API) is offered as a C library, the GDK also includes headers for a C++ version of the [XSAPI that shipped with the XDK](https://github.com/microsoft/xbox-live-api).

If access to this API is required simply include the following header:

```cpp theme={null}
#include <xsapi-cpp\services.h>
```

## See also

[Introduction to the XSAPI C APIs](/services/xbox-services/fundamentals/xbox-services-api/live-xsapi-flat-c)

[XSAPI reference](/reference/live/xsapi-c/atoc-xsapi-c)


## Related topics

- [XBOX services API](/services/xbox-services/fundamentals/xbox-services-api/index.md)
- [Cross-generation gaming through backward compatibility only](/build/console-features/cross-gen/cross-gen-backcompat-only.md)
- [Backwards compatibility and gamertag conversions](/services/xbox-services/fundamentals/identity/user-profile/gamertags/live-modern-backwards-compatibility.md)
- [Multiplayer invites across XDK and GDK title versions](/services/xbox-services/multiplayer/invites/concepts/live-multiplayer-xdkinvites.md)
- [MicrosoftGame.config Element - XboxCompatibility](/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-xboxcompatibility.md)
