---
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, create_time, and update_time populated.
 Returns INVALID_ARGUMENT if the request payload fails validation.

## Request body

- TodoV1Todo — Todo is the canonical representation of a todo item.
  - `id` string — Server-assigned unique 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.
  - `createTime` string, date-time — Time at which the todo item was created. Server-assigned, read-only.
  - `updateTime` string, date-time — Time at which the todo item was last modified. Server-assigned, read-only.

## Response `200`

OK

- TodoV1Todo — Todo is the canonical representation of a todo item.
  - `id` string — Server-assigned unique 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.
  - `createTime` string, date-time — Time at which the todo item was created. Server-assigned, read-only.
  - `updateTime` string, date-time — Time at which the todo item was last modified. Server-assigned, read-only.

---

[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/versions/d99daada47f9/schema)
