{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dropcontact/json-schema/dropcontact-post-all-response-schema.json",
  "title": "PostAllResponse",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dropcontact-openapi.json#/components/schemas/PostAllResponse",
  "properties": {
    "error": {
      "type": "boolean",
      "description": "Whether an error occurred.",
      "default": false
    },
    "success": {
      "type": "boolean",
      "description": "Whether the request was accepted.",
      "default": true
    },
    "credits_left": {
      "type": "integer",
      "description": "Number of credits left on your account."
    },
    "request_id": {
      "type": "string",
      "description": "Request ID, used to fetch the result."
    },
    "hashedInputs": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "One signed token (JWT) per contact sent, in the order sent. Each token holds the contact's input data. Only present with `hashedInputs=true`."
    },
    "data": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/PostRecord"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "Contacts sent that have an error or a warning. Missing when no contact has one."
    }
  },
  "type": "object",
  "required": [
    "credits_left",
    "request_id"
  ],
  "$defs": {
    "PostRecord": {
      "properties": {
        "index": {
          "type": "integer"
        },
        "errors": {
          "anyOf": [
            {
              "$ref": "#/$defs/enrich_api__models__record_errors__RecordErrors"
            },
            {
              "type": "null"
            }
          ]
        },
        "warnings": {
          "anyOf": [
            {
              "$ref": "#/$defs/enrich_api__models__record_warnings__RecordWarnings"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "index"
      ],
      "title": "PostRecord"
    },
    "enrich_api__models__record_errors__RecordErrors": {
      "properties": {
        "unexpected_field": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ]
        },
        "only_contact_data": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "RecordErrors"
    },
    "enrich_api__models__record_warnings__RecordWarnings": {
      "properties": {
        "empty_field": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ]
        },
        "only_organization_data": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "RecordWarnings"
    }
  }
}