---
title: "Generate account identifier"
method: POST
path: "/accounts/{account_id}/account_identifiers"
tags: ["Minimum"]
---

# Generate account identifier

`POST /accounts/{account_id}/account_identifiers`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/diem/apis/mini-wallet-api-specification/docs/accounts/:account_id/account_identifiers/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `account_id` string, required

## Response `201`

A new account identifier is generated.

- AccountIdentifier
  - `account_identifier` string, required: Diem account identifier defined in DIP-5 for receiving payment.

## Other responses

- `400`: Invalid input

## Changes

- **2021-04-14** `9d564a25fb9d`: 1 info
  - endpoint added
- **2021-03-02** `118633303045`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/diem/apis/mini-wallet-api-specification/changes/accounts/:account_id/account_identifiers/post.md)

---

[API](https://skmtc.dev/diem/apis/mini-wallet-api-specification.md) - [All operations](https://skmtc.dev/diem/apis/mini-wallet-api-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/diem/apis/mini-wallet-api-specification/revisions/b3821c80b8b2?raw)
