# getTopicName API

Calculates the NATS topic name for a message which should be sent.

---
Canonical: /handbook/api/variables/_purista_natsbridge.getTopicName/
Source: natsbridge/src/topic/getTopicName.impl.ts
Format: Markdown for agents
---

Calculates the NATS topic name for a message which should be sent.

Package: `@purista/natsbridge`

## Signature

```typescript
const getTopicName: GetTopicNameFn
```

## Notes

### param

the message to send

### returns

the NATS topic
