{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"LLM API Quickstart","description":"Get started with Treasure Data's LLM API. Learn how to list actions, manage AI agents, and build intelligent customer experiences programmatically.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"treasure-data-llm-api-quickstart","__idx":0},"children":["Treasure Data LLM API Quickstart"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The LLM API provides AI-powered capabilities for Treasure Data's platform, enabling you to build intelligent customer experiences, automated workflows, and conversational interfaces."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This functionality includes:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Manage AI actions and integrations"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Execute chat interfaces"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Manage AI agents"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Configure prompts and webhooks"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Build conversational experiences"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["By leveraging the LLM API endpoints you can create an external application, tool, or CLI to automate AI-powered workflows. For example, you may want to integrate LLM API with your customer service platform to provide intelligent responses or setup complex conversational automations."," ","Please refer to this ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/my-settings/getting-your-api-keys"},"children":["document"]}," for getting your API Keys."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"basic-use","__idx":1},"children":["Basic Use"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"list-actions","__idx":2},"children":["List Actions"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In this case, you want to return a list of available AI actions. This example issues a call to the API to return a list of your configured actions."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"sample-request","__idx":3},"children":["Sample Request"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -H \"Authorization: TD1 YOUR_API_KEY_HERE\" \\\n\"https://llm-api.treasuredata.com/api/actions\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"sample-response","__idx":4},"children":["Sample Response"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"data\": [\n    {\n      \"id\": \"00000000-0000-0000-0000-000000000001\",\n      \"type\": \"actions\",\n      \"links\": {\n        \"self\": \"http://www.example.com/api/actions/00000000-0000-0000-0000-000000000001\"\n      },\n      \"attributes\": {\n        \"integrationId\": \"00000000-0000-0000-0000-000000000001\",\n        \"promptId\": \"00000000-0000-0000-0000-000000000001\",\n        \"chatWidgetType\": null,\n        \"chatWidgetLabel\": null,\n        \"webhookTextUrl\": \"https://llm-api.treasuredata.com/api/actions/00000000-0000-0000-0000-000000000001/text\",\n        \"slackRequestUrl\": null,\n        \"uiTags\": []\n      }\n    },\n    {\n      \"id\": \"00000000-0000-0000-0000-000000000002\",\n      \"type\": \"actions\",\n      \"links\": {\n        \"self\": \"http://www.example.com/api/actions/00000000-0000-0000-0000-000000000002\"\n      },\n      \"attributes\": {\n        \"integrationId\": \"00000000-0000-0000-0000-000000000002\",\n        \"promptId\": \"00000000-0000-0000-0000-000000000002\",\n        \"chatWidgetType\": null,\n        \"chatWidgetLabel\": null,\n        \"webhookTextUrl\": \"https://llm-api.treasuredata.com/api/actions/00000000-0000-0000-0000-000000000002/text\",\n        \"slackRequestUrl\": null,\n        \"uiTags\": [\n          \"lang:en\"\n        ]\n      }\n    }\n  ],\n  \"meta\": {\n    \"total\": 2\n  },\n  \"links\": {\n    \"first\": \"https://llm-api.treasuredata.com/api/actions?filter%5Bui_tags%5D=lang%3Aes&page%5Blimit%5D=20&page%5Boffset%5D=0\",\n    \"last\": \"https://llm-api.treasuredata.com/api/actions?filter%5Bui_tags%5D=lang%3Aes&page%5Blimit%5D=20&page%5Boffset%5D=40\",\n    \"next\": \"https://llm-api.treasuredata.com/api/actions?filter%5Bui_tags%5D=lang%3Aes&page%5Blimit%5D=20&page%5Boffset%5D=40\",\n    \"prev\": \"https://llm-api.treasuredata.com/api/actions?filter%5Bui_tags%5D=lang%3Aes&page%5Blimit%5D=20&page%5Boffset%5D=0\"\n  }\n}\n","lang":"json"},"children":[]}]},"headings":[{"value":"Treasure Data LLM API Quickstart","id":"treasure-data-llm-api-quickstart","depth":1},{"value":"Basic Use","id":"basic-use","depth":2},{"value":"List Actions","id":"list-actions","depth":3},{"value":"Sample Request","id":"sample-request","depth":4},{"value":"Sample Response","id":"sample-response","depth":4}],"frontmatter":{"seo":{"title":"LLM API Quickstart","description":"Get started with Treasure Data's LLM API. Learn how to list actions, manage AI agents, and build intelligent customer experiences programmatically."}},"lastModified":"2026-04-08T01:17:11.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/apis/llm-api","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}