---
title: "Create extractor"
method: POST
path: "/agents/{agentId}/extractors"
---

# Create extractor

`POST /agents/{agentId}/extractors`

## Request

- Base URL: `https://api.vogent.ai/api`
- URL: `https://api.vogent.ai/api/agents/{agentId}/extractors`
- Auth: HTTP bearer

Create a new extractor for a given agent.

## Request body

- CreateCallAgentExtractorInput
  - `name` string, required
  - `extractorFieldsJsonSchema` string, required

## Response `200`

Successful operation

- CallAgentExtractor
  - `id` string, required
  - `name` string, required
  - `extractorFieldsJsonSchema` string, required

## Other responses

- `400`: Invalid input
- `422`: Validation exception

---

[API](https://skmtc.dev/vogent/apis/vogent-openapi-3-0.md) - [All operations](https://skmtc.dev/vogent/apis/vogent-openapi-3-0/llms.txt) - [OpenAPI document](https://skmtc.dev/vogent/apis/vogent-openapi-3-0/revisions/a5966cc364ef?raw)
