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

# Meta audiences: Create Audience

> Create a customer list custom audience in your Meta (Facebook) ad account, with a name and description. Includes SDK V2 examples, schemas, and cost.

Create a customer list custom audience in your Meta (Facebook) ad account, with a name and description.

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

## 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(
  'meta_audiences_create_audience',
  {
    "name": "Example"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute meta_audiences_create_audience --input '{
  "name": "Example"
}' --json
```

## Example response

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

## Input reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.ad_account_id` | `string` | No | — | Meta ad account ID. Deepline prefixes it with act\_ when needed. Optional: defaults to the workspace default account, or the sole enabled account when only one exists. Minimum length: 1. |
| `payload.name` | `string` | Yes | — | Minimum length: 1. |
| `payload.description` | `string` | No | — | Minimum length: 1. |
| `payload.customer_file_source` | `"USER_PROVIDED_ONLY" \| "PARTNER_PROVIDED_ONLY" \| "BOTH_USER_AND_PARTNER_PROVIDED"` | No | `"USER_PROVIDED_ONLY"` | Allowed: `USER_PROVIDED_ONLY`, `PARTNER_PROVIDED_ONLY`, `BOTH_USER_AND_PARTNER_PROVIDED`. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "ad_account_id": {
        "type": "string",
        "description": "Meta ad account ID. Deepline prefixes it with act_ when needed. Optional: defaults to the workspace default account, or the sole enabled account when only one exists.",
        "minLength": 1
      },
      "name": {
        "type": "string",
        "minLength": 1
      },
      "description": {
        "type": "string",
        "minLength": 1
      },
      "customer_file_source": {
        "type": "string",
        "default": "USER_PROVIDED_ONLY",
        "enum": [
          "USER_PROVIDED_ONLY",
          "PARTNER_PROVIDED_ONLY",
          "BOTH_USER_AND_PARTNER_PROVIDED"
        ]
      }
    },
    "required": [
      "name"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.audience` | `record` | Yes | — | — |
| `result.data.ad_account_id` | `string` | No | — | Ad account (act\_ form) this call resolved to: the explicit ad\_account\_id, else the workspace default, else the sole enabled account. |
| `result.data.ad_account_source` | `"explicit" \| "default" \| "sole"` | No | — | Allowed: `explicit`, `default`, `sole`. |
| `result.data.audience_id` | `string` | No | — | The new audience id. same value as data.audience.id and the audience\_id field delete and sync return. |
| `result.meta` | `record` | No | — | — |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "audience": {
            "type": "object",
            "additionalProperties": {}
          },
          "ad_account_id": {
            "type": "string",
            "description": "Ad account (act_ form) this call resolved to: the explicit ad_account_id, else the workspace default, else the sole enabled account."
          },
          "ad_account_source": {
            "type": "string",
            "enum": [
              "explicit",
              "default",
              "sole"
            ]
          },
          "audience_id": {
            "type": "string",
            "description": "The new audience id; same value as data.audience.id and the audience_id field delete and sync return."
          }
        },
        "required": [
          "audience"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "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

* [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.