---
title: "POST /v1/todos/create"
method: POST
path: "/v1/todos/create"
tags: ["TodoService"]
---

# POST /v1/todos/create

`POST /v1/todos/create`

CreateTodo creates a new todo item and returns the persisted record
 with the server-assigned id, created_at, and updated_at populated.
 Returns INVALID_ARGUMENT if the request payload fails validation.

## Request body

- TodoV1Todo — Todo is the canonical representation of a todo item.
  - `id` string — Application-generated UUIDv7 identifier. Read-only on create.
  - `title` string — Short human-readable title.
  - `content` string — Detailed description or notes for the todo item.
  - `completed` boolean — Whether the todo item has been completed.
  - `createdAt` string, date-time — Time at which the todo item was created. Server-assigned, read-only.
  - `updatedAt` string, date-time — Time at which the todo item was last modified. Server-assigned, read-only.
  - `status` integer — Lifecycle state. Server-assigned, read-only: call DeleteTodo to move an item to TODO_STATUS_DELETED.

## Response `200`

OK

- TodoV1Todo — Todo is the canonical representation of a todo item.
  - `id` string — Application-generated UUIDv7 identifier. Read-only on create.
  - `title` string — Short human-readable title.
  - `content` string — Detailed description or notes for the todo item.
  - `completed` boolean — Whether the todo item has been completed.
  - `createdAt` string, date-time — Time at which the todo item was created. Server-assigned, read-only.
  - `updatedAt` string, date-time — Time at which the todo item was last modified. Server-assigned, read-only.
  - `status` integer — Lifecycle state. Server-assigned, read-only: call DeleteTodo to move an item to TODO_STATUS_DELETED.

---

[API](https://skmtc.net/go-kratos/apis/todoservice-api.md) · [All operations](https://skmtc.net/go-kratos/apis/todoservice-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/go-kratos/todoservice-api/revisions/bbd5b5339910/schema)
