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

# Salesloft: Audit Reports Create

> Create a new audit report. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

Create a new audit report.

<Info>
  Tool ID: `salesloft_audit_reports_create`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'salesloft_audit_reports_create',
  {
    "record_type": "example",
    "record_ids": 123,
    "name": "Example"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute salesloft_audit_reports_create --input '{
  "record_type": "example",
  "record_ids": 123,
  "name": "Example"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "user_guid": "user_123",
    "until": "2026-01-15",
    "status": "example"
  }
}
```

Use `deepline tools get salesloft_audit_reports_create --json` for the latest machine-readable contract.

## Input reference

Creates a request for a new audit report.

| Name                         | Type      | Required | Default | Details                                                 |
| ---------------------------- | --------- | -------- | ------- | ------------------------------------------------------- |
| `payload.record_type`        | `string`  | No       | —       | Type of Record                                          |
| `payload.record_ids`         | `integer` | No       | —       | Ids of the records for the audit report                 |
| `payload.name`               | `string`  | No       | —       | Name of the audit report                                |
| `payload.email_notification` | `boolean` | No       | —       | Whether or not an email notification should be sent out |
| `payload.data_source`        | `string`  | No       | —       | The data source of the records. E.G. 'datalakehouse'    |
| `payload.actions`            | `string`  | No       | —       | The actions to be audited                               |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Creates a request for a new audit report.",
    "properties": {
      "record_type": {
        "type": "string",
        "description": "Type of Record"
      },
      "record_ids": {
        "type": "integer",
        "description": "Ids of the records for the audit report"
      },
      "name": {
        "type": "string",
        "description": "Name of the audit report"
      },
      "email_notification": {
        "type": "boolean",
        "description": "Whether or not an email notification should be sent out"
      },
      "data_source": {
        "type": "string",
        "description": "The data source of the records. E.G. 'datalakehouse'"
      },
      "actions": {
        "type": "string",
        "description": "The actions to be audited"
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                             | Type      | Required | Default | Details                                                   |
| -------------------------------- | --------- | -------- | ------- | --------------------------------------------------------- |
| `result.data`                    | `object`  | Yes      | —       | Provider response payload.                                |
| `result.data.user_guid`          | `string`  | No       | —       | Uuid of the user who requested report                     |
| `result.data.until`              | `string`  | No       | —       | End time for Date range Format: `date`.                   |
| `result.data.status`             | `string`  | No       | —       | The staus of the report                                   |
| `result.data.started_on`         | `string`  | No       | —       | The date the report request was started Format: `date`.   |
| `result.data.since`              | `string`  | No       | —       | Start time for Date range Format: `date`.                 |
| `result.data.requestor_name`     | `string`  | No       | —       | Name of user who requested report                         |
| `result.data.requestor_email`    | `string`  | No       | —       | Email of who requested report                             |
| `result.data.requested_on`       | `string`  | No       | —       | Requested on date Format: `date`.                         |
| `result.data.record_type`        | `string`  | No       | —       | The type of the record requested. E.G. 'Account'          |
| `result.data.record_ids`         | `integer` | No       | —       | Salesloft object ids for record type                      |
| `result.data.name`               | `string`  | No       | —       | The name of the repor                                     |
| `result.data.id`                 | `integer` | No       | —       | Primary key ID                                            |
| `result.data.error`              | `string`  | No       | —       | Any error message that was returned                       |
| `result.data.email_notification` | `boolean` | No       | —       | Whether or not an email notication will be sent           |
| `result.data.download_url`       | `string`  | No       | —       | The download url from aws                                 |
| `result.data.data_source`        | `string`  | No       | —       | The primary source of the data. E.G. 'Database'           |
| `result.data.completed_on`       | `string`  | No       | —       | The date the report request was completed Format: `date`. |
| `result.data.audited_user_guids` | `string`  | No       | —       | the user that made the audited action                     |
| `result.data.actions`            | `string`  | No       | —       | the action that was audited                               |
| `result.meta`                    | `object`  | No       | —       | Additional response metadata (status, paging).            |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "user_guid": {
            "type": "string",
            "description": "Uuid of the user who requested report"
          },
          "until": {
            "type": "string",
            "description": "End time for Date range",
            "format": "date"
          },
          "status": {
            "type": "string",
            "description": "The staus of the report"
          },
          "started_on": {
            "type": "string",
            "description": "The date the report request was started",
            "format": "date"
          },
          "since": {
            "type": "string",
            "description": "Start time for Date range",
            "format": "date"
          },
          "requestor_name": {
            "type": "string",
            "description": "Name of user who requested report"
          },
          "requestor_email": {
            "type": "string",
            "description": "Email of who requested report"
          },
          "requested_on": {
            "type": "string",
            "description": "Requested on date",
            "format": "date"
          },
          "record_type": {
            "type": "string",
            "description": "The type of the record requested. E.G. 'Account'"
          },
          "record_ids": {
            "type": "integer",
            "description": "Salesloft object ids for record type"
          },
          "name": {
            "type": "string",
            "description": "The name of the repor"
          },
          "id": {
            "type": "integer",
            "description": "Primary key ID"
          },
          "error": {
            "type": "string",
            "description": "Any error message that was returned"
          },
          "email_notification": {
            "type": "boolean",
            "description": "Whether or not an email notication will be sent"
          },
          "download_url": {
            "type": "string",
            "description": "The download url from aws"
          },
          "data_source": {
            "type": "string",
            "description": "The primary source of the data. E.G. 'Database'"
          },
          "completed_on": {
            "type": "string",
            "description": "The date the report request was completed",
            "format": "date"
          },
          "audited_user_guids": {
            "type": "string",
            "description": "the user that made the audited action"
          },
          "actions": {
            "type": "string",
            "description": "the action that was audited"
          }
        },
        "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

* [Salesloft provider guide](/docs/providers/salesloft/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
