---
title: "Create a response for a question about a component"
method: POST
path: "/api/v0/components/{component_id}/responses"
tags: ["Components"]
---

# Create a response for a question about a component

`POST /api/v0/components/{component_id}/responses`

Generate a response to a question about a visual component using its content and description.

## Path parameters

- `component_id` string, required

## Request body

- ComponentResponseRequest
  - `question` string, required — The question to ask about the component

## Response `200`

Successful Response

- ComponentResponseResponse
  - `answer` string, required — The answer to the question

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/outerport/apis/outerport-api.md) · [All operations](https://skmtc.dev/outerport/apis/outerport-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/outerport/outerport-api/revisions/f565b46daaea/schema)
