Explanation
Explains a document in any language
Totoy API
Explanation
Knowledge Bases
- GETReturns a list of Knowledge Bases.
- POSTCreates a Knowledge Base.
- GETRetrieves a Knowledge Base.
- DELDeletes a Knowledge Base.
- PATCHModifies a Knowledge Base.
- POSTCreates a Knowledge Base Chat Response for the given Messages.
- GETReturns a list of Knowledge Base Sources.
- POSTAdds Sources to a Knowledge Base.
- GETRetrieves a Knowledge Base Source.
- DELRemoves a Knowledge Base Source from a Knowledge Base.
Sources
Projects
Organization
Explanation
Explains a document in any language
Explains a given document Source in any language in a specified output language and language level.
POST
/
explanation
curl --request POST \
--url https://api.totoy.ai/v1/explanation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"output_language": "en",
"language_level": "plain",
"source_id": "src_dmZ7imKLaPcQnv5ckvGlOEAA7",
"markdown_response": true
}'
{
"project_id": "pj_avX7imfLaPcQnv5ckvGlOEBA9",
"output_language": "en",
"language_level": "plain",
"source_id": "src_dmZ7imKLaPcQnv5ckvGlOEAA7",
"answer": {
"role": "assistant",
"content": "Hey!\nThis is a letter from the Austrian tax office.\nThey are informing you about your obligation to submit quarterly VAT returns if your annual turnover is more than €35,000.\nHowever, if you submit a VAT return for the month of January on time, you can choose to submit monthly returns instead.\nIf your annual turnover is more than €100,000, you are required to submit monthly VAT returns.\nSince your VAT returns and payments for 2021 do not cover the entire period, they are asking you to fill out the enclosed form to provide your actual annual turnover.\nThis is important to avoid sending you incorrect reminders.\nIf you have any questions, you can contact the service center at 050 233 233.\nTake care!"
},
"markdown_response": true
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
OK
The response is of type object
.
curl --request POST \
--url https://api.totoy.ai/v1/explanation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"output_language": "en",
"language_level": "plain",
"source_id": "src_dmZ7imKLaPcQnv5ckvGlOEAA7",
"markdown_response": true
}'
{
"project_id": "pj_avX7imfLaPcQnv5ckvGlOEBA9",
"output_language": "en",
"language_level": "plain",
"source_id": "src_dmZ7imKLaPcQnv5ckvGlOEAA7",
"answer": {
"role": "assistant",
"content": "Hey!\nThis is a letter from the Austrian tax office.\nThey are informing you about your obligation to submit quarterly VAT returns if your annual turnover is more than €35,000.\nHowever, if you submit a VAT return for the month of January on time, you can choose to submit monthly returns instead.\nIf your annual turnover is more than €100,000, you are required to submit monthly VAT returns.\nSince your VAT returns and payments for 2021 do not cover the entire period, they are asking you to fill out the enclosed form to provide your actual annual turnover.\nThis is important to avoid sending you incorrect reminders.\nIf you have any questions, you can contact the service center at 050 233 233.\nTake care!"
},
"markdown_response": true
}