# getInteractionService

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.5.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/e076d8e427cb3afb528dbd605acd74c3aea69f94)

Gets the interaction service from the service provider.

## Definition

```typescript
interface IServiceProvider {
  // ... omitted for brevity
  getInteractionService(): IInteractionService
}
```

## Returns

[IInteractionService](/reference/api/typescript/aspire.hosting/iinteractionservice.md)

## Applies to

- [IServiceProvider](/reference/api/typescript/aspire.hosting/iserviceprovider.md)
