---
title: "Create credit spend policy"
method: POST
path: "/billing/credits/spend-policies"
tags: ["credits"]
---

# Create credit spend policy

`POST /billing/credits/spend-policies`

## Request body

- CreateCreditSpendPolicyRequestBody
  - `billing_credit_id` string, required
  - `company_id` string, nullable — The company the cap applies to. Set exactly one of company_id and user_id.
  - `label` string, nullable
  - `max_per_draw` number, double, required — The largest number of credits a single draw may spend.
  - `user_id` string, nullable — The user the cap applies to. Set exactly one of company_id and user_id.

## Response `201`

Created

- object
  - `data` CreditSpendPolicyResponseData, required
    - `billing_credit_id` string, required
    - `company_id` string, nullable
    - `created_at` string, date-time, required
    - `id` string, required
    - `label` string, nullable
    - `max_per_draw` number, double, nullable
    - `scope_type` 'company' | 'user' | 'group', required
    - `updated_at` string, date-time, required
    - `user_id` string, nullable
  - `params` object, required — Input parameters

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Server error

## Changes

- **2026-09-02** `3d18f4ee08ee` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/schematichq/apis/schematic-api/changes/billing/credits/spend-policies/post.md)

---

[API](https://skmtc.dev/schematichq/apis/schematic-api.md) · [All operations](https://skmtc.dev/schematichq/apis/schematic-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/schematichq/schematic-api/revisions/0235475ead56/schema)
