{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/moments-lab/json-schema/moments-lab-ingest-request-job-response-schema.json",
  "title": "IngestRequestJobResponse",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/moments-lab-openapi.yml#/components/schemas/IngestRequestJobResponse",
  "type": "object",
  "properties": {
    "analysis_request_id": {
      "type": "string",
      "description": "Id of the analysis request used to retrieve analysis status. Use job_request_id instead.",
      "deprecated": true
    },
    "job_request_id": {
      "type": "string",
      "description": "Id of the ingest request used to retrieve job."
    },
    "status": {
      "type": "string",
      "enum": [
        "UPLOAD_IN_PROGRESS",
        "UPLOAD_COMPLETED",
        "JOB_IN_PROGRESS",
        "JOB_DONE",
        "JOB_FAILED"
      ],
      "description": "Status of the analysis:<br/> <ul><li>UPLOAD_IN_PROGRESS: The job request is received and MXT API is retrieving media file the source specified</li><li>UPLOAD_COMPLETED: The media file has been successfully retrieved</li><li>JOB_IN_PROGRESS: The file has been retrieved and media is ingesting</li><li>JOB_DONE: The media has been ingested and all tasks are completed. You can now get the results thanks to the media_id or external-id</li><li>JOB_FAILED: Something went wrong during the process. Check the error message for details.</li></ul>"
    },
    "errorMessage": {
      "description": "Error message in case of failure",
      "type": "string"
    },
    "media_id": {
      "description": "Once the status will be in status JOB_DONE, the id of the media will be returned. This id may be used in media routes",
      "type": "string"
    },
    "external_id": {
      "description": "External id provided at request time",
      "type": "string"
    }
  },
  "required": [
    "analysis_request_id",
    "job_request_id",
    "status"
  ]
}