Skip to content
Language:DeutschEnglish Last updated: 2026-11-30

Lotte: API reference

Lotte offers a REST interface for clients such as Anton. This page explains the principles and lists every route below; the list is generated from the OpenAPI description, which is maintained with Lotte and tested there against its routes. The description itself can be downloaded: openapi.yaml (OpenAPI 3.1).

Principles

Every request names the tenant in its path, /t/<slug>/…. Lotte first selects that tenant's database and only then checks the key, sent as a bearer token in the Authorization header. A key is therefore valid for its own tenant only, and each carries a set of abilities (read, ingest, jobs, withdraw, metadata; see Clients and keys). Without a key, only /health and the signed URLs below /s/<slug>/… answer.

curl -H "Authorization: Bearer <key>" https://<lotte>/t/<slug>/whoami

Objects appear in the path with their UUID; in responses and in the change feed they are named by their OCFL ID urn:uuid:<uuid>. Errors answer with JSON, {"message": "…"}, for invalid input also with errors per field.

Status Meaning
202 a derivative or the text is not there yet and has now been queued; ask again after Retry-After seconds
401 no key, a revoked key, or a key of another tenant
403 the key lacks the ability of the route; for signed URLs: the signature is wrong or expired
404 no such tenant, or no such object, package or job of this tenant or client
409 the request does not fit the state of the package or the bytes received so far
410 the object is withdrawn; the answer names the reason
422 invalid input, or the Idempotency-Key header is missing

Repeating without duplicates

POST /packages and POST /jobs require the Idempotency-Key header, a key of the client's for this one request. If the same request comes again with the same key, for instance because the response was lost, Lotte answers 200 with the package or job from the first time and creates nothing new. check, commit and discard of a package and the withdrawal of an object can be repeated too: the second request changes nothing and answers with the state after the first.

Uploading in parts

A file of a package is sent with PUT /t/<slug>/packages/<package>/files/<n> as raw bytes; <n> is its position in the description, from 0. Large files go in parts, each with Content-Range; Lotte takes only the part that starts where the last one ended and answers with Upload-Offset. After an interruption, HEAD on the same address tells how many bytes have arrived.

curl -X PUT -H "Authorization: Bearer <key>" \
     -H "Content-Range: bytes 0-1048575/52428800" \
     --data-binary @part-1 https://<lotte>/t/<slug>/packages/<package>/files/0
curl -I -H "Authorization: Bearer <key>" https://<lotte>/t/<slug>/packages/<package>/files/0

Reading the change feed

A client keeps the last sequence number it has processed and asks with it: GET /t/<slug>/changes?since=<sequence>&limit=<1…1000>. The answer holds the entries after it, in order, and next, the number for the next request; when there is nothing new, next stays the same. Because entries become visible in the order of their number and are never changed, none is lost. The kinds are listed in the overview and below under ChangeKind.

Signed URLs

A browser has no key. For it, GET /t/<slug>/objects/<object>/derivatives/<conversion>/url returns a signed URL below /s/<slug>/…, valid for a few minutes (default 15). It serves only a finished derivative, queues nothing, and answers 410 for a withdrawn object.

All routes

Generated automatically

This section is generated from Lotte's openapi.yaml (scripts/gen-api-reference.py); the descriptions are in the language of the code (English).

Version 0.1.0-draft · Download the OpenAPI description

Client

What a key belongs to and may do.

GET /t/{tenant}/whoami

The customer, client and abilities of the key. A client's first check; needs a valid key but no ability.

Access: key, no particular ability

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.

Responses

Status Description Body
200 The key's customer, client and abilities. application/json Whoami
401 No key, a revoked key, or a key of another customer. application/json Error
404 No such customer, or no such object, package or job of this customer (or client). application/json Error

Objects

OCFL objects, one per medium; their files, metadata copy and withdrawal.

GET /t/{tenant}/objects/{object}

An object with its versions, files and events. The OCFL inventory as the client needs it: every version with its files (logical path, sha512 digest, size), the head, the client's reference and the preservation events of the head (metadata/events.json).

Access: key with ability read

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
object path yes string (uuid) The object's UUID (the OCFL ID without urn:uuid:).

Responses

Status Description Body
200 The object. application/json ArchiveObject
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such customer, or no such object, package or job of this customer (or client). application/json Error
410 The object is withdrawn; the answer names the reason. application/json WithdrawnError

DELETE /t/{tenant}/objects/{object}

Withdraw an object. Writes a new version whose metadata/object.json says withdrawn (reason, time, client) and adds a withdrawal event; removes the derivative and text files and their rows; adds object.withdrawn to the feed. The content stays in OCFL until an operator purges it (lotte:purge; the rule when that is allowed is not decided yet). Afterwards the object, its files, derivatives, text and signed URLs answer 410; jobs skip it. Withdrawing it again answers 200 with withdrawn: false and adds no version.

Access: key with ability withdraw

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
object path yes string (uuid) The object's UUID (the OCFL ID without urn:uuid:).

Request (application/json): object

Field Type Required Description
reason string yes Why the object is withdrawn; kept in the object and in the feed.

Responses

Status Description Body
200 The object is withdrawn (by this request or before). application/json WithdrawalResult
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such customer, or no such object, package or job of this customer (or client). application/json Error
422 The request is invalid. application/json ValidationError

GET /t/{tenant}/objects/{object}/files/{path}

A file of an object, of the head or an earlier version. Streamed as an attachment.

Access: key with ability read

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
object path yes string (uuid) The object's UUID (the OCFL ID without urn:uuid:).
path path yes string The logical path inside the object, slashes included, e.g. data/scan.tif or metadata/description.json.
version query no string The OCFL version (v1, v2, …); the head when not given. · ^v[0-9]+$

Responses

Status Description Body
200 The file. application/octet-stream
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such object, version, or file in that version. application/json Error
410 The object is withdrawn; the answer names the reason. application/json WithdrawnError

PUT /t/{tenant}/objects/{object}/metadata

A new metadata copy. The JSON body, as sent, becomes the new metadata/description.json in a new version with a metadata modification event, and the feed gets object.metadata_updated. The same copy again adds no version and answers 200 with updated: false. What is in the copy is the client's; Lotte does not interpret it.

Access: key with ability metadata

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
object path yes string (uuid) The object's UUID (the OCFL ID without urn:uuid:).

Request (application/json): object

The metadata copy (a JSON object, not a list).

Responses

Status Description Body
200 The head after the request. application/json MetadataResult
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such customer, or no such object, package or job of this customer (or client). application/json Error
410 The object is withdrawn; the answer names the reason. application/json WithdrawnError
422 The request is invalid. application/json ValidationError

Derivatives

Access copies, thumbnails, posters and text, kept outside OCFL and made again at will.

GET /t/{tenant}/objects/{object}/derivatives/{conversion}

A derivative of an object. The file when it is ready. Not made yet: 202 with Retry-After, and the conversion is queued; a request never converts by itself.

Access: key with ability read

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
object path yes string (uuid) The object's UUID (the OCFL ID without urn:uuid:).
conversion path yes string The conversion: web (access copy), thumb (thumbnail), poster (video still); which ones an object has depends on its MIME type. The text has its own route. · ^[a-z0-9_-]+$

Responses

Status Description Body
200 The derivative. image/jpeg
application/pdf
video/mp4
audio/mpeg
202 Not made yet; queued now. Ask again after Retry-After seconds. · Headers: Retry-After application/json object
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such object, a conversion the object does not have, or a derivative given up after three failed attempts (then with status: failed). application/json object
410 The object is withdrawn; the answer names the reason. application/json WithdrawnError

GET /t/{tenant}/objects/{object}/derivatives/{conversion}/url

A short-lived signed URL to a derivative. For a browser that has no key: a URL below /s/{tenant}/…, valid for a few minutes (default 15). Only for a ready derivative; otherwise the same answers as the derivative itself.

Access: key with ability read

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
object path yes string (uuid) The object's UUID (the OCFL ID without urn:uuid:).
conversion path yes string The conversion: web (access copy), thumb (thumbnail), poster (video still); which ones an object has depends on its MIME type. The text has its own route. · ^[a-z0-9_-]+$

Responses

Status Description Body
200 The signed URL. application/json SignedUrl
202 Not made yet; queued now. Ask again after Retry-After seconds. · Headers: Retry-After application/json object
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such object, a conversion the object does not have, or a derivative given up after three failed attempts (then with status: failed). application/json object
410 The object is withdrawn; the answer names the reason. application/json WithdrawnError

GET /t/{tenant}/objects/{object}/text

The text of an object. Extracted text (PDF text layer, office documents, plain text) or, where the customer has OCR on, text by OCR; as written, UTF-8. Not made yet: 202 with Retry-After, and queued.

Access: key with ability read

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
object path yes string (uuid) The object's UUID (the OCFL ID without urn:uuid:).

Responses

Status Description Body
200 The text. text/plain
202 Not made yet; queued now. Ask again after Retry-After seconds. · Headers: Retry-After application/json object
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such object, a conversion the object does not have, or a derivative given up after three failed attempts (then with status: failed). application/json object
410 The object is withdrawn; the answer names the reason. application/json WithdrawnError

GET /s/{tenant}/objects/{object}/derivatives/{conversion}

A derivative behind a signed URL. No key and no session, only a valid signature, as issued by GET /t/{tenant}/objects/{object}/derivatives/{conversion}/url. Serves a ready derivative only and never queues one.

Access: no key

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
object path yes string (uuid) The object's UUID (the OCFL ID without urn:uuid:).
conversion path yes string The conversion: web (access copy), thumb (thumbnail), poster (video still); which ones an object has depends on its MIME type. The text has its own route. · ^[a-z0-9_-]+$
expires query yes integer
signature query yes string

Responses

Status Description Body
200 The derivative. image/jpeg
application/pdf
video/mp4
audio/mpeg
403 The signature is missing, wrong or expired, or the URL was changed. application/json Error
404 No such customer or object, or the derivative is not ready. application/json Error
410 The object is withdrawn; the answer names the reason. application/json WithdrawnError

Ingest

Ingest in two steps: describe a package, upload its files (resumable), have them checked, then commit (one OCFL object per accepted file) or discard. A package neither committed nor discarded is discarded after the retention time (default 7 days).

POST /t/{tenant}/packages

Describe a package. The first step of an ingest: the files to come, each with a name, the client's reference (unique per customer, it names the object later), an optional delivered checksum, a metadata copy and the size. The package is open until its files are uploaded and checked. The same Idempotency-Key again answers 200 with the package created the first time and creates nothing.

Access: key with ability ingest

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
Idempotency-Key header yes string The client's key for this request; the same key again creates nothing twice. Missing or empty answers 422.

Request (application/json): PackageDescription

Responses

Status Description Body
200 A package with this key exists already; it is returned unchanged. application/json Package
201 The package was created. application/json Package
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such customer, or no such object, package or job of this customer (or client). application/json Error
422 The Idempotency-Key header is missing, or the description is invalid. application/json ValidationError

GET /t/{tenant}/packages/{package}

A package with the result per file. A client sees its own packages only.

Access: key with ability ingest

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
package path yes string (uuid)

Responses

Status Description Body
200 The package. application/json Package
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such customer, or no such object, package or job of this customer (or client). application/json Error

PUT /t/{tenant}/packages/{package}/files/{n}

Upload a file or the next part of it. The body is the raw bytes. Without Content-Range the part starts at offset 0. Only the next part is taken: its first byte must be the Upload-Offset so far, otherwise 409. Only while the package is open.

Access: key with ability ingest

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
package path yes string (uuid)
n path yes integer The file's position in the description, from 0.
Content-Range header no string bytes <first>-<last>/<total> or bytes <first>-<last>/*; <first> must equal the current Upload-Offset. · ^bytes [0-9]+-[0-9]+/([0-9]+\|\*)$

Request (application/octet-stream): string

Responses

Status Description Body
204 The part was written. · Headers: Upload-Offset
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such customer, or no such object, package or job of this customer (or client). application/json Error
409 The request does not fit the package's state (e.g. a commit before the check, an upload after it, discarding a committed package) or the bytes received so far (a part not starting at Upload-Offset). application/json Error

HEAD /t/{tenant}/packages/{package}/files/{n}

How many bytes of a file have arrived. To resume an interrupted upload, send the next part from Upload-Offset.

Access: key with ability ingest

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
package path yes string (uuid)
n path yes integer The file's position in the description, from 0.

Responses

Status Description Body
200 The bytes received so far. · Headers: Upload-Offset
401 No valid key for this customer (no body on HEAD).
403 The key lacks the ability (no body on HEAD).
404 No such package of this client, or no such file (no body on HEAD).

POST /t/{tenant}/packages/{package}/check

Have the files checked. Queues the checks on the customer's queue: virus check, delivered checksum, format policy (preingest and normalisation by the customer's rules and the package's route), identification, format validation, consistency of extension, content and PRONOM ID, and characteristics. The package is checking, then provisional with a result per file (accepted, or refused with a reason). Asking again while it is checking or provisional changes nothing.

Access: key with ability ingest

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
package path yes string (uuid)

Responses

Status Description Body
200 The package after the request. application/json Package
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such customer, or no such object, package or job of this customer (or client). application/json Error
409 The request does not fit the package's state (e.g. a commit before the check, an upload after it, discarding a committed package) or the bytes received so far (a part not starting at Upload-Offset). application/json Error

POST /t/{tenant}/packages/{package}/commit

Commit a checked package. Writes one OCFL object per accepted file, with the check events and an ingestion event, removes the working files and queues each new object's derivatives and text; the feed gets object.created per object. Refused files are left out. A package committed before answers as it did then. Only a provisional package can be committed.

Access: key with ability ingest

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
package path yes string (uuid)
Idempotency-Key header no string Recorded with the commit.

Responses

Status Description Body
200 The committed package; each accepted file names its object. application/json Package
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such customer, or no such object, package or job of this customer (or client). application/json Error
409 The request does not fit the package's state (e.g. a commit before the check, an upload after it, discarding a committed package) or the bytes received so far (a part not starting at Upload-Offset). application/json Error

POST /t/{tenant}/packages/{package}/discard

Discard a package. Removes the working files and marks the package discarded; the feed gets package.discarded with by: client. A package discarded before stays as it is; a committed package cannot be discarded.

Access: key with ability ingest

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
package path yes string (uuid)

Responses

Status Description Body
200 The discarded package. application/json Package
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such customer, or no such object, package or job of this customer (or client). application/json Error
409 The request does not fit the package's state (e.g. a commit before the check, an upload after it, discarding a committed package) or the bytes received so far (a part not starting at Upload-Offset). application/json Error

Jobs

derive, ocr, verify and migrate over objects or a committed package, asynchronous, idempotent by key.

POST /t/{tenant}/jobs

Create a job. A job over objects or the objects of a committed package, run on the customer's queue in slices with progress and a result per object. derive makes missing derivatives and text (options.conversion, options.retry_failed); ocr makes text by OCR whether the customer has OCR on or not; verify checks fixity against the inventory and, with options.ocfl, validates each object with a second OCFL implementation — it adds no version, a finding is recorded as a failed fixity event; migrate applies one format policy rule (options.rule) and writes a new version only when the result passes the rule's verification, format validation and identification; options.probe only reports. Withdrawn objects are skipped. Every job ends with job.finished in the feed. The same Idempotency-Key again answers 200 with the job created the first time; a job that is over is never run again.

Access: key with ability jobs

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
Idempotency-Key header yes string The client's key for this request; the same key again creates nothing twice. Missing or empty answers 422.

Request (application/json): JobRequest

Responses

Status Description Body
200 A job with this key exists already; it is returned as it stands. application/json Job
201 The job was created and queued. application/json Job
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such customer, or no such object, package or job of this customer (or client). application/json Error
422 The Idempotency-Key header is missing, or the request is invalid: an unknown kind, neither or both of objects and package, an object not of this customer, a package not committed by this client, an unknown rule or conversion. application/json ValidationError

GET /t/{tenant}/jobs/{job}

A job with its progress and results. A client sees its own jobs only. Needs jobs or read.

Access: key with ability jobs or key with ability read

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
job path yes string (uuid)

Responses

Status Description Body
200 The job. application/json Job
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such customer, or no such object, package or job of this customer (or client). application/json Error

Changes

The change feed, append-only, in a monotonic sequence.

GET /t/{tenant}/changes

The change feed after a cursor. The entries after since, in sequence order, and next: the last sequence returned, or since when there is nothing new. Each entry is written in the same database transaction as the change it reports; entries become visible in sequence order, so a cursor never skips one. No entry is ever changed or deleted. The feed is the customer's: every client with read sees all of it.

Access: key with ability read

Parameters

Name In Required Type Description
tenant path yes string The customer's slug, as listed in the server's tenants file. An unknown slug answers 404.
since query no integer The client's cursor; 0 for the beginning. · Default: 0
limit query no integer Default: 100

Responses

Status Description Body
200 The next entries. application/json ChangesPage
401 No key, a revoked key, or a key of another customer. application/json Error
403 The key lacks the ability the route needs. application/json Error
404 No such customer, or no such object, package or job of this customer (or client). application/json Error
422 The request is invalid. application/json ValidationError

Monitoring

Statuses for monitoring, without a key and without content.

GET /health

Overall health of the service. The same check as lotte:health — the storage base, and per customer its database, its folder (ocfl/, derivatives/, text/, work/ writable) and its queue (a job waiting too long) — but answered without a key, so it gives the overall status only: no customer, no path, no message. The details are given by lotte:health on the server, which also names derivatives given up after three attempts: a finding about the data, not a warning. No session, Cache-Control: no-store.

Access: no key

Responses

Status Description Body
200 Nothing is critical (the status may be warning). application/json Health
503 At least one check is critical. application/json Health

Data structures

Error

Field Type Description
message string

ValidationError

Field Type Description
message string
errors object

WithdrawnError

Field Type Description
message The object is withdrawn.
id ObjectId
state withdrawn
reason string
withdrawn_at string (date-time)

ObjectId

string · The OCFL object ID, urn:uuid:<uuid v7>. · ^urn:uuid:[0-9a-f-]{36}$

HealthStatus

string · Values: ok, warning, critical

Health

Field Type Required Description
status HealthStatus yes

Whoami

Field Type Description
tenant string
client string
abilities list of Ability

Ability

string · Values: read, ingest, jobs, withdraw, metadata

Event

A preservation event (PREMIS) as kept in metadata/events.json.

Field Type Description
type string e.g. virus check, fixity check, format identification, validation, normalization, ingestion, migration, metadata modification, withdrawal.
type_uri string The type in the PREMIS event type vocabulary of the Library of Congress (http://id.loc.gov/vocabulary/preservation/eventType/…); null for Lotte's own types (format consistency, withdrawal). Missing in events written before 29.11.2026, whose format normalization means normalization.
outcome string
detail string
agent string
datetime string (date-time)

ArchiveObject

Field Type Description
id ObjectId
reference string | null The client's reference, unique per customer.
state string Values: active, withdrawn
withdrawal object | null
head string The newest version, e.g. v2.
digest_algorithm sha512
versions list of object
versions[].version string
versions[].created string (date-time)
versions[].message string
versions[].files list of object
events list of Event The events of the head.

MetadataResult

Field Type Description
id ObjectId
head string
updated boolean false when the copy was the same and no version was added.

WithdrawalResult

Field Type Description
id ObjectId
state withdrawn
head string
reason string
withdrawn_at string (date-time)
withdrawn boolean true when this request withdrew the object, false when it was withdrawn before.

DerivativeStatus

string · Values: missing, queued, ready, failed

SignedUrl

Field Type Description
url string (uri)
expires_at string (date-time)

PackageDescription

Field Type Required Description
route string no The route the files came by, as the client names it; the format policy decides by it (some routes are never refused for an invalid format). On move (Anton moving masters it already holds) the files are kept exactly as delivered — no format policy rule runs — and never refused for their format. · Default: upload · ^[a-z0-9_-]+$
files list of object yes
files[].name string yes The file name; a path is cut to its last part.
files[].reference string | null no The client's reference for the object to be; unique per customer.
files[].checksum string | null no The delivered checksum; the file is refused when it does not match. · ^(md5\|sha1\|sha256\|sha512):[0-9a-fA-F]+$
files[].description object | null no The metadata copy; becomes metadata/description.json.
files[].size integer | null no

PackageState

string · Values: open, checking, provisional, committed, discarded

Package

Field Type Description
id string (uuid)
state PackageState
route string
files list of object
files[].n integer The position, as in the upload route.
files[].name string
files[].reference string | null
files[].received integer Bytes received.
files[].status string Values: pending, accepted, refused
files[].reason string | null Why the file was refused.
files[].puid string | null The PRONOM ID found by the identification.
files[].mime_type string | null
files[].normalized_name string | null The name after a format policy rule changed the file.
files[].object ObjectId | null The object written at commit.

JobKind

string · Values: derive, ocr, verify, migrate

JobState

string · Values: queued, running, finished, failed

JobRequest

Field Type Required Description
kind JobKind yes
target object yes Either objects or package, not both.
target.objects list of string no
target.package string no A package of this client in state committed.
options object no
options.conversion string no derive: only this conversion (web, thumb, poster, text).
options.retry_failed boolean no derive: also what failed fewer than three times.
options.ocfl boolean no verify: also validate each object with a second OCFL implementation.
options.rule string no migrate: the format policy rule, e.g. tiff_zip.
options.probe boolean no migrate: run the rule on copies and report; change nothing.

Job

Field Type Description
id string (uuid)
kind JobKind
target object
options object
state JobState
total integer
done integer
failed integer
results object One result per object, by object ID.
error string | null
created_at string (date-time)
started_at string | null (date-time)
finished_at string | null (date-time)

ChangeKind

string · object.created (committed from a package); object.version_added (migration, normalisation, a fixity finding); object.metadata_updated; object.withdrawn; object.purged (by an operator); derivative.ready; derivative.failed (every failure, with attempts and given_up; the text's with conversion text); text.ready; package.discarded (by: client, operator or retention); job.finished. · Values: object.created, object.version_added, object.metadata_updated, object.withdrawn, object.purged, derivative.ready, derivative.failed, text.ready, package.discarded, job.finished

Change

Field Type Description
sequence integer Monotonic; never goes back.
kind ChangeKind
object ObjectId | null The object the entry is about; null for packages and jobs.
at string (date-time)
payload object What a client needs, the object again as id where there is one: for object entries head, file_name, size, digest, mime_type, puid and reference; for derivatives conversion, head and size or attempts, given_up, error; for a withdrawal or purge reason; for packages package, by, was, references; for jobs job, kind, state, total, done, failed.

ChangesPage

Field Type Description
changes list of Change
next integer The cursor for the next request: the last sequence returned, or since when there was nothing new.