Transform data using LLM

Time Status User Agent
Make a request to see history.

URL Expired

The URL for this request expired after 30 days.

Request Schema

Field Type Required Description
table_name string required Serializer for transform request body.
prompt string required The prompt to send to the LLM for data transformation
data string required The JSON data to transform
llm_name string required The name of the LLM interface to use (llm_interface.name)
file_record_ids array of strings optional Array of file record ids to include as context
content-type string enum Defaults to application/json

Allowed: application/json, application/x-www-form-urlencoded, multipart/form-data

Response Schema

200

object

Field Type Required Description
data string required The transformed data from the LLM call in the format of data_model_schema.extractable_json_schema

400 Invalid request data

403 Access denied to file records

404 Schema or LLM interface not found

Example Request

curl --request POST \
     --url https://api.flextract.dev/api/v1/transform/table_name/ \
     --header 'accept: application/json' \
     --header 'content-type: application/json'

Example Response

{}