---
title: "Generates a new account with defaults."
method: POST
path: "/v2/accounts/generate"
tags: ["Accounts"]
---

# Generates a new account with defaults.

`POST /v2/accounts/generate`

## Request

- Base URL: `http://localhost:8082`
- URL: `http://localhost:8082/v2/accounts/generate`
- Auth: none declared
- TypeScript: <https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api/docs/v2/accounts/generate/post.ts> (a function with typed inputs; its response is checked against the schema)

Generates a new account with defaults.

## Request body

- CoreapiGenerateAccountPayload
  - `account` CoreapiAccount
    - `document_signing_public_key` integer[]
    - `identity` string
    - `p2p_public_signing_key` integer[]
    - `pod_operator_account_id` integer[]
    - `precommit_enabled` boolean
    - `webhook_url` string

## Response `201`

Created

- CoreapiAccount
  - `document_signing_public_key` integer[]
  - `identity` string
  - `p2p_public_signing_key` integer[]
  - `pod_operator_account_id` integer[]
  - `precommit_enabled` boolean
  - `webhook_url` string

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

---

[API](https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api.md) - [All operations](https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api/llms.txt) - [OpenAPI document](https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api/revisions/36808f8744e0?raw)
