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

# Resend: Usage Get

> Retrieve account usage. Resend Usage Get reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Retrieve account usage.

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

## 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(
  'resend_usage_get',
  {},
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run resend_usage_get --input '{}'
```

## 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": {
    "object": "example",
    "emails": {
      "daily": {
        "used": 123,
        "limit": 1,
        "sent": 123
      },
      "monthly": {
        "used": 123,
        "limit": 123,
        "sent": 123
      }
    },
    "contacts": {
      "used": 123,
      "limit": 123
    }
  }
}
```

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

## Input reference

Retrieve your account's current usage and plan limits.

This action requires no input fields.

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Retrieve your account's current usage and plan limits.",
    "properties": {},
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.object` | `string` | No | — | The type of object. |
| `result.data.emails` | `object` | No | — | — |
| `result.data.emails.daily` | `object` | No | — | — |
| `result.data.emails.daily.used` | `integer` | No | — | Emails sent and received in the current day. |
| `result.data.emails.daily.limit` | `integer \| null` | No | — | The daily plan limit, or `null` when the account has a monthly sending subscription. |
| `result.data.emails.daily.sent` | `integer` | No | — | Emails sent today. |
| `result.data.emails.daily.received` | `integer` | No | — | Emails received today. |
| `result.data.emails.daily.resets_at` | `string` | No | — | When the daily counter resets, as an ISO 8601 datetime. |
| `result.data.emails.monthly` | `object` | No | — | — |
| `result.data.emails.monthly.used` | `integer` | No | — | Emails sent and received in the current billing period. |
| `result.data.emails.monthly.limit` | `integer` | No | — | The monthly plan limit. |
| `result.data.emails.monthly.sent` | `integer` | No | — | Emails sent this billing period. |
| `result.data.emails.monthly.received` | `integer` | No | — | Emails received this billing period. |
| `result.data.emails.monthly.resets_at` | `string` | No | — | When the monthly counter resets, as an ISO 8601 datetime. |
| `result.data.contacts` | `object` | No | — | — |
| `result.data.contacts.used` | `integer` | No | — | Contacts currently stored. |
| `result.data.contacts.limit` | `integer` | No | — | The plan limit. |
| `result.data.segments` | `object` | No | — | — |
| `result.data.segments.used` | `integer` | No | — | Segments currently created. |
| `result.data.segments.limit` | `integer \| null` | No | — | The plan limit, or `null` when the account has a contacts subscription. |
| `result.data.broadcasts` | `object` | No | — | — |
| `result.data.broadcasts.used` | `integer` | No | — | Broadcasts sent. |
| `result.data.broadcasts.limit` | `null` | No | — | Always `null`. broadcasts aren't limited. |
| `result.data.ai_credits` | `object` | No | — | — |
| `result.data.ai_credits.used` | `integer` | No | — | AI credits consumed in the current period. |
| `result.data.ai_credits.limit` | `integer \| null` | No | — | The plan limit, or `null` when unlimited. |
| `result.data.ai_credits.next_increase_at` | `string \| null` | No | — | When the AI credit balance next increases, as an ISO 8601 datetime, or `null` when unknown. |
| `result.data.automation_runs` | `object` | No | — | — |
| `result.data.automation_runs.used` | `integer` | No | — | Automation runs in the current billing period. |
| `result.data.automation_runs.limit` | `integer` | No | — | The plan limit. |
| `result.data.automation_runs.resets_at` | `string` | No | — | When the counter resets, as an ISO 8601 datetime. |
| `result.data.domains` | `object` | No | — | — |
| `result.data.domains.used` | `integer` | No | — | Domains currently added. |
| `result.data.domains.limit` | `integer \| null` | No | — | The plan limit, or `null` when unlimited. |
| `result.data.rate_limit` | `object` | No | — | — |
| `result.data.rate_limit.limit` | `integer` | No | — | The number of requests allowed per `duration`. |
| `result.data.rate_limit.duration` | `string` | No | — | The rate-limit window, e.g. `'1000ms'`. |
| `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": {
          "object": {
            "type": "string",
            "description": "The type of object."
          },
          "emails": {
            "type": "object",
            "properties": {
              "daily": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "integer",
                    "description": "Emails sent and received in the current day."
                  },
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "The daily plan limit, or `null` when the account has a monthly sending subscription."
                  },
                  "sent": {
                    "type": "integer",
                    "description": "Emails sent today."
                  },
                  "received": {
                    "type": "integer",
                    "description": "Emails received today."
                  },
                  "resets_at": {
                    "type": "string",
                    "description": "When the daily counter resets, as an ISO 8601 datetime."
                  }
                },
                "additionalProperties": false
              },
              "monthly": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "integer",
                    "description": "Emails sent and received in the current billing period."
                  },
                  "limit": {
                    "type": "integer",
                    "description": "The monthly plan limit."
                  },
                  "sent": {
                    "type": "integer",
                    "description": "Emails sent this billing period."
                  },
                  "received": {
                    "type": "integer",
                    "description": "Emails received this billing period."
                  },
                  "resets_at": {
                    "type": "string",
                    "description": "When the monthly counter resets, as an ISO 8601 datetime."
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "contacts": {
            "type": "object",
            "properties": {
              "used": {
                "type": "integer",
                "description": "Contacts currently stored."
              },
              "limit": {
                "type": "integer",
                "description": "The plan limit."
              }
            },
            "additionalProperties": false
          },
          "segments": {
            "type": "object",
            "properties": {
              "used": {
                "type": "integer",
                "description": "Segments currently created."
              },
              "limit": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The plan limit, or `null` when the account has a contacts subscription."
              }
            },
            "additionalProperties": false
          },
          "broadcasts": {
            "type": "object",
            "properties": {
              "used": {
                "type": "integer",
                "description": "Broadcasts sent."
              },
              "limit": {
                "type": "null",
                "description": "Always `null`; broadcasts aren't limited."
              }
            },
            "additionalProperties": false
          },
          "ai_credits": {
            "type": "object",
            "properties": {
              "used": {
                "type": "integer",
                "description": "AI credits consumed in the current period."
              },
              "limit": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The plan limit, or `null` when unlimited."
              },
              "next_increase_at": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "When the AI credit balance next increases, as an ISO 8601 datetime, or `null` when unknown."
              }
            },
            "additionalProperties": false
          },
          "automation_runs": {
            "type": "object",
            "properties": {
              "used": {
                "type": "integer",
                "description": "Automation runs in the current billing period."
              },
              "limit": {
                "type": "integer",
                "description": "The plan limit."
              },
              "resets_at": {
                "type": "string",
                "description": "When the counter resets, as an ISO 8601 datetime."
              }
            },
            "additionalProperties": false
          },
          "domains": {
            "type": "object",
            "properties": {
              "used": {
                "type": "integer",
                "description": "Domains currently added."
              },
              "limit": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The plan limit, or `null` when unlimited."
              }
            },
            "additionalProperties": false
          },
          "rate_limit": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "integer",
                "description": "The number of requests allowed per `duration`."
              },
              "duration": {
                "type": "string",
                "description": "The rate-limit window, e.g. `'1000ms'`."
              }
            },
            "additionalProperties": false
          }
        },
        "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.