Flows
Templates

Get Template

Retrieve one flows template, together with each runnable version's inputs and outputs. versions is empty when no published version is runnable through this API. Works for any template you can open, including templates shared with you by link or published to Explore from another workspace, which GET /v1/flows/templates does not list.

get/v1/flows/templates/{template_id}

Path parameters

template_idstring required

The ID of the template, as shown in the ElevenLabs app or by GET /v1/flows/templates.

The ID of the template, as shown in the ElevenLabs app or by GET /v1/flows/templates.

Query parameters

versions_per_templateinteger

How many of each template's published versions to return, newest first. has_more_versions tells you when a template has more.

How many of each template's published versions to return, newest first. has_more_versions tells you when a template has more.

Headers

xi-api-keystring nullable

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Response

Successful Response

idstring required

Pass as template_id on POST /v1/flows/templates/{template_id}/runs.

namestring required

The template's name.

descriptionstring nullable

The template's description, if it has one.

has_more_versionsboolean required

Whether this template has further published versions beyond the versions_per_template returned here. Fetch GET /v1/flows/templates/{template_id} with a larger versions_per_template to see more of them.

Example response

{
  "id": "tmpl_abc123",
  "name": "Product shot",
  "versions": [
    {
      "version_id": "ver_01hxyz",
      "inputs": [
        {
          "id": "prompt"
        }
      ],
      "outputs": [
        {
          "id": "prompt"
        }
      ]
    }
  ]
}

Changes