---
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.

## Changes

- **2026-08-15** `bbd5b5339910` — 4 warning, 6 info
  - removed the request property `createTime`
  - removed the request property `updateTime`
  - removed the optional property `createTime` from the response with the `200` status
  - removed the optional property `updateTime` from the response with the `200` status
  - …6 more
- **2026-06-18** `d99daada47f9` — 1 info
  - endpoint added
- **2021-12-27** `52ca3c9327fd` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/go-kratos/apis/todoservice-api/changes/v1/todos/create/post.md)

---

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