---
title: "Signs and returns the signature of the Payload."
method: POST
path: "/v2/accounts/{account_id}/sign"
tags: ["Accounts"]
---

# Signs and returns the signature of the Payload.

`POST /v2/accounts/{account_id}/sign`

## Request

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

Signs and returns the signature of the Payload.

## Path parameters

- `account_id` string, required

## Request body

- CoreapiSignRequest
  - `payload` string

## Response `200`

OK

- CoreapiSignResponse
  - `payload` string
  - `public_key` string
  - `signature` string
  - `signer_id` string

## Other responses

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

## Changes

- **2022-11-28** `9070fa05ed48`: 1 info
  - api operation id `account_sign` removed and replaced with `account_sign_v2`
- **2021-02-16** `40500fd98eca`: 1 info
  - api operation id `account_sign_v2` removed and replaced with `account_sign`

[Operation history](https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api/changes/v2/accounts/:account_id/sign/post.md)

---

[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)
