---
title: "Create an answer"
method: POST
path: "/v1/answers"
tags: ["answers"]
---

# Create an answer

`POST /v1/answers`

## Request

- Base URL: `https://api.olostep.com`
- URL: `https://api.olostep.com/v1/answers`
- Auth: HTTP bearer

Runs a task against the web and returns a structured answer.

## Request body

- object
  - `task` string, required: The task to be performed.
  - `json_format` union: Desired output shape, as a schema object or a free-text description.
    - string
    - object

## Response `200`

Default Response

- object: An answer resource.
  - `id` string, required
  - `object` string, required
  - `created` number, required
  - `task` string, required
  - `metadata` object, nullable
  - `result` object
    - `json_content` string, nullable
    - `json_hosted_url` string, nullable
    - `sources` string[]

## Other responses

- `400`: Default Response
- `401`: Default Response
- `402`: Default Response
- `429`: Default Response
- `502`: Default Response
- `504`: Default Response

---

[API](https://skmtc.dev/olostep/apis/olostep-api.md) · [All operations](https://skmtc.dev/olostep/apis/olostep-api/llms.txt) · [OpenAPI document](https://skmtc.dev/olostep/apis/olostep-api/revisions/13c766ab100c?raw)
