Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

Content-Type
string
required

Body

application/json
modelId
string
required
Pattern: ^(|(cradl|las):organization:[a-z0-9-_]+/)(cradl|las):model:[a-z0-9-_]+$
documentId
string
required
Pattern: ^(cradl|las):document:[a-f0-9]{32}$
metadata
object
trainingId
string
Pattern: ^las:model-training:[a-z0-9-_]+$
postprocessConfig
object
rotation
enum<integer>
Available options:
0,
90,
180,
270
description
string | null
Maximum string length: 4096
agentRunId
string
Pattern: ^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$
async
boolean
preprocessConfig
object
maxPages
integer
Required range: 1 <= x <= 100
name
string | null
Maximum string length: 4096
autoRotate
boolean
imageQuality
enum<string>
Available options:
LOW,
HIGH

Response

200 response

updatedTime
string | null
required
Pattern: ^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$
metadata
object | null
required
updatedBy
string | null
required
Maximum string length: 4096
modelId
string
required
Pattern: ^(|(cradl|las):organization:[a-z0-9-_]+/)(cradl|las):model:[a-z0-9-_]+$
description
string | null
required
Maximum string length: 4096
predictions
required
createdBy
string
required
Maximum string length: 4096
name
string | null
required
Maximum string length: 4096
createdTime
string
required
Pattern: ^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$
documentId
string
required
Pattern: ^(cradl|las):document:[a-f0-9]{32}$
predictionId
string
required
Pattern: ^(cradl|las):prediction:[a-f0-9]{32}$
trainingId
string | null
Pattern: ^las:model-training:[a-z0-9-_]+$
nextPage
integer | null
postprocessConfig
object
warnings
string[] | null
inferenceTime
number | null
Required range: x >= 0
error
string | null
Maximum string length: 4096
agentRunId
string | null
Pattern: ^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$
preprocessConfig
object | null
fileUrl
string | null
Pattern: ^http://localhost.*|^https://.*
errors
string[] | null
status
enum<string>
Available options:
pending,
succeeded,
failed