Create

Creates a new extraction schema in a project.

Authentication

AuthorizationBearer
Bearer authentication header of the form `Bearer <PHONIC_API_KEY>`. Manage your API keys [here](https://phonic.co/api-keys).

Query parameters

projectstringOptionalDefaults to main
The name of the project to create the extraction schema in.

Request

This endpoint expects an object.
namestringRequired
A name for the extraction schema.
promptstringRequired
Instructions for how to extract data from conversations.
fieldslist of objectsRequired
Array of field definitions.

Response

Success response
idstring
The ID of the created extraction schema.
namestring
The name of the created extraction schema.

Errors