---
title: "Add an agent script"
method: POST
path: "/v1/dialer/agent_script"
---

# Add an agent script

`POST /v1/dialer/agent_script`

## Request

- Base URL: `https://api.servetel.in`
- URL: `https://api.servetel.in/v1/dialer/agent_script`
- Auth: none required

This API allows you to add an agent script to the list

## Headers

- `Authorization` string, required

## Request body

- object
  - `name` string, required: Name of the agent script.
  - `list_id` string, required: List ID where agent script has to be applied.
  - `description` string: Description of the agent script.
  - `message` string, required: Message for agent.

## Response `200`

200

- object

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/servetel/apis/servetel-base-api-config.md) - [All operations](https://skmtc.dev/servetel/apis/servetel-base-api-config/llms.txt) - [OpenAPI document](https://skmtc.dev/servetel/apis/servetel-base-api-config/revisions/d1cb31356d25?raw)
