---
title: "POST /tx"
method: POST
path: "/tx"
tags: ["transaction"]
---

# POST /tx

`POST /tx`

Create a new transaction

## Query parameters

- `read_only` boolean
- `ttl` string

## Response `200`

Transaction info

- CreateTx
  - `id` integer

## Other responses

- `400` — error

## Changes

> 53 revisions in range; 2 could not be searched.

- **2026-06-26** `2a64c71b58ba` — 1 info
  - added the new optional `query` request parameter `ttl`
- **2025-06-02** `60812f5416c5` — 1 warning
  - deleted the `query` request parameter `ttl`

[Change history](https://skmtc.dev/sourcenetwork/apis/defradb-api/changes/tx/post.md)

---

[API](https://skmtc.dev/sourcenetwork/apis/defradb-api.md) · [All operations](https://skmtc.dev/sourcenetwork/apis/defradb-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sourcenetwork/defradb-api/revisions/659e79583f79/schema)
