Extract Templates A P I

Create Extract Template Generation

POST
/v2/extract/templates/generations

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

input_schema?

Optional JSON schema describing expected input parameters.

metadata?|

Metadata to attach to the generated extract template.

name?|

Optional stable name for the generated extract template.

output_schema?

Optional JSON schema describing desired extracted output.

prompt*Prompt

Instructions for generating the extract template.

url*Url

Example URL used to generate the extract template.

Response Body

application/json

application/json

curl -X POST "https://example.com/v2/extract/templates/generations" \  -H "Content-Type: application/json" \  -d '{    "prompt": "string",    "url": "string"  }'
{  "completed_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "error": "string",  "generated_version": {    "created_at": "2019-08-24T14:15:22Z",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "input_schema": {},    "metadata": {      "data_source": "string",      "description": "string",      "display_name": "string",      "domain": "string",      "entity_type": "string",      "tags": [        "string"      ],      "vertical": "string"    },    "name": "string",    "output_schema": {},    "samples": [      {        "input": null,        "output": null      }    ],    "version_number": 0  },  "generated_version_id": "c0a8c9c9-f737-4ebd-8a31-8416c39aa664",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "source_version_id": "adb2dc89-2007-42cb-8da1-8d6c68cbf772",  "started_at": "2019-08-24T14:15:22Z",  "status": "string",  "summary": "string"}