> ## 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.

# Instantly: Assign Or Unassign Tags To Resources

> Add or remove Instantly custom tags on campaigns or sending email accounts. Includes SDK V2 examples, input constraints, response fields, and Deepline cost.

Add or remove Instantly custom tags on campaigns or sending email accounts.

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

## 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(
  'instantly_assign_or_unassign_tags_to_resources',
  {
    "tag_ids": [
      "tag_123"
    ],
    "resource_type": 1,
    "resource_ids": [
      "resource_123"
    ],
    "assign": true
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute instantly_assign_or_unassign_tags_to_resources --input '{
  "tag_ids": [
    "tag_123"
  ],
  "resource_type": 1,
  "resource_ids": [
    "resource_123"
  ],
  "assign": true
}' --json
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe instantly_assign_or_unassign_tags_to_resources --json` for the complete live contract.

## Input reference

Assign or unassign Instantly custom tags to resources.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.tag_ids` | `array` | Yes | — | Minimum items: 1. |
| `payload.resource_type` | `1 \| 2` | Yes | — | — |
| `payload.resource_ids` | `array` | Yes | — | Minimum items: 1. |
| `payload.assign` | `boolean` | Yes | — | — |
| `payload.selected_all` | `boolean` | No | — | — |
| `payload.filter` | `string \| object` | No | — | — |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Assign or unassign Instantly custom tags to resources.",
    "properties": {
      "tag_ids": {
        "type": "array",
        "minItems": 1,
        "items": {
          "type": "string",
          "minLength": 1
        }
      },
      "resource_type": {
        "anyOf": [
          {
            "type": "number",
            "const": 1
          },
          {
            "type": "number",
            "const": 2
          }
        ]
      },
      "resource_ids": {
        "type": "array",
        "minItems": 1,
        "items": {
          "type": "string",
          "minLength": 1
        }
      },
      "assign": {
        "type": "boolean"
      },
      "selected_all": {
        "type": "boolean"
      },
      "filter": {
        "anyOf": [
          {
            "type": "string",
            "minLength": 1
          },
          {
            "type": "object",
            "minProperties": 1,
            "properties": {
              "tag_id": {
                "type": "string",
                "minLength": 1
              },
              "search": {
                "type": "string",
                "minLength": 1
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "required": [
      "tag_ids",
      "resource_type",
      "resource_ids",
      "assign"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Raw Instantly tag assignment response.

The static output schema is not available. Run `deepline describe instantly_assign_or_unassign_tags_to_resources --json` for the live contract.

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "description": "Raw Instantly tag assignment response."
  }
  ```
</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

* [Instantly provider guide](https://deepline.com/docs/providers/instantly/guide.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.