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

# PFServiceConfigGetAPIEndpoint

> Gets the API endpoint for a service configuration.

Gets the API endpoint for a service configuration.

## Syntax

```cpp theme={null}
HRESULT PFServiceConfigGetAPIEndpoint(  
    PFServiceConfigHandle handle,  
    size_t apiEndpointSize,  
    char* apiEndpoint,  
    size_t* apiEndpointUsed  
)  
```

### Parameters

**`handle`**   PFServiceConfigHandle

ServiceConfig handle.

**`apiEndpointSize`**   size\_t

Size of the provided buffer. Required size can be obtained via PFServiceConfigGetAPIEndpointSize.

**`apiEndpoint`**   char\*<br />*Out\_writes(apiEndpointSize)*

Buffer the API endpoint string will be written to.

**`apiEndpointUsed`**   size\_t\*<br />*optional output*

The number of bytes used in the buffer including the null terminator.

### Return value

Type: HRESULT

Result code for this API operation.

## Requirements

**Header:** PFServiceConfig.h

## See also

[PFServiceConfig members](/services/playfab/api-references/c/pfserviceconfig/pfserviceconfig_members)


## Related topics

- [Services C API overview - PFServiceConfig.h](/services/playfab/api-references/c/pfserviceconfig/pfserviceconfig_members.md)
- [SDK Lifecycle](/services/playfab/sdks/c/lifecycle.md)
- [PFServiceConfigGetAPIEndpointSize](/services/playfab/api-references/c/pfserviceconfig/functions/pfserviceconfiggetapiendpointsize.md)
- [PFEntityGetAPIEndpoint](/services/playfab/api-references/c/pfentity/functions/pfentitygetapiendpoint.md)
- [PartyEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/partyendpoint.md)
