Skip to main content
GET
/
agents
/
{agentId}
/
export-template
Export Agent Template
curl --request GET \
  --url https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/export-template \
  --header 'Authorization: Bearer <token>'
{
  "agentTemplate": {
    "workspaceId": "<string>",
    "name": "<string>",
    "description": "<string>",
    "nodes": "<array>",
    "tools": "<array>",
    "variables": "<array>",
    "agentData": "<unknown>"
  }
}

Example Response

{
  "agentTemplate": {
    "name": "My Agent - Exported 2024-01-15T10:30:00.000Z",
    "agentData": {
      "title": "My Agent",
      "description": "Customer support agent",
      "nodes": [...]
    },
    "tools": [...],
    "variables": [...],
    "nodes": [...],
    "workspaceId": "workspace_123"
  }
}

Use Cases

  • Backup your agent configuration before making changes
  • Duplicate an agent by exporting then importing
  • Share agent templates across workspaces

Notes

  • The exported template includes tools, variables, and nodes
  • SECRET_API_KEY is excluded from exports for security
  • Use /agents/import-template to restore or duplicate

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required

The unique identifier of the agent to export

Response

Successful response

agentTemplate
object
required