Introduction
The Model Download API provides external access to retrieve download URLs for artifacts generated in Rasa Studio, facilitating CI/CD integration. Built with GraphQL, this API allows queries to request trained assistant models and associated input data in YAML format.Requirements
-
Required API Role
Model download urls. See Authorization to learn how to get an access token.
-
Assistant API ID. See authorization guide for configuration for more details.

-
Assistant Version Name. See user guide for training for more details.

Available APIs
Query: ModelDownloadUrls
Schema:
Input: ModelDownloadUrlsInput
Output: ModelDownloadUrlsOutput
Usage
The query can be used to fetch the download URLs for the trained model and the input data in YAML format for a assistant.Example curl Request
Request the Model Download API using e.g. curl:
Example Response
The response will contain the download URLs for the trained model and the model input data.Download model file
To download the model file, request themodelFileUrl with authorization header.
<assistant-version-name>.tar.gz can be used to deploy the trained model.
Download model input data
To download the model input YAML files, request themodelInputUrl with authorization header.
<assistant-version-name>_model-input.tar.gz contains the model input data in YAML format:
data/flows.yamldata/nlu.yamlconfig.yamlcredentials.yamldomain.yamlendpoints.yaml