Skip to content

Test prompts with content

POST
/v2/document/test-prompts-with-content

Test prompts with content

X-API-Key
string

API Key

X-API-Secret
string

API Secret

object
rawText
required

A content array of strings to prompt against

Array<string>
prompts
required

A prompt array of strings

Array<object>
object
id
required

A prompt Id

string
a1b2c3d4-5678-4e2a-9c1a-2b3c4d5e6f7a
name
required

A prompt name

string
Summary
fieldType
required

A field type

string
text
format
required

A format

string
string
description
required

A description

string
Whats the summary of the document?
itemType

An item type

string
string
children
Array<object> recursive
docType
required

The document type

string
invoice
docName
required

The document name

string
Invoice Q1 2024
llmProvider

The provider of the prompt

string
Allowed values: OPENAI FSCO BEDROCK
OPENAI
llmModel

The model of the prompt

string
Allowed values: GPT_4 GPT_4_TURBO GPT_4O GPT_4O_MINI O1 O1_MINI O3_MINI LLAMA_3 CLAUDE_OPUS CLAUDE_SONNET
GPT_4
tester
required

Set the prompt as a test

boolean
true

The resource has been successfully created.

object
queryId
required

The process ID. Since this is a synchronous request, it returns only the ID. You must wait for the webhook notification to receive the actual result.

string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a