API
AgentQuestion
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{organization_id}/agents/{id}/spark/questions/{question_id}/answer |
create |
The agent received the answer |
Fields
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
No | Id |
create
POST /api/v1/organizations/{organization_id}/agents/{id}/spark/questions/{question_id}/answer
Operation ID: post_api_v1_organizations_organization_id_agents_id_spark_questions_question_id_answer.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
question_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
answers |
object |
Yes | The chosen or typed values for each of the question's parts, by part id. |
conversation_id |
string |
Yes |
Responses
200: The agent received the answer
application/json
| Property | Type | Required | Description |
|---|---|---|---|
status |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
409: The question was already answered or has expired
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
No |