---
title: "Finalize onboarding process with template"
method: POST
path: "/api/onboarding/finalize"
tags: ["Templates"]
---

# Finalize onboarding process with template

`POST /api/onboarding/finalize`

Completes the onboarding process by creating a new project with the selected template, including a default document and test event.

## Request body

- object
  - `templateKey` string, required — Key of the template to use for the new project

## Response `200`

Created project and document details

- object — Created project and document details
  - `project` object, required — The created project
    - `id` string, uuid, required — Unique identifier of the project
    - `name` string, required — Name of the project
    - `key` string, required — URL-friendly key of the project
    - `organisationId` string, uuid, required — Organisation the project belongs to
    - `createdAt` string, required — Timestamp when the project was created
    - `updatedAt` string, required — Timestamp when the project was last updated
  - `document` object, required — The created document from the template
    - `id` number, required — Unique identifier of the document
    - `key` string, required — URL-friendly key of the document
    - `name` string, required — Name of the document
    - `path` string, required — Path of the document in the project
    - `contentType` string, required — Content type of the document
    - `type` string, required — Type of the document (file or folder)

---

[API](https://skmtc.dev/gorules/apis/gorules-agent-api.md) · [All operations](https://skmtc.dev/gorules/apis/gorules-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gorules/gorules-agent-api/revisions/52c0773fcd80/schema)
