Skip to content
AiventicDeveloper Docs
Esc
↑↓navigate↵open⌘Jpreview

Ask Iven

Ask Iven in a new chat or a chat this key created; the complete answer, or SSE with stream: true.

Scope: chat

POST/v1/ask
Authorization
AuthorizationBearer token (aiv_sk_) · headerrequired

An Aiventic API key, sent as Authorization: Bearer aiv_sk_....

Header parameters
Idempotency-Keystring

Makes the ask safe to retry for 24 hours: a retry with the same key and request gets the stored answer (in the mode it asks for) instead of a second turn. Only a successful answer is stored. The same key while the first request runs is 409 idempotency-key-in-use; with a different request, 422 idempotency-key-reused. Keys are per key lineage and case-sensitive.

min length 1 · max length 255 · matches ^[\x21-\x7E]+$
Request body
requiredapplication/json
contentstring | null

The question. Required unless pick is given, and absent with pick.

chatIdstring<uuid> | null

The chat to continue. Omit to start a new chat. Required with pick.

brandstring | null

The brand the question is about. New chat only.

modelstring | null

The model the question is about. New chat only.

pickPublicPick | null

Answers a choice or quick reply from an earlier answer, instead of content. Needs chatId.

Show properties
One of:
null
null
PublicPick
itemIdstring<uuid>required
choicePublicChoicePick | nullrequired
Show properties
One of:
null
null
PublicChoicePick
picksobject | nullrequired
escapedAxesstring[] | nullrequired
quickReplyPublicQuickReplyPick | nullrequired
Show properties
One of:
null
null
PublicQuickReplyPick
indexinteger | stringrequired
matches ^-?(?:0|[1-9]\d*)$
streamboolean

true sends the answer as server-sent events while Iven writes it.

default: false
Responses
200

OK

chatIdstringrequired
messageIdstringrequired
textstringrequired
citationsPublicCitation[]required
Show properties
Array of PublicCitation
typePublicCitationTyperequired
Allowed:manualpartsjobhandbook
titlestringrequired
urlstring | nullrequired
pageinteger | string | nullrequired
matches ^-?(?:0|[1-9]\d*)$
itemsPublicItem[]required
Show properties
Array of PublicItem
idstring<uuid>required
kindPublicItemKindrequired
Allowed:choicequickReplypartCard
statusPublicItemStatusrequired
Allowed:pendingresolvedexpired
choicePublicChoice | nullrequired
Show properties
One of:
null
null
PublicChoice
promptstringrequired
axesPublicChoiceAxis[]required
Show properties
Array of PublicChoiceAxis
axisstringrequired
labelstring | nullrequired
optionsPublicChoiceOption[]required
Show properties
Array of PublicChoiceOption
idstringrequired
textstringrequired
descriptionstring | nullrequired
quickReplyPublicQuickReply | nullrequired
Show properties
One of:
null
null
PublicQuickReply
promptstringrequired
suggestionsPublicQuickReplySuggestion[]required
Show properties
Array of PublicQuickReplySuggestion
textstringrequired
descriptionstring | nullrequired
partCardPublicPartCard | nullrequired
Show properties
One of:
null
null
PublicPartCard
partNumberstringrequired
namestringrequired
descriptionstring | nullrequired
imageUrlstring | nullrequired
pricenumber | string | nullrequired
matches ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
currencystring | nullrequired
stockStatusPublicStockStatus | nullrequired
Show properties
One of:
null
null
PublicStockStatus
any
viewUrlstring | nullrequired
specsPublicPartSpec[]required
Show properties
Array of PublicPartSpec
namestringrequired
valuestringrequired
isPlaceholderbooleanrequired
supplierPartNumberstring | nullrequired
supplierstring | nullrequired
resolutionPublicItemResolution | nullrequired
Show properties
One of:
null
null
PublicItemResolution
choicePublicChoiceResolution | nullrequired
Show properties
One of:
null
null
PublicChoiceResolution
picksobjectrequired
escapedAxesstring[]required
quickReplyPublicQuickReplyResolution | nullrequired
Show properties
One of:
null
null
PublicQuickReplyResolution
indexinteger | stringrequired
matches ^-?(?:0|[1-9]\d*)$
400

Bad Request

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
401

Unauthorized

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
403

Forbidden

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
404

Not Found

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
409

Conflict

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
413

Payload Too Large

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
422

Unprocessable Entity

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
429

Too Many Requests

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
500

Internal Server Error

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
504

Gateway Timeout

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://api.aiventic.ai/v1/ask' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "brand": "Whirlpool",
  "model": "WRF555SDFZ",
  "content": "E4 error on the display"
}'
Response
{
  "chatId": "string",
  "messageId": "string",
  "text": "string",
  "citations": [
    {
      "type": "manual",
      "title": "string",
      "url": null,
      "page": null
    }
  ],
  "items": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "kind": "choice",
      "status": "pending",
      "choice": {},
      "quickReply": {},
      "partCard": {},
      "resolution": {}
    }
  ]
}