# HtmlDocumentationExporter.GetEndpointId

Kind: Method  
Namespace: `Sisk.Documenting.Html`  
Assembly: `Sisk.Documenting.Html.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.Documenting.Html.HtmlDocumentationExporter.GetEndpointId.html

## GetEndpointId(ApiEndpoint) {#Sisk_Documenting_Html_HtmlDocumentationExporter_GetEndpointId_Sisk_Documenting_ApiEndpoint_}

Gets the unique HTML ID of an API endpoint, derived from its method and route path.

```csharp
protected string GetEndpointId(ApiEndpoint endpoint)
```

### Parameters

`endpoint` ApiEndpoint

The API endpoint.

### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The endpoint ID, which is safe for use in HTML and CSS selectors.
