---
title: "Create a config item"
method: POST
path: "/v1/config_items"
tags: ["Config Items"]
---

# Create a config item

`POST /v1/config_items`

## Request

- Base URL: `https://api.paymongo.com`
- URL: `https://api.paymongo.com/v1/config_items`
- Auth: HTTP basic

Creates an organization-level configuration item used by expense workflows.

## Request body

- CreateOrganizationConfigItemRequest
  - `config_key` string, required
  - `label` string
  - `metadata` object
  - `value` string, required

## Response `201`

Config item created

- object: Standard response containing data and its metadata if any
  - `approved_count` integer
  - `approved_total_amount` integer
  - `data` OrganizationConfigItemResource
    - `config_key` string
    - `created_at` string
    - `id` string
    - `label` string
    - `metadata` object
    - `organization_id` string
    - `type` string
    - `updated_at` string
    - `value` string
  - `has_more` boolean
  - `pending_count` integer
  - `rejected_count` integer
  - `total_amount` integer

## Other responses

- `400`: Invalid config item data
- `401`: Missing or invalid secret key
- `500`: Internal server error

---

[API](https://skmtc.dev/paymongo/apis/expense-api.md) - [All operations](https://skmtc.dev/paymongo/apis/expense-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paymongo/apis/expense-api/revisions/521ade5edadd?raw)
