{
  "openapi": "3.0.0",
  "paths": {
    "/jobs/sync": {
      "post": {
        "operationId": "ApiV2JobsController_createSync",
        "summary": "Anonymize a small image synchronously",
        "description": "One image of at most 20 MB. Waits up to 30 seconds and returns the finished job in data. Video, ZIP, and larger images must use POST /jobs. If this returns 502, the job was accepted: poll GET /jobs/{id}.",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "One image, at most 20 MB. Video and ZIP are rejected. The part name must be file."
                  },
                  "faces": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ],
                    "default": "true",
                    "description": "Text boolean. Default true. Blur faces."
                  },
                  "plates": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ],
                    "default": "true",
                    "description": "Text boolean. Default true. Blur license plates."
                  },
                  "style": {
                    "type": "string",
                    "description": "JSON object serialized as text. {\"type\":\"blur\",\"intensity\":1} (intensity 1-10), {\"type\":\"pixelate\",\"pixels\":7} (pixels 2-10), or {\"type\":\"opaque\",\"color\":\"#000000\"}.",
                    "example": "{\"type\":\"blur\",\"intensity\":1}"
                  },
                  "regionOfInterest": {
                    "type": "string",
                    "description": "JSON object {\"top\",\"left\",\"right\",\"bottom\"} with each value from 0 to 1, or omit the field. Sent as text.",
                    "example": "{\"top\":0,\"left\":0,\"right\":1,\"bottom\":1}"
                  },
                  "keepAudio": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ],
                    "default": "false",
                    "description": "Text boolean. Default false. Applies to video."
                  },
                  "generateJsonDetections": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ],
                    "default": "false",
                    "description": "Text boolean. Default false. When true, GET /jobs/{id}/detections is available after success."
                  },
                  "metadata": {
                    "type": "string",
                    "description": "Any JSON value, serialized as text. Echoed back on the job as parsed JSON.",
                    "example": "{\"orderId\":\"42\"}"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Finished job. Read it from data. status is succeeded or failed.",
            "example": {
              "data": {
                "id": "job_01J7X8Q1ZK4S2VBTQABCDE",
                "type": "image",
                "status": "succeeded",
                "createdAt": "2026-09-25T08:14:00.000Z",
                "updatedAt": "2026-09-25T08:14:12.000Z",
                "input": {
                  "filename": "photo.jpg",
                  "sizeBytes": 2431002,
                  "contentType": "image/jpeg"
                },
                "options": {
                  "faces": true,
                  "plates": true,
                  "style": {
                    "type": "blur",
                    "intensity": 1
                  },
                  "regionOfInterest": null,
                  "keepAudio": false,
                  "generateJsonDetections": false
                },
                "result": {
                  "retainedUntil": "2026-10-02T08:14:12.000Z"
                },
                "error": null,
                "billing": {
                  "method": "credits",
                  "creditsCharged": 1
                },
                "metadata": {
                  "orderId": "42"
                }
              },
              "timestamp": "2026-09-25T08:14:12.000Z",
              "path": "/v2/jobs/job_01J7X8Q1ZK4S2VBTQABCDE",
              "requestId": "8f3c1c2e-4b1a-4e2d-9c0a-1b2c3d4e5f60"
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Jobs allowed per minute for this API key.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Jobs still allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix time when the current window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2JobEnvelopeDto"
                },
                "example": {
                  "data": {
                    "id": "job_01J7X8Q1ZK4S2VBTQABCDE",
                    "type": "image",
                    "status": "succeeded",
                    "createdAt": "2026-09-25T08:14:00.000Z",
                    "updatedAt": "2026-09-25T08:14:12.000Z",
                    "input": {
                      "filename": "photo.jpg",
                      "sizeBytes": 2431002,
                      "contentType": "image/jpeg"
                    },
                    "options": {
                      "faces": true,
                      "plates": true,
                      "style": {
                        "type": "blur",
                        "intensity": 1
                      },
                      "regionOfInterest": null,
                      "keepAudio": false,
                      "generateJsonDetections": false
                    },
                    "result": {
                      "retainedUntil": "2026-10-02T08:14:12.000Z"
                    },
                    "error": null,
                    "billing": {
                      "method": "credits",
                      "creditsCharged": 1
                    },
                    "metadata": {
                      "orderId": "42"
                    }
                  },
                  "timestamp": "2026-09-25T08:14:12.000Z",
                  "path": "/v2/jobs/job_01J7X8Q1ZK4S2VBTQABCDE",
                  "requestId": "8f3c1c2e-4b1a-4e2d-9c0a-1b2c3d4e5f60"
                }
              }
            }
          },
          "400": {
            "description": "Missing file, invalid style, or neither faces nor plates.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 400,
                  "code": "NO_FILE",
                  "message": "Send the source file in the multipart field \"file\".",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs/sync",
                  "method": "POST"
                }
              }
            }
          },
          "401": {
            "description": "Missing or unknown API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 401,
                  "code": "AUTH_ERROR",
                  "message": "Authentication required",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or the payment method is missing or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 402,
                  "code": "INSUFFICIENT_CREDITS",
                  "message": "This job requires 2 credits but your balance is 0.",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs/sync",
                  "method": "POST",
                  "details": {
                    "creditsRequired": 2,
                    "creditsAvailable": 0
                  }
                }
              }
            }
          },
          "403": {
            "description": "Trial limit reached, or the anonymization service is not enabled.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 403,
                  "code": "TRIAL_LIMIT_EXCEEDED",
                  "message": "Trial consumption limit reached.",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs/sync",
                  "method": "POST"
                }
              }
            }
          },
          "413": {
            "description": "Image larger than 20 MB. Use POST /jobs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 413,
                  "code": "FILE_TOO_LARGE",
                  "message": "This image exceeds the 20 MB limit of POST /v2/jobs/sync. Use POST /v2/jobs for video, ZIP archives, and images larger than 20 MB.",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs/sync",
                  "method": "POST",
                  "details": {
                    "maxSizeBytes": 20971520
                  }
                }
              }
            }
          },
          "415": {
            "description": "Not an image, or a media type this account does not accept. details.supportedFormats lists the accepted types.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 415,
                  "code": "UNSUPPORTED_FILE_FORMAT",
                  "message": "POST /v2/jobs/sync accepts images only. Use POST /v2/jobs for video, ZIP archives, and images larger than 20 MB.",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs/sync",
                  "method": "POST"
                }
              }
            }
          },
          "429": {
            "description": "Too many jobs in the current minute. Wait Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 429,
                  "code": "RATE_LIMITED",
                  "message": "Rate limit exceeded. Retry after 12 seconds.",
                  "retryable": true,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          },
          "502": {
            "description": "The image was accepted but did not finish within 30 seconds. Poll GET /jobs/{id} using details.jobId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 502,
                  "code": "EXTERNAL_SERVICE_ERROR",
                  "message": "The image was accepted but did not finish in time. Poll GET /v2/jobs/{id}.",
                  "retryable": true,
                  "timestamp": "2026-09-25T08:14:30.000Z",
                  "path": "/v2/jobs/sync",
                  "method": "POST",
                  "details": {
                    "jobId": "job_01J7X8Q1ZK4S2VBTQABCDE"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "BlurIt API v2 - Jobs"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/jobs": {
      "post": {
        "operationId": "ApiV2JobsController_create",
        "summary": "Create an anonymization job",
        "description": "Returns 202 with the queued job in data. Use data.id to poll GET /jobs/{id}: wait retryAfter seconds (and the Retry-After header) while status is queued or processing. Stop when status is succeeded or failed. Download only after succeeded via GET /jobs/{id}/result — responses never embed URLs or paths.",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "Image, video, or ZIP. The part name must be file."
                  },
                  "faces": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ],
                    "default": "true",
                    "description": "Text boolean. Default true. Blur faces."
                  },
                  "plates": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ],
                    "default": "true",
                    "description": "Text boolean. Default true. Blur license plates."
                  },
                  "style": {
                    "type": "string",
                    "description": "JSON object serialized as text. {\"type\":\"blur\",\"intensity\":1} (intensity 1-10), {\"type\":\"pixelate\",\"pixels\":7} (pixels 2-10), or {\"type\":\"opaque\",\"color\":\"#000000\"}.",
                    "example": "{\"type\":\"blur\",\"intensity\":1}"
                  },
                  "regionOfInterest": {
                    "type": "string",
                    "description": "JSON object {\"top\",\"left\",\"right\",\"bottom\"} with each value from 0 to 1, or omit the field. Sent as text.",
                    "example": "{\"top\":0,\"left\":0,\"right\":1,\"bottom\":1}"
                  },
                  "keepAudio": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ],
                    "default": "false",
                    "description": "Text boolean. Default false. Applies to video."
                  },
                  "generateJsonDetections": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ],
                    "default": "false",
                    "description": "Text boolean. Default false. When true, GET /jobs/{id}/detections is available after success."
                  },
                  "metadata": {
                    "type": "string",
                    "description": "Any JSON value, serialized as text. Echoed back on the job as parsed JSON.",
                    "example": "{\"orderId\":\"42\"}"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Queued job in data. Use data.id to poll GET /jobs/{id}. Retry-After repeats retryAfter.",
            "example": {
              "data": {
                "id": "job_01J7X8Q1ZK4S2VBTQABCDE",
                "type": "image",
                "status": "queued",
                "createdAt": "2026-09-25T08:14:00.000Z",
                "updatedAt": "2026-09-25T08:14:00.000Z",
                "retryAfter": 5,
                "input": {
                  "filename": "photo.jpg",
                  "sizeBytes": 2431002,
                  "contentType": "image/jpeg"
                },
                "options": {
                  "faces": true,
                  "plates": true,
                  "style": {
                    "type": "blur",
                    "intensity": 1
                  },
                  "regionOfInterest": null,
                  "keepAudio": false,
                  "generateJsonDetections": false
                },
                "result": null,
                "error": null,
                "billing": {
                  "method": "credits",
                  "creditsCharged": 1
                },
                "metadata": {
                  "orderId": "42"
                }
              },
              "timestamp": "2026-09-25T08:14:00.000Z",
              "path": "/v2/jobs",
              "requestId": "8f3c1c2e-4b1a-4e2d-9c0a-1b2c3d4e5f60"
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Jobs allowed per minute for this API key.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Jobs still allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix time when the current window resets.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before the first poll. Same value as data.retryAfter.",
                "schema": {
                  "type": "integer",
                  "example": 5
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2JobEnvelopeDto"
                },
                "example": {
                  "data": {
                    "id": "job_01J7X8Q1ZK4S2VBTQABCDE",
                    "type": "image",
                    "status": "queued",
                    "createdAt": "2026-09-25T08:14:00.000Z",
                    "updatedAt": "2026-09-25T08:14:00.000Z",
                    "retryAfter": 5,
                    "input": {
                      "filename": "photo.jpg",
                      "sizeBytes": 2431002,
                      "contentType": "image/jpeg"
                    },
                    "options": {
                      "faces": true,
                      "plates": true,
                      "style": {
                        "type": "blur",
                        "intensity": 1
                      },
                      "regionOfInterest": null,
                      "keepAudio": false,
                      "generateJsonDetections": false
                    },
                    "result": null,
                    "error": null,
                    "billing": {
                      "method": "credits",
                      "creditsCharged": 1
                    },
                    "metadata": {
                      "orderId": "42"
                    }
                  },
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "requestId": "8f3c1c2e-4b1a-4e2d-9c0a-1b2c3d4e5f60"
                }
              }
            }
          },
          "400": {
            "description": "Missing file, invalid JSON in style, regionOfInterest, or metadata, or neither faces nor plates.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 400,
                  "code": "VALIDATION_ERROR",
                  "message": "Validation failed",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST",
                  "details": [
                    {
                      "field": "style",
                      "message": "Invalid input",
                      "code": "invalid_union"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing or unknown API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 401,
                  "code": "AUTH_ERROR",
                  "message": "Authentication required",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or the payment method is missing or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 402,
                  "code": "INSUFFICIENT_CREDITS",
                  "message": "This job requires 2 credits but your balance is 0.",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          },
          "403": {
            "description": "Trial limit reached, or the anonymization service is not enabled.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 403,
                  "code": "SERVICE_NOT_SUBSCRIBED",
                  "message": "This account does not have the anonymization service enabled.",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          },
          "415": {
            "description": "File extension or media type is not supported. See GET /account supportedFormats.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 415,
                  "code": "UNSUPPORTED_FILE_FORMAT",
                  "message": "File extension or media type is not supported.",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          },
          "429": {
            "description": "Too many jobs in the current minute. Wait Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 429,
                  "code": "RATE_LIMITED",
                  "message": "Rate limit exceeded. Retry after 12 seconds.",
                  "retryable": true,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          }
        },
        "tags": [
          "BlurIt API v2 - Jobs"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "get": {
        "operationId": "ApiV2JobsController_list",
        "summary": "List jobs",
        "description": "All jobs for the account, including those created from the Manager or API v1. Soft-deleted jobs are omitted. Ordered by createdAt descending. Page starts at 1, pageSize defaults to 20 and cannot exceed 100.",
        "parameters": [
          {
            "name": "status",
            "required": false,
            "in": "query",
            "schema": {
              "enum": [
                "queued",
                "processing",
                "succeeded",
                "failed"
              ],
              "type": "string"
            }
          },
          {
            "name": "type",
            "required": false,
            "in": "query",
            "schema": {
              "enum": [
                "image",
                "video",
                "batch"
              ],
              "type": "string"
            }
          },
          {
            "name": "createdAfter",
            "required": false,
            "in": "query",
            "description": "ISO-8601 date-time. Inclusive lower bound on createdAt.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "createdBefore",
            "required": false,
            "in": "query",
            "description": "ISO-8601 date-time. Inclusive upper bound on createdAt.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "required": false,
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Page of jobs inside data.elements, with data.meta.",
            "example": {
              "data": {
                "elements": [
                  {
                    "id": "job_01J7X8Q1ZK4S2VBTQABCDE",
                    "type": "image",
                    "status": "queued",
                    "createdAt": "2026-09-25T08:14:00.000Z",
                    "updatedAt": "2026-09-25T08:14:00.000Z",
                    "retryAfter": 5,
                    "input": {
                      "filename": "photo.jpg",
                      "sizeBytes": 2431002,
                      "contentType": "image/jpeg"
                    },
                    "options": {
                      "faces": true,
                      "plates": true,
                      "style": {
                        "type": "blur",
                        "intensity": 1
                      },
                      "regionOfInterest": null,
                      "keepAudio": false,
                      "generateJsonDetections": false
                    },
                    "result": null,
                    "error": null,
                    "billing": {
                      "method": "credits",
                      "creditsCharged": 1
                    },
                    "metadata": {
                      "orderId": "42"
                    }
                  }
                ],
                "meta": {
                  "page": 1,
                  "pageSize": 20,
                  "total": 1,
                  "totalPages": 1
                }
              },
              "timestamp": "2026-09-25T08:14:00.000Z",
              "path": "/v2/jobs?page=1&pageSize=20"
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Jobs allowed per minute for this API key.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Jobs still allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix time when the current window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2JobListEnvelopeDto"
                },
                "example": {
                  "data": {
                    "elements": [
                      {
                        "id": "job_01J7X8Q1ZK4S2VBTQABCDE",
                        "type": "image",
                        "status": "queued",
                        "createdAt": "2026-09-25T08:14:00.000Z",
                        "updatedAt": "2026-09-25T08:14:00.000Z",
                        "retryAfter": 5,
                        "input": {
                          "filename": "photo.jpg",
                          "sizeBytes": 2431002,
                          "contentType": "image/jpeg"
                        },
                        "options": {
                          "faces": true,
                          "plates": true,
                          "style": {
                            "type": "blur",
                            "intensity": 1
                          },
                          "regionOfInterest": null,
                          "keepAudio": false,
                          "generateJsonDetections": false
                        },
                        "result": null,
                        "error": null,
                        "billing": {
                          "method": "credits",
                          "creditsCharged": 1
                        },
                        "metadata": {
                          "orderId": "42"
                        }
                      }
                    ],
                    "meta": {
                      "page": 1,
                      "pageSize": 20,
                      "total": 1,
                      "totalPages": 1
                    }
                  },
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs?page=1&pageSize=20"
                }
              }
            }
          },
          "401": {
            "description": "Missing or unknown API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 401,
                  "code": "AUTH_ERROR",
                  "message": "Authentication required",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          },
          "429": {
            "description": "Too many jobs in the current minute. Wait Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 429,
                  "code": "RATE_LIMITED",
                  "message": "Rate limit exceeded. Retry after 12 seconds.",
                  "retryable": true,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          }
        },
        "tags": [
          "BlurIt API v2 - Jobs"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/jobs/{id}/result": {
      "get": {
        "operationId": "ApiV2JobsController_downloadResult",
        "summary": "Download the anonymized file",
        "description": "Raw bytes of the anonymized image, video, or ZIP. Call this only after GET /jobs/{id} reports status succeeded. The body is not wrapped in data.",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Public job id (job_...)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Binary file. Content-Type is the stored media type. Content-Disposition carries the filename. Not wrapped in data.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Jobs allowed per minute for this API key.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Jobs still allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix time when the current window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Missing or unknown API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 401,
                  "code": "AUTH_ERROR",
                  "message": "Authentication required",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          },
          "404": {
            "description": "No job with this id for the authenticated account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 404,
                  "code": "JOB_NOT_FOUND",
                  "message": "Job not found.",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs/job_01J7X8Q1ZK4S2VBTQABCDE/result",
                  "method": "GET"
                }
              }
            }
          },
          "409": {
            "description": "The job is not succeeded yet. details.status is the current status. Wait and poll GET /jobs/{id}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 409,
                  "code": "JOB_NOT_READY",
                  "message": "The job is not finished yet.",
                  "retryable": true,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs/job_01J7X8Q1ZK4S2VBTQABCDE/result",
                  "method": "GET",
                  "details": {
                    "status": "processing"
                  }
                }
              }
            }
          },
          "410": {
            "description": "The anonymized file was deleted after the retention period.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 410,
                  "code": "FILE_PURGED",
                  "message": "The result file has been deleted.",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs/job_01J7X8Q1ZK4S2VBTQABCDE/result",
                  "method": "GET"
                }
              }
            }
          },
          "429": {
            "description": "Too many jobs in the current minute. Wait Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 429,
                  "code": "RATE_LIMITED",
                  "message": "Rate limit exceeded. Retry after 12 seconds.",
                  "retryable": true,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          }
        },
        "tags": [
          "BlurIt API v2 - Jobs"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/jobs/{id}/detections": {
      "get": {
        "operationId": "ApiV2JobsController_downloadDetections",
        "summary": "Download the detections JSON",
        "description": "Raw JSON file of detections. Call this only after status is succeeded and only when the job was created with generateJsonDetections true. The body is not wrapped in data.",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Public job id (job_...)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON file of detections. Content-Disposition filename ends with -detections.json. Not wrapped in data.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Jobs allowed per minute for this API key.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Jobs still allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix time when the current window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Missing or unknown API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 401,
                  "code": "AUTH_ERROR",
                  "message": "Authentication required",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          },
          "404": {
            "description": "Detections were not requested (generateJsonDetections was false), or the job does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 404,
                  "code": "JOB_NOT_FOUND",
                  "message": "Detections were not requested for this job.",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs/job_01J7X8Q1ZK4S2VBTQABCDE/detections",
                  "method": "GET",
                  "details": {
                    "detectionsRequested": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "The job is not succeeded yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 409,
                  "code": "JOB_NOT_READY",
                  "message": "The job is not finished yet.",
                  "retryable": true,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs/job_01J7X8Q1ZK4S2VBTQABCDE/detections",
                  "method": "GET",
                  "details": {
                    "status": "processing"
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many jobs in the current minute. Wait Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 429,
                  "code": "RATE_LIMITED",
                  "message": "Rate limit exceeded. Retry after 12 seconds.",
                  "retryable": true,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          }
        },
        "tags": [
          "BlurIt API v2 - Jobs"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/jobs/{id}": {
      "get": {
        "operationId": "ApiV2JobsController_get",
        "summary": "Get a job",
        "description": "Poll this endpoint until data.status is succeeded or failed. While status is queued or processing, wait data.retryAfter seconds (also the Retry-After header) before calling again. When succeeded, download with GET /jobs/{id}/result (and /detections when options.generateJsonDetections was true). The JSON never embeds URLs or paths.",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Public job id (job_...)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current job. retryAfter and Retry-After are present only while the job is queued or processing. On success, result contains retainedUntil only — build download paths from data.id.",
            "example": {
              "data": {
                "id": "job_01J7X8Q1ZK4S2VBTQABCDE",
                "type": "image",
                "status": "succeeded",
                "createdAt": "2026-09-25T08:14:00.000Z",
                "updatedAt": "2026-09-25T08:14:12.000Z",
                "input": {
                  "filename": "photo.jpg",
                  "sizeBytes": 2431002,
                  "contentType": "image/jpeg"
                },
                "options": {
                  "faces": true,
                  "plates": true,
                  "style": {
                    "type": "blur",
                    "intensity": 1
                  },
                  "regionOfInterest": null,
                  "keepAudio": false,
                  "generateJsonDetections": false
                },
                "result": {
                  "retainedUntil": "2026-10-02T08:14:12.000Z"
                },
                "error": null,
                "billing": {
                  "method": "credits",
                  "creditsCharged": 1
                },
                "metadata": {
                  "orderId": "42"
                }
              },
              "timestamp": "2026-09-25T08:14:12.000Z",
              "path": "/v2/jobs/job_01J7X8Q1ZK4S2VBTQABCDE",
              "requestId": "8f3c1c2e-4b1a-4e2d-9c0a-1b2c3d4e5f60"
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Jobs allowed per minute for this API key.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Jobs still allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix time when the current window resets.",
                "schema": {
                  "type": "integer"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling again. Omitted once the job is succeeded or failed.",
                "schema": {
                  "type": "integer",
                  "example": 5
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2JobEnvelopeDto"
                },
                "example": {
                  "data": {
                    "id": "job_01J7X8Q1ZK4S2VBTQABCDE",
                    "type": "image",
                    "status": "succeeded",
                    "createdAt": "2026-09-25T08:14:00.000Z",
                    "updatedAt": "2026-09-25T08:14:12.000Z",
                    "input": {
                      "filename": "photo.jpg",
                      "sizeBytes": 2431002,
                      "contentType": "image/jpeg"
                    },
                    "options": {
                      "faces": true,
                      "plates": true,
                      "style": {
                        "type": "blur",
                        "intensity": 1
                      },
                      "regionOfInterest": null,
                      "keepAudio": false,
                      "generateJsonDetections": false
                    },
                    "result": {
                      "retainedUntil": "2026-10-02T08:14:12.000Z"
                    },
                    "error": null,
                    "billing": {
                      "method": "credits",
                      "creditsCharged": 1
                    },
                    "metadata": {
                      "orderId": "42"
                    }
                  },
                  "timestamp": "2026-09-25T08:14:12.000Z",
                  "path": "/v2/jobs/job_01J7X8Q1ZK4S2VBTQABCDE",
                  "requestId": "8f3c1c2e-4b1a-4e2d-9c0a-1b2c3d4e5f60"
                }
              }
            }
          },
          "401": {
            "description": "Missing or unknown API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 401,
                  "code": "AUTH_ERROR",
                  "message": "Authentication required",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          },
          "404": {
            "description": "No job with this id for the authenticated account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 404,
                  "code": "JOB_NOT_FOUND",
                  "message": "Job not found.",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs/job_01J7X8Q1ZK4S2VBTQABCDE",
                  "method": "GET"
                }
              }
            }
          },
          "429": {
            "description": "Too many jobs in the current minute. Wait Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 429,
                  "code": "RATE_LIMITED",
                  "message": "Rate limit exceeded. Retry after 12 seconds.",
                  "retryable": true,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          }
        },
        "tags": [
          "BlurIt API v2 - Jobs"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "ApiV2JobsController_delete",
        "summary": "Delete a finished job",
        "description": "Purges stored source, result, thumbnail, and detections files, then hides the job. status is not rewritten. A batch job deletes every file of the batch. Irreversible. Only a succeeded or failed job can be deleted. After this call, GET /jobs/{id}, the list, and the download endpoints return 404 JOB_NOT_FOUND.",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Public job id (job_...)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The job was deleted. Read data.id. Later reads of this id return 404.",
            "example": {
              "data": {
                "id": "job_01J7X8Q1ZK4S2VBTQABCDE",
                "deleted": true
              },
              "timestamp": "2026-09-25T08:20:00.000Z",
              "path": "/v2/jobs/job_01J7X8Q1ZK4S2VBTQABCDE",
              "requestId": "8f3c1c2e-4b1a-4e2d-9c0a-1b2c3d4e5f60"
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Jobs allowed per minute for this API key.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Jobs still allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix time when the current window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2JobDeleteEnvelopeDto"
                },
                "example": {
                  "data": {
                    "id": "job_01J7X8Q1ZK4S2VBTQABCDE",
                    "deleted": true
                  },
                  "timestamp": "2026-09-25T08:20:00.000Z",
                  "path": "/v2/jobs/job_01J7X8Q1ZK4S2VBTQABCDE",
                  "requestId": "8f3c1c2e-4b1a-4e2d-9c0a-1b2c3d4e5f60"
                }
              }
            }
          },
          "401": {
            "description": "Missing or unknown API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 401,
                  "code": "AUTH_ERROR",
                  "message": "Authentication required",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          },
          "404": {
            "description": "No job with this id for the authenticated account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 404,
                  "code": "JOB_NOT_FOUND",
                  "message": "Job not found.",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:20:00.000Z",
                  "path": "/v2/jobs/job_01J7X8Q1ZK4S2VBTQABCDE",
                  "method": "DELETE"
                }
              }
            }
          },
          "409": {
            "description": "The job is still queued or processing. details.status is the current status. Wait, then retry. retryable is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 409,
                  "code": "JOB_NOT_TERMINAL",
                  "message": "Only a finished job can be deleted. Wait until status is succeeded or failed, then retry.",
                  "retryable": true,
                  "timestamp": "2026-09-25T08:20:00.000Z",
                  "path": "/v2/jobs/job_01J7X8Q1ZK4S2VBTQABCDE",
                  "method": "DELETE",
                  "details": {
                    "status": "processing"
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many jobs in the current minute. Wait Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 429,
                  "code": "RATE_LIMITED",
                  "message": "Rate limit exceeded. Retry after 12 seconds.",
                  "retryable": true,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          }
        },
        "tags": [
          "BlurIt API v2 - Jobs"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/account": {
      "get": {
        "operationId": "ApiV2AccountController_get",
        "summary": "Read billing, trial quota, supported formats, and the current rate limit",
        "description": "Call this before creating jobs when you need the accepted media types (supportedFormats) or the jobs-per-minute limit. The resource is in data.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Account snapshot inside data.",
            "example": {
              "data": {
                "billingMethod": "credits",
                "credits": {
                  "balance": 47
                },
                "trial": null,
                "paymentMethod": {
                  "status": "valid",
                  "expiresAt": "2028-03-01"
                },
                "supportedFormats": [
                  "image/jpeg",
                  "image/png",
                  "video/mp4",
                  "application/zip"
                ],
                "rateLimit": {
                  "jobsPerMinute": 120
                }
              },
              "timestamp": "2026-09-25T08:14:00.000Z",
              "path": "/v2/account"
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Jobs allowed per minute for this API key.",
                "schema": {
                  "type": "integer",
                  "example": 120
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Jobs still allowed in the current window.",
                "schema": {
                  "type": "integer",
                  "example": 119
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix time when the current window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2AccountEnvelopeDto"
                },
                "example": {
                  "data": {
                    "billingMethod": "credits",
                    "credits": {
                      "balance": 47
                    },
                    "trial": null,
                    "paymentMethod": {
                      "status": "valid",
                      "expiresAt": "2028-03-01"
                    },
                    "supportedFormats": [
                      "image/jpeg",
                      "image/png",
                      "video/mp4",
                      "application/zip"
                    ],
                    "rateLimit": {
                      "jobsPerMinute": 120
                    }
                  },
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/account"
                }
              }
            }
          },
          "401": {
            "description": "Missing or unknown API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 401,
                  "code": "AUTH_ERROR",
                  "message": "Authentication required",
                  "retryable": false,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          },
          "429": {
            "description": "Too many jobs in the current minute. Wait Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiV2ErrorDto"
                },
                "example": {
                  "statusCode": 429,
                  "code": "RATE_LIMITED",
                  "message": "Rate limit exceeded. Retry after 12 seconds.",
                  "retryable": true,
                  "timestamp": "2026-09-25T08:14:00.000Z",
                  "path": "/v2/jobs",
                  "method": "POST"
                }
              }
            }
          }
        },
        "tags": [
          "BlurIt API v2 - Account"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    }
  },
  "info": {
    "title": "BlurIt API v2",
    "description": "Public anonymization API. Blur faces and license plates on an image, a video, or a ZIP of images.\n\n## Authentication\n\nThere is no login endpoint. Create an API key in the BlurIt app (it starts with blrt_) and send it on every call:\n\nAuthorization: Bearer blrt_...\n\n## Workflow\n\nPaths below are relative to the server URL of this document.\n\n1. Create a job.\n   - POST /jobs/sync for one image of at most 20 MB. The response is the finished job (200) when processing completes within 30 seconds.\n   - POST /jobs for a video, a ZIP, or any file that must not block the caller. The response is 202 and the job is queued.\n2. If status is queued or processing, wait the number of seconds in retryAfter (also sent as the Retry-After header), then GET /jobs/{id}. Repeat that poll until status is succeeded or failed. Do not download before that. retryAfter is absent once the job is terminal.\n3. When status is succeeded, download using the job id (responses never embed URLs or paths):\n   - GET /jobs/{id}/result for the anonymized image, video, or ZIP.\n   - GET /jobs/{id}/detections only if generateJsonDetections was true.\n   When status is failed, read error.code and error.message. There is no file to download.\n4. DELETE /jobs/{id} removes a finished job (succeeded or failed) and its stored files immediately. The job then disappears from list, get, and downloads. A job that is still queued or processing returns 409 JOB_NOT_TERMINAL (retryable).\n\nA sync call that accepts the image but does not finish within 30 seconds returns 502 EXTERNAL_SERVICE_ERROR. The job still exists: poll GET /jobs/{id} with the id from the error details.\n\nCall GET /account first if you need the accepted media types, the credit balance, or the jobs-per-minute limit.\n\n## Successful JSON\n\nJSON success bodies are wrapped. Read the resource in data. The path field echoes the route handled by this process (/v2/...). Callers use the paths relative to the server URL:\n\n{\n  \"data\": { \"id\": \"job_01J7X8Q1ZK4S2VBTQABCDE\", \"status\": \"queued\", \"retryAfter\": 5 },\n  \"timestamp\": \"2026-09-25T08:14:00.000Z\",\n  \"path\": \"/v2/jobs\",\n  \"requestId\": \"8f3c1c2e-4b1a-4e2d-9c0a-1b2c3d4e5f60\"\n}\n\nFile downloads are not wrapped. They are the raw bytes, with Content-Type and Content-Disposition.\n\n## Errors\n\nError bodies are not wrapped:\n\n{\n  \"statusCode\": 400,\n  \"code\": \"VALIDATION_ERROR\",\n  \"message\": \"Validation failed\",\n  \"retryable\": false,\n  \"timestamp\": \"2026-09-25T08:14:00.000Z\",\n  \"path\": \"/v2/jobs\",\n  \"method\": \"POST\",\n  \"details\": [{ \"field\": \"style\", \"message\": \"Invalid input\", \"code\": \"invalid_union\" }]\n}\n\nretryable true means the same request can be sent again later (429, 5xx, or 409 JOB_NOT_READY). retryable false means the request must change.\n\nEvery authenticated response also sends X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset (unix seconds). A 429 adds Retry-After.\n\n## Multipart fields\n\nPOST /jobs and POST /jobs/sync use multipart/form-data. Booleans are the text true or false. style, regionOfInterest, and metadata are JSON serialized as a single string field.\n\nfile = photo.jpg\nfaces = true\nplates = true\nstyle = {\"type\":\"blur\",\"intensity\":1}\nregionOfInterest = {\"top\":0,\"left\":0,\"right\":1,\"bottom\":1}\nkeepAudio = false\ngenerateJsonDetections = false\nmetadata = {\"orderId\":\"42\"}\n\nstyle is one of:\n- {\"type\":\"blur\",\"intensity\":1} with intensity an integer from 1 to 10 (default 1)\n- {\"type\":\"pixelate\",\"pixels\":7} with pixels an integer from 2 to 10 (default 7)\n- {\"type\":\"opaque\",\"color\":\"#000000\"} with color matching #RRGGBB (default #000000)\n\nregionOfInterest uses top, left, right, bottom, each a number from 0 to 1. Omit it to process the whole frame.\n\nAt least one of faces or plates must be true.\n",
    "version": "1.31.1",
    "contact": {

    }
  },
  "tags": [],
  "servers": [
    {
      "url": "https://api.blurit.io/v2"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "API key",
        "type": "http",
        "description": "Long-lived API key created in the BlurIt app. There is no token exchange. Send Authorization: Bearer blrt_..."
      }
    },
    "schemas": {
      "ApiV2JobInputDto": {
        "type": "object",
        "properties": {
          "filename": {
            "type": "string",
            "example": "street-photo.jpg"
          },
          "sizeBytes": {
            "type": "number",
            "example": 2431002
          },
          "contentType": {
            "type": "string",
            "example": "image/jpeg"
          }
        },
        "required": [
          "filename",
          "sizeBytes",
          "contentType"
        ]
      },
      "ApiV2JobStyleDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "blur",
              "pixelate",
              "opaque"
            ],
            "example": "blur"
          },
          "intensity": {
            "type": "number",
            "minimum": 1,
            "maximum": 10,
            "example": 1,
            "description": "Present when type is blur."
          },
          "pixels": {
            "type": "number",
            "minimum": 2,
            "maximum": 10,
            "example": 7,
            "description": "Present when type is pixelate."
          },
          "color": {
            "type": "string",
            "example": "#000000",
            "description": "Present when type is opaque. #RRGGBB."
          }
        },
        "required": [
          "type"
        ]
      },
      "ApiV2RegionDto": {
        "type": "object",
        "properties": {
          "top": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "Fraction of the frame height, from the top."
          },
          "left": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "Fraction of the frame width, from the left."
          },
          "right": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "Fraction of the frame width, from the left."
          },
          "bottom": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "Fraction of the frame height, from the top."
          }
        },
        "required": [
          "top",
          "left",
          "right",
          "bottom"
        ]
      },
      "ApiV2JobOptionsDto": {
        "type": "object",
        "properties": {
          "faces": {
            "type": "boolean"
          },
          "plates": {
            "type": "boolean"
          },
          "style": {
            "$ref": "#/components/schemas/ApiV2JobStyleDto"
          },
          "regionOfInterest": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiV2RegionDto"
              }
            ]
          },
          "keepAudio": {
            "type": "boolean"
          },
          "generateJsonDetections": {
            "type": "boolean",
            "description": "When true, GET /jobs/{id}/detections is available after success."
          }
        },
        "required": [
          "faces",
          "plates",
          "style",
          "keepAudio",
          "generateJsonDetections"
        ]
      },
      "ApiV2JobResultDto": {
        "type": "object",
        "properties": {
          "retainedUntil": {
            "type": "string",
            "format": "date-time",
            "description": "When the result (and detections, if any) will be purged. Present only when status is succeeded. Download via GET /jobs/{id}/result using this job's id — the JSON never embeds URLs or paths."
          }
        },
        "required": [
          "retainedUntil"
        ]
      },
      "ApiV2JobErrorDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "PROCESSING_FAILED"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "ApiV2JobBillingDto": {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "enum": [
              "credits",
              "usage",
              "trial"
            ]
          },
          "creditsCharged": {
            "type": "number"
          }
        },
        "required": [
          "method"
        ]
      },
      "ApiV2JobDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "job_01J7X8Q1ZK4S2VBTQABCDE"
          },
          "type": {
            "type": "string",
            "enum": [
              "image",
              "video",
              "batch"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "processing",
              "succeeded",
              "failed"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "retryAfter": {
            "type": "number",
            "description": "Seconds to wait before polling again. Absent once the job is terminal."
          },
          "input": {
            "$ref": "#/components/schemas/ApiV2JobInputDto"
          },
          "options": {
            "$ref": "#/components/schemas/ApiV2JobOptionsDto"
          },
          "result": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiV2JobResultDto"
              }
            ]
          },
          "error": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiV2JobErrorDto"
              }
            ]
          },
          "billing": {
            "$ref": "#/components/schemas/ApiV2JobBillingDto"
          },
          "metadata": {
            "nullable": true,
            "description": "Caller-supplied JSON echoed back verbatim. Any JSON value: object, array, string, number, boolean, or null.",
            "example": {
              "orderId": "42"
            },
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": true
              },
              {
                "type": "array",
                "items": {

                }
              },
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          }
        },
        "required": [
          "id",
          "type",
          "status",
          "createdAt",
          "updatedAt",
          "input",
          "options",
          "billing"
        ]
      },
      "ApiV2PaginationMetaDto": {
        "type": "object",
        "properties": {
          "page": {
            "type": "number"
          },
          "pageSize": {
            "type": "number"
          },
          "total": {
            "type": "number"
          },
          "totalPages": {
            "type": "number"
          }
        },
        "required": [
          "page",
          "pageSize",
          "total",
          "totalPages"
        ]
      },
      "ApiV2JobListDto": {
        "type": "object",
        "properties": {
          "elements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiV2JobDto"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ApiV2PaginationMetaDto"
          }
        },
        "required": [
          "elements",
          "meta"
        ]
      },
      "ApiV2JobDeleteDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "job_01J7X8Q1ZK4S2VBTQABCDE",
            "description": "Public job id that was deleted."
          },
          "deleted": {
            "type": "boolean",
            "example": true,
            "description": "Always true. The job is gone from list, get, and downloads."
          }
        },
        "required": [
          "id",
          "deleted"
        ]
      },
      "ApiV2JobEnvelopeDto": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "example": "2026-09-25T08:14:00.000Z"
          },
          "path": {
            "type": "string",
            "description": "Request path, including the query string when present.",
            "example": "/v2/jobs"
          },
          "requestId": {
            "type": "string",
            "description": "Present when the server assigned a request id.",
            "example": "8f3c1c2e-4b1a-4e2d-9c0a-1b2c3d4e5f60"
          },
          "data": {
            "$ref": "#/components/schemas/ApiV2JobDto"
          }
        },
        "required": [
          "timestamp",
          "path",
          "data"
        ]
      },
      "ApiV2JobListEnvelopeDto": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "example": "2026-09-25T08:14:00.000Z"
          },
          "path": {
            "type": "string",
            "description": "Request path, including the query string when present.",
            "example": "/v2/jobs"
          },
          "requestId": {
            "type": "string",
            "description": "Present when the server assigned a request id.",
            "example": "8f3c1c2e-4b1a-4e2d-9c0a-1b2c3d4e5f60"
          },
          "data": {
            "$ref": "#/components/schemas/ApiV2JobListDto"
          }
        },
        "required": [
          "timestamp",
          "path",
          "data"
        ]
      },
      "ApiV2JobDeleteEnvelopeDto": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "example": "2026-09-25T08:14:00.000Z"
          },
          "path": {
            "type": "string",
            "description": "Request path, including the query string when present.",
            "example": "/v2/jobs"
          },
          "requestId": {
            "type": "string",
            "description": "Present when the server assigned a request id.",
            "example": "8f3c1c2e-4b1a-4e2d-9c0a-1b2c3d4e5f60"
          },
          "data": {
            "$ref": "#/components/schemas/ApiV2JobDeleteDto"
          }
        },
        "required": [
          "timestamp",
          "path",
          "data"
        ]
      },
      "ApiV2ValidationIssueDto": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "example": "style"
          },
          "message": {
            "type": "string",
            "example": "Invalid input"
          },
          "code": {
            "type": "string",
            "example": "invalid_union"
          }
        },
        "required": [
          "field",
          "message",
          "code"
        ]
      },
      "ApiV2ErrorDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 400
          },
          "code": {
            "type": "string",
            "example": "VALIDATION_ERROR",
            "description": "Stable machine code. Common values: AUTH_ERROR, VALIDATION_ERROR, NO_FILE, NO_ANONYMIZATION_TARGET, UNSUPPORTED_FILE_FORMAT, FILE_TOO_LARGE, INSUFFICIENT_CREDITS, PAYMENT_METHOD_EXPIRED, PAYMENT_METHOD_MISSING, TRIAL_LIMIT_EXCEEDED, SERVICE_NOT_SUBSCRIBED, RATE_LIMITED, JOB_NOT_FOUND, JOB_NOT_READY, JOB_NOT_TERMINAL, JOB_ALREADY_DELETED, FILE_PURGED, EXTERNAL_SERVICE_ERROR."
          },
          "message": {
            "type": "string",
            "example": "Validation failed"
          },
          "retryable": {
            "type": "boolean",
            "example": false
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "example": "2026-09-25T08:14:00.000Z"
          },
          "path": {
            "type": "string",
            "example": "/v2/jobs"
          },
          "method": {
            "type": "string",
            "example": "POST"
          },
          "requestId": {
            "type": "string",
            "example": "8f3c1c2e-4b1a-4e2d-9c0a-1b2c3d4e5f60"
          },
          "details": {
            "description": "Either a list of validation issues, or an object whose keys depend on code. Object examples: { jobId } on the sync timeout, { status } on JOB_NOT_READY, { creditsRequired, creditsAvailable } on INSUFFICIENT_CREDITS, { maxSizeBytes } on FILE_TOO_LARGE, { supportedFormats } on UNSUPPORTED_FILE_FORMAT, { detectionsRequested } when detections were not requested, { limitBytes, usedBytes } on TRIAL_LIMIT_EXCEEDED. Absent when there is nothing to add.",
            "oneOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ApiV2ValidationIssueDto"
                }
              },
              {
                "type": "object",
                "additionalProperties": true
              }
            ]
          }
        },
        "required": [
          "statusCode",
          "code",
          "message",
          "retryable",
          "timestamp",
          "path",
          "method"
        ]
      },
      "ApiV2CreditsDto": {
        "type": "object",
        "properties": {
          "balance": {
            "type": "number",
            "example": 47
          }
        },
        "required": [
          "balance"
        ]
      },
      "ApiV2TrialDto": {
        "type": "object",
        "properties": {
          "limitBytes": {
            "type": "number"
          },
          "usedBytes": {
            "type": "number"
          },
          "remainingBytes": {
            "type": "number"
          }
        },
        "required": [
          "limitBytes",
          "usedBytes",
          "remainingBytes"
        ]
      },
      "ApiV2PaymentMethodDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "valid",
              "expiring_soon",
              "expired",
              "missing"
            ]
          },
          "expiresAt": {
            "type": "string",
            "format": "date",
            "example": "2028-03-01",
            "nullable": true,
            "description": "Card expiry date. Null when status is missing."
          }
        },
        "required": [
          "status"
        ]
      },
      "ApiV2RateLimitDto": {
        "type": "object",
        "properties": {
          "jobsPerMinute": {
            "type": "number",
            "example": 120
          }
        },
        "required": [
          "jobsPerMinute"
        ]
      },
      "ApiV2AccountDto": {
        "type": "object",
        "properties": {
          "billingMethod": {
            "type": "string",
            "enum": [
              "credits",
              "usage"
            ]
          },
          "credits": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiV2CreditsDto"
              }
            ]
          },
          "trial": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiV2TrialDto"
              }
            ]
          },
          "paymentMethod": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiV2PaymentMethodDto"
              }
            ]
          },
          "supportedFormats": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rateLimit": {
            "$ref": "#/components/schemas/ApiV2RateLimitDto"
          }
        },
        "required": [
          "billingMethod",
          "supportedFormats",
          "rateLimit"
        ]
      },
      "ApiV2AccountEnvelopeDto": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "example": "2026-09-25T08:14:00.000Z"
          },
          "path": {
            "type": "string",
            "description": "Request path, including the query string when present.",
            "example": "/v2/jobs"
          },
          "requestId": {
            "type": "string",
            "description": "Present when the server assigned a request id.",
            "example": "8f3c1c2e-4b1a-4e2d-9c0a-1b2c3d4e5f60"
          },
          "data": {
            "$ref": "#/components/schemas/ApiV2AccountDto"
          }
        },
        "required": [
          "timestamp",
          "path",
          "data"
        ]
      }
    }
  }
}