Create an extraction
POST
/v1/extractor/extractions
const url = 'http://localhost:8080/v1/extractor/extractions';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"type":"article","format":"html","content":{"additionalProperty":"example"},"url":"https://example.com","domain":"example","webhookUrl":"https://example.com","webhookEventTypes":["done"],"forceRefresh":true,"options":{"useLlm":true,"llmModel":"example","llmPromptOverride":"example","llmMode":"fill-missing"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8080/v1/extractor/extractions \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "type": "article", "format": "html", "content": { "additionalProperty": "example" }, "url": "https://example.com", "domain": "example", "webhookUrl": "https://example.com", "webhookEventTypes": [ "done" ], "forceRefresh": true, "options": { "useLlm": true, "llmModel": "example", "llmPromptOverride": "example", "llmMode": "fill-missing" } }'Sanitize content, compute cacheKey, lookup or insert. Codes: 200-cache_hit (sibling cache.hit=true), 202-queued (cache miss enqueued).
Authorizations
Section intitulée « Authorizations »Request Body required
Section intitulée « Request Body required » Media type application/json
object
type
required
string
format
string
url
string format: uri
domain
string
webhookUrl
string format: uri
webhookEventTypes
Array<string>
forceRefresh
boolean
options
object
useLlm
boolean
llmModel
string
llmPromptOverride
string
llmMode
string
Responses
Section intitulée « Responses »Cache hit.
Media type application/json
object
status
required
string
code
required
string
data
required
object
id
required
string
type
required
string
status
required
string
url
required
string | null
domainId
required
string | null
tenantId
required
string
inputFormat
required
string
data
null
metadata
null
errorMessage
string | null
errorClass
string | null
attempts
integer
cacheHits
integer
recycleCount
integer
createdAt
required
string format: date-time
finishedAt
required
string | null format: date-time
cache
object
hit
required
boolean
key
string
ageSeconds
integer
expiresAt
string format: date-time
timing
object
totalMs
required
integer
dbMs
integer
externalMs
integer
deprecation
object
sunset
required
string format: date-time
successor
string
note
string
Example
{ "status": "success", "data": { "type": "article", "status": "queued", "inputFormat": "html", "errorClass": "parse_error", "attempts": 0, "cacheHits": 0, "recycleCount": 0 }}Cache miss enqueued.
Media type application/json
object
status
required
string
code
required
string
data
required
object
id
required
string
type
required
string
status
required
string
url
required
string | null
domainId
required
string | null
tenantId
required
string
inputFormat
required
string
data
null
metadata
null
errorMessage
string | null
errorClass
string | null
attempts
integer
cacheHits
integer
recycleCount
integer
createdAt
required
string format: date-time
finishedAt
required
string | null format: date-time
cache
object
hit
required
boolean
key
string
ageSeconds
integer
expiresAt
string format: date-time
timing
object
totalMs
required
integer
dbMs
integer
externalMs
integer
deprecation
object
sunset
required
string format: date-time
successor
string
note
string
Example
{ "status": "success", "data": { "type": "article", "status": "queued", "inputFormat": "html", "errorClass": "parse_error", "attempts": 0, "cacheHits": 0, "recycleCount": 0 }}Requête mal formée (validation_error, invalid_idempotency_key, invalid_sort_field, invalid_filter).
Media type application/json
object
status
required
string
code
required
string
error
required
object
message
string
requestId
required
string
details
Array<object>
object
path
string
code
string
message
string
key
additional properties
Example
{ "status": "error"}Authentification manquante ou invalide.
Media type application/json
object
status
required
string
code
required
string
error
required
object
message
string
requestId
required
string
details
Array<object>
object
path
string
code
string
message
string
key
additional properties
Example
{ "status": "error"}Scope insuffisant (forbidden, no_active_plan, service_disabled_on_plan).
Media type application/json
object
status
required
string
code
required
string
error
required
object
message
string
requestId
required
string
details
Array<object>
object
path
string
code
string
message
string
key
additional properties
Example
{ "status": "error"}Payload trop volumineux.
Media type application/json
object
status
required
string
code
required
string
error
required
object
message
string
requestId
required
string
details
Array<object>
object
path
string
code
string
message
string
key
additional properties
Example
{ "status": "error"}Validation métier KO (unsafe_url, invalid_bulk_body).
Media type application/json
object
status
required
string
code
required
string
error
required
object
message
string
requestId
required
string
details
Array<object>
object
path
string
code
string
message
string
key
additional properties
Example
{ "status": "error"}Rate-limit dépassé. Header Retry-After retourné.
Media type application/json
object
status
required
string
code
required
string
error
required
object
message
string
requestId
required
string
details
Array<object>
object
path
string
code
string
message
string
key
additional properties
Example
{ "status": "error"}