Skip to main content
POST
Declare an upload's external provenance

Authorizations

Authorization
string
header
required

A ZeroGen API key: zg_ for a live key, zg_test_ for a test key.

Headers

Idempotency-Key
string

Makes retries safe: a retry with the same key and body returns the first response for 24 hours instead of repeating the work. Reusing a key with a different body returns 409.

Required string length: 1 - 255
Pattern: ^[\x21-\x7e]+$

Path Parameters

assetId
string
required

The asset's ID

Body

application/json
tool
object
required
sources
object[]

Untrusted claims about the readable Library sources used outside ZeroGen.

Required array length: 1 - 32 elements
workflow
object

Untrusted JSON workflow, limited to 262144 serialized UTF-8 bytes.

prompt
string
Maximum string length: 20000
externalRef
object
occurredAt
string<date-time>
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$

Response

The declared upload.

assetId
string
required
runId
string
required
asset
object
required