POST
/
v0
/
interfaces
/
export_template
curl --request POST \
  --url 'https://api.unify.ai/v0/interfaces/export_template' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{}'
{
    "template": {
        "name": "Analytics Dashboard",
        "tabs": [
            {
                "name": "Overview",
                "tiles": [
                    {
                        "name": "Data Table",
                        "type": "Table",
                        "position": {
                            "x": 0,
                            "y": 0,
                            "width": 6,
                            "height": 4
                        }
                    }
                ]
            }
        ],
        "template_version": "1.0"
    },
    "metadata": {
        "exported_at": "2024-01-01T12:00:00Z"
    },
    "export_stats": {
        "tabs": 1,
        "tiles": 1
    }
}

Export an interface as a reusable template.

Authorizations

Authorization
string
required

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

Body

include_metadata
boolean
default:"true"
description
string | null
tags
[string]
default:"[]"
template_name
string | null
interface_id
string | null
project
string | null
interface_name
string | null
checkpoint
boolean
default:"false"
curl --request POST \
  --url 'https://api.unify.ai/v0/interfaces/export_template' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{}'
{
    "template": {
        "name": "Analytics Dashboard",
        "tabs": [
            {
                "name": "Overview",
                "tiles": [
                    {
                        "name": "Data Table",
                        "type": "Table",
                        "position": {
                            "x": 0,
                            "y": 0,
                            "width": 6,
                            "height": 4
                        }
                    }
                ]
            }
        ],
        "template_version": "1.0"
    },
    "metadata": {
        "exported_at": "2024-01-01T12:00:00Z"
    },
    "export_stats": {
        "tabs": 1,
        "tiles": 1
    }
}