Explains a given document Source in any language in a specified output language and language level.
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
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
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
}
Explains a given document Source in any language in a specified output language and language level.
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
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
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
}