> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nedzo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Import template

> Import a public or private template into a workspace via the Nedzo REST API. The import is queued and returns an importId to track the job.

> [!NOTE]
>
> This endpoint is for the VIP plan only. Other plans get a `403`. See [Plan access](https://docs.nedzo.ai/api-reference/introduction.md#plan-access).

Import a template into a workspace. The import is queued for processing and completes quickly; the returned `importId` identifies the job.

Public templates can be imported by any account. Private templates can only be imported by the owning account.

> [!TIP]
>
> `workspaceId` is always required for this endpoint — it identifies the target workspace to import into and cannot be inferred from the API key. See [Workspace ID and Request Scope](https://docs.nedzo.ai/authentication#workspace-id-and-request-scope).

## Body Parameters

**workspaceId** `string` *required*

Target workspace to import the template into.

```bash cURL theme={null}
curl -X POST "https://api.nedzo.ai/v1/templates/123e4567-e89b-12d3-a456-426614174000/import" \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"workspaceId": "789e4567-e89b-12d3-a456-426614174000"}'
```

```json Response (201) theme={null}
{
  "importId": "abc12345-e89b-12d3-a456-426614174000",
  "status": "queued",
  "validation": {
    "valid": true,
    "itemCounts": {
      "agents": 1,
      "workflows": 0,
      "customFields": 0,
      "tags": 0
    },
    "warnings": [],
    "errors": []
  },
  "message": "Import queued successfully."
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.