{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/denta-com/json-schema/denta-com-post-v1-billing-buy-request-schema.json",
  "title": "PostV1BillingBuyRequest",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/denta-com-openapi-generated.yml#/components/schemas/PostV1BillingBuyRequest",
  "type": "object",
  "properties": {
    "amount": {
      "type": "integer",
      "description": "The number of credits to purchase; must be a positive integer."
    },
    "type": {
      "type": "string",
      "description": "Credit type to purchase; supported values are `v0`, `gateway`, and `agent`."
    },
    "source": {
      "type": "string",
      "description": "Optional identifier of the caller; defaults to `api`."
    }
  },
  "required": [
    "amount",
    "type"
  ]
}