---
title: "tools.job-request@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/tools.job-request"
updated: null
---

# tools.job-request@1 · OpenVibe.Services

HTML: [tools.job-request@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/tools.job-request)

# ToolsJobRequest `tools.job-request@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: tools
- Visibility: public
- Status: active
- Compatibility: backward
- Decision: [ADR-027](/docs/adr/ADR-027)
- Schema: [`https://openvibe.network/contracts/tools/job-request.v1.json`](/docs/contracts/tools.job-request.json)

Body of POST /api/v1/jobs on the Tools satellites that run jobs (img, audio, docs; capability tools.job.create; OpenVibe.Tools apps/\_shared/jobs/http.js). JSON, or multipart/form-data with the same fields as text parts (input as JSON text) and the input files as file or files parts. The Idempotency-Key header wins over idempotency\_key: the same (owner, key) and request returns the same job (200 + Idempotent-Replayed: true), a different request under it is 409 tools.job.idempotency\_conflict. Types: img.process (input { tool: convert|compress|resize|crop, … }, one image), audio.process ({ tool, … } as /api/process takes them, one audio or video file), docs.process ({ tool, … }, one PDF, or several files for merge and img2pdf). A format host fills in its format (webp.openvibe.tools converts to WebP). Answers tools.job@1 (202 + Location). Refusals are problem+json: 400 tools.job.invalid (input not a JSON object or over 16 KB, wrong file count, the type's own validation) or tools.job.unknown\_type, 401 token.\* or tools.job.no\_owner, 403 capability.denied, 413 tools.job.too\_large, 429 tools.job.too\_many\_active (unfinished jobs per owner), tools.quota.exceeded (Retry-After; the owner's allowance is spent) or a rate limit, 503 tools.job.unavailable, 503 tools.unavailable (a program or upstream the job type needs is missing), 503 tools.busy (Retry-After; every slot for this kind of work is taken). A tool that refuses its input after the job was accepted fails the job with its own code (413 tools.pdf.too\_many\_pages, 422 tools.pdf.wrong\_password…; tools.job@1 error).

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `type` | string | yes | Job type: img.process, audio.process, docs.process. | - `pattern ^[a-z][a-z0-9]*\.[a-z0-9_.]+$`<br>- `maxLength 80` |
| `input` | object |  | The job type's input; { tool: <operation>, …options }. Default {}; at most 16 KB as JSON. |  |
| `idempotency_key` | string |  | 8-200 printable ASCII characters. The Idempotency-Key header is used when both are present. | - `pattern ^[!-~]{8,200}$` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: docs-merge-idempotent

~~~~
{
  "type": "docs.process",
  "input": {
    "tool": "merge"
  },
  "idempotency_key": "merge-2026-09-23-001"
}
~~~~

Valid: img-convert

~~~~
{
  "type": "img.process",
  "input": {
    "tool": "convert",
    "format": "webp",
    "quality": 80
  }
}
~~~~

Rejected: input-array

~~~~
{
  "type": "img.process",
  "input": []
}
~~~~

Rejected: no-type

~~~~
{
  "input": {
    "tool": "convert"
  }
}
~~~~

Rejected: undotted-type

~~~~
{
  "type": "convert",
  "input": {}
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('tools.job-request@1', value);   // { valid, errors: [{ path, message }] }
~~~~
