Skip to main content
POST
Create Answer
Result retention: Pass storage.expires_in to keep this answer’s stored files longer than the default of 7 days. Values: 7d, 10d, 30d, 60d, 90d, 180d, 365d, or never. See Storage for details.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer , where is your auth token.

Body

application/json
task
string
required

The task to be performed.

storage
object

Controls how long this answer's stored files (its result file and the pages fetched to build it) are retained. When omitted, they are kept for 7 days. The value in effect is returned in the response as storage.expires_in. See the Storage section in the feature docs. An invalid value returns 400 with code invalid_storage_expires_in.

json_format

The desired output JSON object with empty values as a schema, or simply describe the data you want as a string.

Response

Successful response with the answer.

storage
object

Retention applied to this answer's stored files.

id
string
object
string
created
integer
metadata
object
task
string
result
object