curl -vv -X POST \
'https://backend-ja.alli.ai/webapi/apps/TExNQXBwOjY1NWVlYTMzY2IzMzQ1OTVkZjQwNzdhZg==/run' \
--header 'Accept: */*' \
--header 'API-KEY: REST_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"inputs":{"input": "The Little Prince has sold approximately 140 million copies worldwide, making it one of the best-selling and most translated books ever published. To date, it has been translated into 301 languages and dialects. It was the first novel to be published in the United States. The story of the novel is interesting: Saint-Exupéry was in New York City, and while having dinner with his American publisher, Eugene Reynal, he doodled a child on a napkin. When Eugene Reynal saw the drawing, he suggested to Saint-Maximilien that it would be a good idea to write a children's book about the child before Christmas. (It is said that Eugène Reynal suggested it to relieve his stress.) The basic sketch of the Little Prince was based on a statue of the baby Jesus in Prague, Czech Republic. The narrator, a pilot, was also inspired by visions Saint-Exupéry himself experienced when he and his co-pilot crash-landed in the Sahara Desert in 1935 and were stranded for five days without a drop of water."}}'
Single Action Response Example
{
"result": {
"id": "TExNQXBwOjY1OTc5ZjliNGM2Y2RiMzNiNmJmNzAzZA==",
"name": "New single action (3)",
"type": "single_action",
"category": "全般",
"responses": [
{
"id": "U2luZ2xlQWN0aW9uOjY1YzFjZjA4MjdmNTY5ZDIxNDI0ODU5Nw==",
"type": "llm",
"message": "The Little Prince is one of the world's best-selling books, with over 140 million copies sold, and has been translated into 301 languages. The novel was first published in the United States, at the suggestion of publisher Eugene Reynal. The basic sketch of The Little Prince was inspired by the statue of the Baby Jesus in Prague, Czech Republic, and the pilot was inspired by Saint-Exupéry's own experiences in the Sahara Desert."
}
]
}
}
{
"result": {
"id": "TExNQXBwOjY1NWVlYTU1OTZlOWM1MjI4MDY2YjlhOQ==",
"name": "LLM App用Skill",
"type": "skill",
"category": "全般",
"responses": [
{
"id": "Q2hhdDo2NTVlZjFhMGJiOWRkZjBhMWVkMzViNTE=",
"type": "llm",
"message": "{\"blocks\": [{\"key\": \"jeno\", \"type\": \"unstyled\", \"text\": \"A girl who loses her mother, is called ash and abused by her family, but finds solace in the tree she plants on her mother's grave.\", \"depth\": 0, \"inlineStyleRanges\": [], \"entityRanges\": [], \"data\": {}}], \"entityMap\": {}}"
}
]
}
}
Error Message
想定したresponseが届かない場合は、以下のエラーメッセージをご確認ください。
Status Code
Error Code
Name
Message
Description
500
7000
API Error
Something went wrong
以下のエラーには該当しない、API処理の失敗した場合
403
7001
Invalid API Key
API-KEY is not valid
API-KEYが無効な場合
403
7002
Invalid JSON
Cannot decode tuen requested JSON body
リクエストされたjsonをデコードできない場合
400
7003
Invalid Parameter
Requested parameters are not valid. 'text' is empty.
リクエストされたパラメータが間違っている場合
403
7004
Payment error
billing error.
支払いに関する一般的なエラー(例:利用料の支払いが確認できず、環境が利用できない場合など)
403
-
Wrong HTTP Method
-
無効なHTTPメソッドの場合
Error Response example
{
"type": "APIError",
"code": 7000,
"message": "Something went wrong."
}