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

# Clarify: Get Signed URL For Record Attachment Upload

> Request an attachment upload URL. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Request an attachment upload URL.

> [!NOTE]
>
> Tool ID: `clarify_get_signed_url_for_record_attachment_upload`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'clarify_get_signed_url_for_record_attachment_upload',
  {
    "workspace": "example",
    "object": "example",
    "id": "id_123",
    "name": "Example"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run clarify_get_signed_url_for_record_attachment_upload --input '{
  "workspace": "example",
  "object": "example",
  "id": "id_123",
  "name": "Example"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "data": {
      "signedUrl": "https://example.com",
      "key": "example",
      "attachmentId": "attachment_123",
      "entity": "example",
      "_id": "_123"
    }
  }
}
```

Use `deepline describe clarify_get_signed_url_for_record_attachment_upload --json` for the latest machine-readable contract.

## Input reference

Returns a pre-signed URL for uploading a file. Upload the file contents to `signedUrl` via HTTP PUT, then attach it to the record by POSTing the returned `key` and `attachmentId` to the attachments endpoint.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.object` | `string` | Yes | — | The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`). |
| `payload.id` | `string` | Yes | — | The unique ID of the record. |
| `payload.silent` | `boolean` | No | — | When true, suppresses in-app and Slack notifications for this mutation. |
| `payload.name` | `string` | Yes | — | The file name, including its extension. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns a pre-signed URL for uploading a file. Upload the file contents to `signedUrl` via HTTP PUT, then attach it to the record by POSTing the returned `key` and `attachmentId` to the attachments endpoint.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "object": {
        "type": "string",
        "description": "The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`)."
      },
      "id": {
        "type": "string",
        "description": "The unique ID of the record."
      },
      "silent": {
        "type": "boolean",
        "description": "When true, suppresses in-app and Slack notifications for this mutation."
      },
      "name": {
        "type": "string",
        "description": "The file name, including its extension."
      }
    },
    "required": [
      "workspace",
      "object",
      "id",
      "name"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.data` | `object` | Yes | — | The signed upload URL and identifiers to attach the file. |
| `result.data.data.signedUrl` | `string` | Yes | — | Pre-signed URL to upload the file contents to via HTTP PUT. |
| `result.data.data.key` | `string` | Yes | — | The storage key to pass back when attaching the file. |
| `result.data.data.attachmentId` | `string` | Yes | — | The attachment ID to pass back when attaching the file. |
| `result.data.data.entity` | `string` | Yes | — | The object type of the target record. |
| `result.data.data._id` | `string` | Yes | — | The unique ID of the target record. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "data": {
            "type": "object",
            "description": "The signed upload URL and identifiers to attach the file.",
            "properties": {
              "signedUrl": {
                "type": "string",
                "description": "Pre-signed URL to upload the file contents to via HTTP PUT."
              },
              "key": {
                "type": "string",
                "description": "The storage key to pass back when attaching the file."
              },
              "attachmentId": {
                "type": "string",
                "description": "The attachment ID to pass back when attaching the file."
              },
              "entity": {
                "type": "string",
                "description": "The object type of the target record."
              },
              "_id": {
                "type": "string",
                "description": "The unique ID of the target record."
              }
            },
            "required": [
              "signedUrl",
              "key",
              "attachmentId",
              "entity",
              "_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


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