{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/civai-co/json-schema/civai-co-account-create-schema.json",
  "title": "AccountCreate",
  "description": "Model for creating a new account.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/civai-co-accounts-api-openapi.yml#/components/schemas/AccountCreate",
  "properties": {
    "platform": {
      "type": "string",
      "title": "Platform",
      "description": "Platform name (instagram, facebook, etc.)"
    },
    "account_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Account Name",
      "description": "Account name/identifier"
    },
    "account_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Account Id",
      "description": "Platform-specific account ID"
    },
    "credentials": {
      "type": "string",
      "title": "Credentials",
      "description": "Access token or credentials (will be encrypted)"
    }
  },
  "type": "object",
  "required": [
    "platform",
    "credentials"
  ]
}