## Get Attachment

`PresignedUrl Beta.Attachments.Get(AttachmentGetParamsparameters, CancellationTokencancellationToken = default)`

**get** `/api/v1/beta/attachments/{attachment_name}`

Return a presigned download URL for a specific attachment.

### Parameters

- `AttachmentGetParams parameters`

  - `required string attachmentName`

  - `required string sourceID`

    File UUID or directory file ID (dfl-...).

  - `string? organizationID`

  - `string? projectID`

### Returns

- `class PresignedUrl:`

  Schema for a presigned URL.

  - `required DateTimeOffset ExpiresAt`

    The time at which the presigned URL expires

  - `required string Url`

    A presigned URL for IO operations against a private file

  - `IReadOnlyDictionary<string, string>? FormFields`

    Form fields for a presigned POST request

### Example

```csharp
AttachmentGetParams parameters = new()
{
    AttachmentName = "attachment_name",
    SourceID = "source_id",
};

var presignedUrl = await client.Beta.Attachments.Get(parameters);

Console.WriteLine(presignedUrl);
```

#### Response

```json
{
  "expires_at": "2019-12-27T18:11:19.117Z",
  "url": "https://example.com",
  "form_fields": {
    "foo": "string"
  }
}
```
