---
title: "Create a new custom field."
method: POST
path: "/account-custom-field-create"
tags: ["Account"]
---

# Create a new custom field.

`POST /account-custom-field-create`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/account-custom-field-create`
- Auth: none declared

## Request body

- AccountCustomFieldCreate: accountCustomFieldCreate is a command that creates a new custom field in the account settings
  - `json` boolean: Set output format to JSON
  - `name` string, required: The name of the custom field
  - `object` string, required: The object to create the custom field
  - `object-type` string, required: The object type to create the custom field [e.g. STATIC_SECRET,DYNAMIC_SECRET,ROTATED_SECRET]
  - `required` boolean: Specify whether the custom field is mandatory
  - `token` string: Authentication token (see `/auth` and `/configure`)
  - `uid-token` string: The universal identity token, Required only for universal_identity authentication

## Response `200`

accountCustomFieldCreateResponse wraps response body.

- AccountCustomFieldCreateOutput
  - `id` integer

## Other responses

- `default`: errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.dev/akeyless/apis/account-settings.md) - [All operations](https://skmtc.dev/akeyless/apis/account-settings/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/account-settings/revisions/6beb28d274ac?raw)
