> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AttachmentsClient

## Constructor

```typescript
AttachmentsClient(options: BaseClientOptions): AttachmentsClient
```

### Parameters

**options** `BaseClientOptions` *required*

### Returns

`AttachmentsClient`

## Methods

### downloadAttachment()

```typescript
downloadAttachment(request: DownloadAttachmentAttachmentsRequest, requestOptions?: RequestOptions): HttpResponsePromise<unknown>
```

Download a file attachment.

Returns a 307 redirect: to the IP-enforcing presigned proxy for orgs with an
IP allowlist, or to a presigned S3 URL otherwise.

```ts
await client.attachments.downloadAttachment({
        org_id: "org-abc123def456",
        uuid: "uuid",
        name: "name"
    })
```

#### Parameters

**request** `DownloadAttachmentAttachmentsRequest` *required*

**requestOptions** `RequestOptions`

Request-specific configuration.

#### Returns

`HttpResponsePromise<unknown>`

### uploadAttachment()

```typescript
uploadAttachment(request: BodyHandleUploadAttachmentV3OrganizationsOrgIdAttachmentsPost, requestOptions?: RequestOptions): HttpResponsePromise<AttachmentResponse>
```

Upload a file attachment that can be used in Devin sessions.

```ts
import { createReadStream } from "fs";
    await client.attachments.uploadAttachment({
        file: fs.createReadStream("/path/to/your/file"),
        org_id: "org-abc123def456"
    })
```

#### Parameters

**request** `BodyHandleUploadAttachmentV3OrganizationsOrgIdAttachmentsPost` *required*

**requestOptions** `RequestOptions`

Request-specific configuration.

#### Returns

`HttpResponsePromise<AttachmentResponse>`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.