{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/metricool/json-schema/metricool-job-info-request-schema.json",
  "title": "JobInfoRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/metricool-ai-natural-language-scheduling-api-service-api-openapi.yml#/components/schemas/JobInfoRequest",
  "required": [
    "userInstructions"
  ],
  "type": "object",
  "properties": {
    "userInstructions": {
      "minLength": 1,
      "type": "string"
    },
    "postData": {
      "$ref": "#/$defs/LibraryPostDto"
    }
  },
  "$defs": {
    "BlueskyConfigurationDto": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "postLanguages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "DateTimeInfo": {
      "required": [
        "dateTime"
      ],
      "type": "object",
      "properties": {
        "dateTime": {
          "type": "string",
          "description": "Local Date-time represented with a certain timezone "
        },
        "timezone": {
          "type": "string",
          "description": "Timezone applied to the datetime"
        }
      }
    },
    "FacebookConfigurationDto": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "boostBudget": {
          "type": "number"
        },
        "boostPayer": {
          "type": "string"
        },
        "boostBeneficiary": {
          "type": "string"
        },
        "location": {
          "$ref": "#/$defs/LibraryPostLocationDto"
        },
        "type": {
          "type": "string"
        },
        "reelTitle": {
          "type": "string"
        }
      }
    },
    "GbpConfigurationDto": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "type": {
          "type": "string"
        }
      }
    },
    "InstagramAudioConfigurationDto": {
      "required": [
        "audioId"
      ],
      "type": "object",
      "properties": {
        "audioId": {
          "minLength": 1,
          "type": "string",
          "description": "Unique identifier of the audio asset from the Instagram Audio API."
        },
        "audioType": {
          "type": "string",
          "description": "Audio type. Allowed values: 'music', 'original_sound'.",
          "enum": [
            "music",
            "original_sound",
            "music",
            "original_sound"
          ]
        },
        "title": {
          "type": "string",
          "description": "Title of the audio track."
        },
        "displayArtist": {
          "type": "string",
          "description": "Display artist name (populated for 'music' type)."
        },
        "igUsername": {
          "type": "string",
          "description": "Instagram username of the creator (populated for 'original_sound' type)."
        },
        "coverArtworkUrl": {
          "type": "string",
          "description": "URL of the cover artwork thumbnail."
        },
        "durationMs": {
          "type": "integer",
          "description": "Duration of the audio in milliseconds.",
          "format": "int64"
        },
        "audioVolume": {
          "maximum": 100,
          "minimum": 0,
          "type": "integer",
          "description": "Volume level for the audio asset, from 0 (muted) to 100 (full volume). Defaults to 100.",
          "format": "int32"
        },
        "videoVolume": {
          "maximum": 100,
          "minimum": 0,
          "type": "integer",
          "description": "Volume level for the video's original audio, from 0 (muted) to 100 (full volume). Defaults to 100.",
          "format": "int32"
        }
      }
    },
    "InstagramCollaboratorTag": {
      "type": "object",
      "properties": {
        "username": {
          "type": "string"
        },
        "deleted": {
          "type": "boolean"
        }
      }
    },
    "InstagramConfigurationDto": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "carouselTags": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/LibraryPostPeopleTagDto"
            }
          }
        },
        "carouselProductTags": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/LibraryPostProductTagDto"
            }
          }
        },
        "type": {
          "type": "string"
        },
        "showReelOnFeed": {
          "type": "boolean"
        },
        "isAiGenerated": {
          "type": "boolean",
          "description": "Whether the Instagram post is flagged as AI-generated content (sent as is_ai_generated on publish)."
        },
        "boostBudget": {
          "type": "number"
        },
        "boostPayer": {
          "type": "string"
        },
        "boostBeneficiary": {
          "type": "string"
        },
        "location": {
          "$ref": "#/$defs/LibraryPostLocationDto"
        },
        "reelAudioName": {
          "type": "string"
        },
        "collaborators": {
          "uniqueItems": true,
          "type": "array",
          "items": {
            "$ref": "#/$defs/InstagramCollaboratorTag"
          }
        },
        "shareTrialAutomatically": {
          "type": "boolean"
        },
        "audioConfiguration": {
          "$ref": "#/$defs/InstagramAudioConfigurationDto"
        }
      }
    },
    "LibraryPostAssigneeDto": {
      "type": "object",
      "properties": {
        "label": {
          "type": "string",
          "description": "Badge to show next to the user, relative to the requesting session: CLIENT (an agency end client, as seen by a Metricool session), STAFF (anyone who is not an agency end client, as seen by an agency end-client session), or absent for no badge.",
          "enum": [
            "CLIENT",
            "STAFF"
          ]
        },
        "userId": {
          "type": "integer",
          "description": "Regular user id of the assignee. Absent for an agency end client.",
          "format": "int64"
        },
        "agencyId": {
          "type": "integer",
          "description": "Agency id of the assignee. Only for an agency end client.",
          "format": "int32"
        },
        "agencyUserId": {
          "type": "integer",
          "description": "Agency user id of the assignee. Only for an agency end client.",
          "format": "int32"
        },
        "name": {
          "type": "string",
          "description": "Display name of the assignee, or null when it cannot be resolved."
        },
        "deleted": {
          "type": "boolean",
          "description": "True when the assignee account has been deleted (frontend shows 'deleted user')."
        },
        "hasBrandAccess": {
          "type": "boolean",
          "description": "False when the assignee no longer has access to this brand (frontend shows a warning)."
        },
        "profilePicture": {
          "type": "string",
          "description": "Absolute URL of the assignee's profile picture. Omitted when it has none; the UI then renders its initials. Filled for both assignee kinds (ES5MPTM3-7292)."
        }
      },
      "description": "Team member assigned to a library post."
    },
    "LibraryPostCommonConfigurationDto": {
      "required": [
        "content"
      ],
      "type": "object",
      "properties": {
        "content": {
          "type": "string"
        },
        "firstCommentText": {
          "type": "string"
        },
        "publishMode": {
          "type": "string"
        },
        "smartlinkData": {
          "$ref": "#/$defs/SmartlinkData"
        }
      }
    },
    "LibraryPostDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "creationDate": {
          "$ref": "#/$defs/DateTimeInfo"
        },
        "updatedDate": {
          "$ref": "#/$defs/DateTimeInfo"
        },
        "shortener": {
          "type": "boolean"
        },
        "draft": {
          "type": "boolean"
        },
        "commonData": {
          "$ref": "#/$defs/LibraryPostCommonConfigurationDto"
        },
        "media": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LibraryPostMediaDto"
          }
        },
        "saveExternalMediaFiles": {
          "type": "boolean"
        },
        "parentId": {
          "type": "integer",
          "format": "int64"
        },
        "twitterData": {
          "$ref": "#/$defs/TwitterConfigurationDto"
        },
        "facebookData": {
          "$ref": "#/$defs/FacebookConfigurationDto"
        },
        "instagramData": {
          "$ref": "#/$defs/InstagramConfigurationDto"
        },
        "threadsData": {
          "$ref": "#/$defs/ThreadsConfigurationDto"
        },
        "linkedinData": {
          "$ref": "#/$defs/LinkedinConfigurationDto"
        },
        "pinterestData": {
          "$ref": "#/$defs/PinterestConfigurationDto"
        },
        "tiktokData": {
          "$ref": "#/$defs/TikTokConfigurationDto"
        },
        "youtubeData": {
          "$ref": "#/$defs/YoutubeConfigurationDto"
        },
        "gbpData": {
          "$ref": "#/$defs/GbpConfigurationDto"
        },
        "blueskyData": {
          "$ref": "#/$defs/BlueskyConfigurationDto"
        },
        "descendants": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LibraryPostDto"
          }
        },
        "notes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LibraryPostNoteDto"
          }
        },
        "hasNotReadNotes": {
          "type": "boolean"
        },
        "tags": {
          "type": "string"
        },
        "performanceDashboardIds": {
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int64"
          }
        },
        "assignee": {
          "$ref": "#/$defs/LibraryPostAssigneeDto"
        },
        "state": {
          "$ref": "#/$defs/LibraryPostStateDto"
        }
      }
    },
    "LibraryPostLocationCoordinates": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "street": {
          "type": "string"
        },
        "zip": {
          "type": "string"
        },
        "latitude": {
          "type": "number",
          "format": "double"
        },
        "longitude": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "LibraryPostLocationDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "link": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "locationCoordinates": {
          "$ref": "#/$defs/LibraryPostLocationCoordinates"
        }
      }
    },
    "LibraryPostMediaDto": {
      "required": [
        "position"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "position": {
          "type": "integer",
          "format": "int32"
        },
        "url": {
          "type": "string"
        },
        "altText": {
          "type": "string"
        },
        "videoCoverMilliseconds": {
          "type": "integer",
          "format": "int32"
        },
        "videoThumbnailUrl": {
          "type": "string"
        }
      }
    },
    "LibraryPostNoteDto": {
      "required": [
        "content",
        "created",
        "id",
        "libraryPostId",
        "userName"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "libraryPostId": {
          "type": "integer",
          "format": "int64"
        },
        "userId": {
          "type": "integer",
          "format": "int32"
        },
        "agencyId": {
          "type": "integer",
          "format": "int32"
        },
        "agencyUserId": {
          "type": "integer",
          "format": "int32"
        },
        "userName": {
          "minLength": 1,
          "type": "string"
        },
        "created": {
          "$ref": "#/$defs/DateTimeInfo"
        },
        "content": {
          "minLength": 1,
          "type": "string"
        },
        "updatedDate": {
          "$ref": "#/$defs/DateTimeInfo"
        },
        "updated": {
          "type": "boolean"
        },
        "deleted": {
          "type": "boolean"
        },
        "profilePicture": {
          "type": "string",
          "description": "Public URL of the author's 400x400 profile picture. Absent when they have none, in which case the frontend renders its initials fallback. Filled for agency-authored notes too."
        },
        "mentions": {
          "type": "array",
          "description": "Users mentioned in the content of the note, resolved when the note is read. Empty when the note mentions nobody.",
          "items": {
            "$ref": "#/$defs/NoteMentionDto"
          }
        },
        "mentionId": {
          "type": "string",
          "description": "Identity of the note author, and the field to compare against your own to tell whether a note is yours. `12345` for a regular user, `a:<agencyId>:<agencyUserId>` for an agency end client. Prefer it over the raw id fields: an agency author has no `userId` at all, so comparing that one answers \"not mine\" on their own note. Same shape as the `mentionId` of the mention picker, so the author of a note and the entry that mentions them carry the same string. Absent only for a note whose author could not be resolved."
        }
      }
    },
    "LibraryPostPeopleTagDto": {
      "type": "object",
      "properties": {
        "username": {
          "type": "string"
        },
        "x": {
          "type": "number",
          "format": "double"
        },
        "y": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "LibraryPostProductTagDto": {
      "type": "object",
      "properties": {
        "productName": {
          "type": "string"
        },
        "productId": {
          "type": "string"
        },
        "x": {
          "type": "number",
          "format": "double"
        },
        "y": {
          "type": "number",
          "format": "double"
        },
        "catalogId": {
          "type": "string"
        },
        "position": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "LibraryPostStateDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "State id.",
          "format": "int64"
        },
        "name": {
          "type": "string",
          "description": "Display name of the state."
        },
        "color": {
          "type": "string",
          "description": "Color of the state."
        },
        "position": {
          "type": "integer",
          "description": "Ordering position of the state within the brand's workflow (ascending).",
          "format": "int32"
        }
      },
      "description": "A workflow state of a library post."
    },
    "LinkedinConfigurationDto": {
      "required": [
        "previewIncluded",
        "publishImagesAsPDF"
      ],
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "documentTitle": {
          "type": "string"
        },
        "publishImagesAsPDF": {
          "type": "boolean"
        },
        "previewIncluded": {
          "type": "boolean"
        },
        "type": {
          "type": "string"
        },
        "poll": {
          "$ref": "#/$defs/LinkedinPollDto"
        }
      }
    },
    "LinkedinOptionDto": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        }
      }
    },
    "LinkedinPollDto": {
      "type": "object",
      "properties": {
        "question": {
          "type": "string"
        },
        "options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LinkedinOptionDto"
          }
        },
        "settings": {
          "$ref": "#/$defs/LinkedinSettingsDto"
        }
      }
    },
    "LinkedinSettingsDto": {
      "type": "object",
      "properties": {
        "duration": {
          "type": "string"
        }
      }
    },
    "NoteMentionDto": {
      "type": "object",
      "properties": {
        "userId": {
          "type": "integer",
          "description": "Regular user id of the mentioned user. Absent for an agency end client.",
          "format": "int32"
        },
        "agencyId": {
          "type": "integer",
          "description": "Agency id of the mentioned user. Only for an agency end client.",
          "format": "int32"
        },
        "agencyUserId": {
          "type": "integer",
          "description": "Agency user id of the mentioned user. Only for an agency end client.",
          "format": "int32"
        },
        "name": {
          "type": "string",
          "description": "Current display name of the mentioned user. Absent when the account was deleted, in which case the frontend renders its own localized deleted-user label."
        },
        "deleted": {
          "type": "boolean",
          "description": "True when the mentioned account no longer exists. A user that merely lost access to the brand is not deleted: their mention keeps rendering as it always did."
        }
      },
      "description": "A user mentioned in the content of a note, resolved when the note is read."
    },
    "PinterestConfigurationDto": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "boardId": {
          "type": "string"
        },
        "pinTitle": {
          "type": "string"
        },
        "pinLink": {
          "type": "string"
        },
        "pinNewFormat": {
          "type": "boolean"
        }
      }
    },
    "ScheduledPostTwitterPoll": {
      "type": "object",
      "properties": {
        "options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ScheduledPostTwitterPollOption"
          }
        },
        "settings": {
          "$ref": "#/$defs/ScheduledPostTwitterPollSettings"
        }
      }
    },
    "ScheduledPostTwitterPollOption": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        }
      }
    },
    "ScheduledPostTwitterPollSettings": {
      "type": "object",
      "properties": {
        "durationMinutes": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "SmartlinkData": {
      "type": "object",
      "properties": {
        "targetUrl": {
          "type": "string"
        },
        "ids": {
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        }
      }
    },
    "ThreadsConfigurationDto": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "A boolean that represents if the Threads configuration is enabled for this library post"
        },
        "allowedCountryCodes": {
          "uniqueItems": true,
          "type": "array",
          "description": "A string list of valid ISO 3166-1 alpha-2 country codes that represents the countries where this media should be shown. ",
          "items": {
            "type": "string",
            "description": "A string list of valid ISO 3166-1 alpha-2 country codes that represents the countries where this media should be shown. "
          }
        },
        "replyControl": {
          "type": "string",
          "description": "A string that represents who can reply to a Threads post, been EVERYONE by default. (EVERYONE, ACCOUNTS_YOU_FOLLOW,MENTIONED_ONLY,PARENT_POST_AUTHOR_ONLY,FOLLOWERS_ONLY)"
        },
        "type": {
          "type": "string",
          "description": "Post type (POST or GHOST)"
        },
        "shareAsInstagramStory": {
          "type": "boolean",
          "description": "A boolean that represents if the Threads post must be cross-shared as an Instagram Story. The Story is published on the Instagram account linked to the Threads account, which may not match the Instagram account connected to this brand."
        },
        "instagramStoryTheme": {
          "type": "string",
          "description": "Theme used when the Threads post is cross-shared as an Instagram Story (LIGHT or DARK). Only allowed when shareAsInstagramStory is enabled; must be absent otherwise."
        },
        "isSpoiler": {
          "type": "boolean",
          "description": "A boolean that represents if isSpoiler is activated or not"
        }
      }
    },
    "TikTokConfigurationDto": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "disableComment": {
          "type": "boolean"
        },
        "disableDuet": {
          "type": "boolean"
        },
        "disableStitch": {
          "type": "boolean"
        },
        "privacyOption": {
          "type": "string"
        },
        "commercialContentThirdParty": {
          "type": "boolean"
        },
        "commercialContentOwnBrand": {
          "type": "boolean"
        },
        "title": {
          "type": "string"
        },
        "autoAddMusic": {
          "type": "boolean"
        },
        "photoCoverIndex": {
          "type": "integer",
          "format": "int32"
        },
        "music": {
          "$ref": "#/$defs/TikTokTrackDto"
        },
        "isAigc": {
          "type": "boolean"
        }
      }
    },
    "TikTokTrackDto": {
      "type": "object",
      "properties": {
        "musicId": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "author": {
          "type": "string"
        },
        "previewUrl": {
          "type": "string"
        },
        "thumbnailUrl": {
          "type": "string"
        },
        "soundVolume": {
          "type": "integer",
          "format": "int32"
        },
        "originalVolume": {
          "type": "integer",
          "format": "int32"
        },
        "startMillis": {
          "type": "integer",
          "format": "int64"
        },
        "endMillis": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "TwitterConfigurationDto": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "tags": {
          "uniqueItems": true,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "replySettings": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "poll": {
          "$ref": "#/$defs/ScheduledPostTwitterPoll"
        }
      }
    },
    "YoutubeConfigurationDto": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "title": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "privacy": {
          "type": "string"
        },
        "tags": {
          "uniqueItems": true,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "category": {
          "type": "string"
        },
        "madeForKids": {
          "type": "boolean"
        },
        "playlistId": {
          "type": "string"
        },
        "isAiGeneratedContent": {
          "type": "boolean"
        },
        "notifySubscribers": {
          "type": "boolean"
        }
      }
    }
  }
}