{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/metricool/json-schema/metricool-json-ok-response-social-media-system-prompt-response-schema.json",
  "title": "JsonOkResponseSocialMediaSystemPromptResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/metricool-ai-api-service-api-openapi.yml#/components/schemas/JsonOkResponseSocialMediaSystemPromptResponse",
  "type": "object",
  "properties": {
    "metadata": {
      "type": "object"
    },
    "page": {
      "$ref": "#/$defs/JsonPaging"
    },
    "data": {
      "$ref": "#/$defs/SocialMediaSystemPromptResponse"
    }
  },
  "$defs": {
    "JsonPaging": {
      "type": "object",
      "properties": {
        "next": {
          "type": "string"
        }
      }
    },
    "NetworkInstructionsGenerationStatusResponse": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "description": "RUNNING or FAILED"
        },
        "errorCode": {
          "type": "string",
          "description": "Reason of a FAILED generation: NOT_ENOUGH_POSTS, AI_SERVICE_ERROR or GENERIC_ERROR. Absent while RUNNING"
        }
      },
      "description": "State of an in-flight or failed AI instructions generation for one network"
    },
    "SocialMediaSystemPromptResponse": {
      "type": "object",
      "properties": {
        "blogId": {
          "type": "integer",
          "description": "Brand the prompts belong to",
          "format": "int32"
        },
        "prompts": {
          "type": "object",
          "additionalProperties": {
            "type": "string",
            "description": "Prompt text by prompt type, falling back to the default prompt"
          },
          "description": "Prompt text by prompt type, falling back to the default prompt"
        },
        "customizedPrompts": {
          "type": "array",
          "description": "Prompt types the brand customized instead of using the default",
          "items": {
            "type": "string",
            "description": "Prompt types the brand customized instead of using the default"
          }
        },
        "aiGeneratedPrompts": {
          "type": "array",
          "description": "Customized prompt types written by AI; the rest were typed by a user",
          "items": {
            "type": "string",
            "description": "Customized prompt types written by AI; the rest were typed by a user"
          }
        },
        "generationStatuses": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/NetworkInstructionsGenerationStatusResponse"
          },
          "description": "Generation state by network: RUNNING or FAILED. Absent when idle"
        }
      },
      "description": "AI system prompts of a brand, one per prompt type"
    }
  }
}