# useAttachmentUrl

<!-- https://uncage.vercel.app/docs/api/react/functions/useattachmenturl/ -->

```ts
function useAttachmentUrl(attachmentId): string;
```

Defined in: react/src/hooks.ts:305

The URL of an attachment's content, for `<img src>` or links.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `attachmentId` | `string` |

## Returns

`string`
