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

# PFEntityGetAPIEndpoint

> Obtiene el punto de conexión de API del PFServiceConfig asociado a un identificador de entidad.

Obtiene el punto de conexión de API del PFServiceConfig asociado a un identificador de entidad.

## Sintaxis

```cpp theme={null}
HRESULT PFEntityGetAPIEndpoint(  
    PFEntityHandle entityHandle,  
    size_t apiEndpointSize,  
    char* apiEndpoint,  
    size_t* apiEndpointUsed  
)  
```

### Parámetros

**`entityHandle`**   PFEntityHandle

PFEntityHandle devuelto por una llamada de autenticación.

**`apiEndpointSize`**   size\_t

Tamaño del búfer proporcionado. El tamaño necesario puede obtenerse mediante PFEntityGetAPIEndpointSize.

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

Búfer en el que se escribirá la cadena del punto de conexión de API.

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

El número de bytes usados en el búfer, incluido el terminador nulo.

### Valor devuelto

Tipo: HRESULT

Código de resultado de esta operación de API.

## Requisitos

**Encabezado:** PFEntity.h

## Consulte también

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


## Related topics

- [Identificadores de entidad](/es/services/playfab/sdks/c/entity-handles.md)
- [Información general de la API de C de Services - PFEntity.h](/es/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [PFEntityGetAPIEndpointSize](/es/services/playfab/api-references/c/pfentity/functions/pfentitygetapiendpointsize.md)
- [PartyEndpoint::GetEntityId](/es/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getentityid.md)
- [PartyEndpoint::GetEntityType](/es/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getentitytype.md)
