{"openapi":"3.1.0","info":{"title":"OntoCast API","description":"Turn documents into RDF knowledge graphs. Submit a document, follow its job, and download the facts and ontologies it produced.\n\nEvery request except `GET /health` carries `Authorization: Bearer <token>`: an API key (`{user-id}.{secret}`, created in the console's settings) or the console's sign-in token.\n\nThe [API guide](docs) covers projects, ontologies, options, costs and errors.\n","version":"ontocast-api-00032-hsn"},"paths":{"/projects":{"get":{"tags":["Projects"],"summary":"List your projects","description":"Your projects, the default one first, with job counts and spend.","operationId":"list_projects_projects_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProjectResponse"},"type":"array","title":"Response List Projects Projects Get"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]},"post":{"tags":["Projects"],"summary":"Create a project","description":"Create a project. Its documents, ontologies and shapes stay apart from\nyour other projects'.","operationId":"create_project_projects_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"400":{"description":"An invalid slug.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"description":"`terms_not_accepted`: accept the current terms of service first (`POST /me/terms`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"The slug is taken, or `plan_limit`: your plan allows no more projects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]}},"/projects/{slug}":{"get":{"tags":["Projects"],"summary":"Get a project","description":"One of your projects, with its job count, spend and extraction defaults.","operationId":"get_project_projects__slug__get","security":[{"Bearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such project of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}},"patch":{"tags":["Projects"],"summary":"Change a project","description":"Rename a project, describe it, set its extraction defaults, or choose\nwhether its jobs keep their converted document so they can run again\n(``POST /jobs/{id}/rerun``). Turning ``keep_documents`` off deletes every\ndocument the project kept.","operationId":"update_project_projects__slug__patch","security":[{"Bearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such project of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"A store failed; retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}},"delete":{"tags":["Projects"],"summary":"Delete a project","description":"Delete a project with all its documents, ontologies, shapes and vectors.\nSend ``{\"confirm\": \"<slug>\"}``. The default project cannot be deleted.","operationId":"delete_project_projects__slug__delete","security":[{"Bearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_delete_project_projects__slug__delete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deleted"}}}},"400":{"description":"No confirmation, or the default project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such project of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"One of its jobs is running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"A store failed; retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/projects/{slug}/export":{"get":{"tags":["Projects"],"summary":"Export a project's graphs","description":"Download a project's graphs: every finished job's facts, its ontologies and\nits shapes. Without ``bundle`` the graphs are streamed as one N-Quads or TriG\ndocument, each in its named graph; with it, as a zip of one file per job,\nontology and shapes document in any format, and a ``manifest.json`` that\nmaps each file to its jobs, source files, options and cost.","operationId":"export_project_projects__slug__export_get","security":[{"Bearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"graphs","in":"query","required":false,"schema":{"enum":["facts","ontologies","shapes","all"],"type":"string","description":"Which of the project's graphs.","default":"all","title":"Graphs"},"description":"Which of the project's graphs."},{"name":"format","in":"query","required":false,"schema":{"enum":["turtle","ntriples","nquads","trig","jsonld","csv","neo4j"],"type":"string","description":"RDF serialization; `csv` and `neo4j` need `bundle`, put one table zip per graph in it and answer 413 `too_large` when the graphs hold more than `max_graph_triples` in all.","default":"trig","title":"Format"},"description":"RDF serialization; `csv` and `neo4j` need `bundle`, put one table zip per graph in it and answer 413 `too_large` when the graphs hold more than `max_graph_triples` in all."},{"name":"profile","in":"query","required":false,"schema":{"enum":["classic","native"],"type":"string","description":"classic: RDF 1.1 reification; native: RDF 1.2 as stored.","default":"classic","title":"Profile"},"description":"classic: RDF 1.1 reification; native: RDF 1.2 as stored."},{"name":"bundle","in":"query","required":false,"schema":{"type":"boolean","description":"A zip: one file per graph, plus manifest.json.","default":false,"title":"Bundle"},"description":"A zip: one file per graph, plus manifest.json."}],"responses":{"200":{"description":"One RDF dataset, or with `bundle` a zip of one file per graph and `manifest.json`.","content":{"application/n-quads":{},"application/trig":{},"application/zip":{}}},"400":{"description":"A single-graph format without `bundle`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such project of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"413":{"description":"`csv` or `neo4j` over `max_graph_triples` in all.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many exports; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/projects/{slug}/graphs":{"get":{"tags":["Projects"],"summary":"Several of a project's graphs, for one canvas","description":"The facts of the named extractions and the named ontology versions as one\nTriG document, each in its own named graph: the extraction's\n``graph_uri``, the version's ``<iri>#<key>``. Provenance is RDF 1.1\nreification, as ``/jobs/{id}/result`` serves it. Entities shared by\nseveral graphs appear in each.","operationId":"project_graphs_projects__slug__graphs_get","security":[{"Bearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"jobs","in":"query","required":false,"schema":{"type":"string","description":"Finished extractions, by job id, comma-separated.","default":"","title":"Jobs"},"description":"Finished extractions, by job id, comma-separated."},{"name":"ontologies","in":"query","required":false,"schema":{"type":"string","description":"Ontologies by id, comma-separated: `<id>` for its current version (every branch of a diverged one), `<id>@<key>` for one.","default":"","title":"Ontologies"},"description":"Ontologies by id, comma-separated: `<id>` for its current version (every branch of a diverged one), `<id>@<key>` for one."}],"responses":{"200":{"description":"TriG: one named graph per extraction and per ontology version.","content":{"application/trig":{}}},"400":{"description":"Nothing named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such project, extraction or ontology (version) of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"413":{"description":"`too_large`: the graphs hold more triples than one canvas takes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"More sources than one request may name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"description":"Too many exports; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/projects/{slug}/sparql":{"post":{"tags":["Projects"],"summary":"Query a project with SPARQL","description":"Run one read-only SPARQL query on a project's facts, ontologies or shapes.\nSELECT and ASK answer SPARQL JSON results; CONSTRUCT and DESCRIBE answer\nTurtle. Updates and SERVICE are refused; a query runs at most\n``QUERY_TIMEOUT_S`` seconds and returns at most ``QUERY_MAX_MB`` megabytes.","operationId":"query_project_projects__slug__sparql_post","security":[{"Bearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryRequest"}}}},"responses":{"200":{"description":"SPARQL JSON results for SELECT and ASK; Turtle for CONSTRUCT and DESCRIBE.","content":{"application/sparql-results+json":{},"text/turtle":{}}},"400":{"description":"A refused or failed query.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such project of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"413":{"description":"The result is too large; add a LIMIT.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many queries; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/ontologies":{"get":{"tags":["Ontologies"],"summary":"List a project's ontologies","description":"A project's ontologies, one entry per ontology, with its heads. A run in\n``fixed_single_ontology`` mode takes the ``ontology_id``.","operationId":"list_ontologies_ontologies_get","security":[{"Bearer":[]}],"parameters":[{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; your default project if omitted.","title":"Project"},"description":"Project slug; your default project if omitted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OntologySummary"},"title":"Response List Ontologies Ontologies Get"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such project of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}},"post":{"tags":["Ontologies"],"summary":"Upload an ontology or its next version","description":"Upload an ontology (Turtle, N-Triples, JSON-LD or RDF/XML).\n\nA file whose ontology IRI is new becomes the first version of a new\nontology. A file whose IRI the project holds becomes that ontology's next\nversion, derived from every head; its label is the file's\n``owl:versionInfo`` when higher than every head's, else the highest head's\nwith the minor part bumped. Content equal to the single head's stores\nnothing (``created: \"unchanged\"``).","operationId":"upload_ontology_ontologies_post","security":[{"Bearer":[]}],"parameters":[{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; your default project if omitted.","title":"Project"},"description":"Project slug; your default project if omitted."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_ontology_ontologies_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResult"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"description":"`terms_not_accepted`: accept the current terms of service first (`POST /me/terms`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`ontology_exists` (the id names another ontology), `ontology_iri_differs`; `plan_limit`; `ontology_writer_running`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"413":{"description":"The file is too large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"415":{"description":"A file type or content that is not accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"`not_an_ontology`, `several_ontologies`, `ontology_iri_has_fragment`, `invalid_ontology_iri` or `invalid_ontology_id`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/ontologies/{ontology_id}":{"get":{"tags":["Ontologies"],"summary":"Get an ontology and its versions","description":"One ontology and its version history: every version, newest first, with\nthe versions it derives from and the job or upload it came from.","operationId":"ontology_detail_ontologies__ontology_id__get","security":[{"Bearer":[]}],"parameters":[{"name":"ontology_id","in":"path","required":true,"schema":{"type":"string","title":"Ontology Id"}},{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; your default project if omitted.","title":"Project"},"description":"Project slug; your default project if omitted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OntologyDetail"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such ontology.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`ontology_id_ambiguous`: the id names several ontologies.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}},"delete":{"tags":["Ontologies"],"summary":"Delete an ontology","description":"Delete an ontology: every version and its search index. Jobs that used\nit keep their facts; their ontology download answers 410.","operationId":"delete_ontology_ontologies__ontology_id__delete","security":[{"Bearer":[]}],"parameters":[{"name":"ontology_id","in":"path","required":true,"schema":{"type":"string","title":"Ontology Id"}},{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; your default project if omitted.","title":"Project"},"description":"Project slug; your default project if omitted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OntologyDeleted"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such ontology.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`ontology_writer_running`: a job is writing the project's ontologies.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/ontologies/{ontology_id}/versions/{key}/turtle":{"get":{"tags":["Ontologies"],"summary":"Download an ontology version","description":"One version as RDF 1.1 Turtle, header included.","operationId":"download_version_ontologies__ontology_id__versions__key__turtle_get","security":[{"Bearer":[]}],"parameters":[{"name":"ontology_id","in":"path","required":true,"schema":{"type":"string","title":"Ontology Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; your default project if omitted.","title":"Project"},"description":"Project slug; your default project if omitted."}],"responses":{"200":{"description":"The version as RDF 1.1 Turtle.","content":{"text/turtle":{}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such ontology or version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"410":{"description":"`ontology_version_removed`: the version was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/ontologies/{ontology_id}/diff":{"get":{"tags":["Ontologies"],"summary":"Compare two versions","description":"What changed between two versions of an ontology; by default, its head\nagainst the version it derives from.","operationId":"ontology_diff_ontologies__ontology_id__diff_get","security":[{"Bearer":[]}],"parameters":[{"name":"ontology_id","in":"path","required":true,"schema":{"type":"string","title":"Ontology Id"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Version key; the head if omitted.","title":"To"},"description":"Version key; the head if omitted."},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Version key; the prior of `to` if omitted.","title":"From"},"description":"Version key; the prior of `to` if omitted."},{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; your default project if omitted.","title":"Project"},"description":"Project slug; your default project if omitted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OntologyDiff"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such ontology or version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"410":{"description":"`ontology_version_removed`: either version was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"A default cannot be chosen: a diverged ontology needs `to`, a root needs `from`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/ontologies/{ontology_id}/versions/{key}":{"delete":{"tags":["Ontologies"],"summary":"Remove an older version","description":"Remove an older version's content; its header stays, so the history\nthrough it stays whole. Removing a removed version changes nothing.","operationId":"delete_version_ontologies__ontology_id__versions__key__delete","security":[{"Bearer":[]}],"parameters":[{"name":"ontology_id","in":"path","required":true,"schema":{"type":"string","title":"Ontology Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; your default project if omitted.","title":"Project"},"description":"Project slug; your default project if omitted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionRemoved"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such ontology or version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`head_version`: a head cannot be removed, delete the ontology instead; `ontology_writer_running`: a job is writing the project's ontologies.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/ontologies/{ontology_id}/versions":{"post":{"tags":["Ontologies"],"summary":"Save an edit as the next version","description":"Store the Turtle body (the whole ontology, as edited) as the next\nversion of ``ontology_id``, derived from every head, under the rules of an\nupload. Content equal to the single head's stores nothing.","operationId":"save_version_ontologies__ontology_id__versions_post","security":[{"Bearer":[]}],"parameters":[{"name":"ontology_id","in":"path","required":true,"schema":{"type":"string","title":"Ontology Id"}},{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; your default project if omitted.","title":"Project"},"description":"Project slug; your default project if omitted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResult"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"description":"`terms_not_accepted`: accept the current terms of service first (`POST /me/terms`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such ontology.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`plan_limit`; `ontology_writer_running`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"413":{"description":"The body is too large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"415":{"description":"The body is not readable Turtle.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"`not_an_ontology`, `several_ontologies` or `ontology_iri_changed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"requestBody":{"required":true,"content":{"text/turtle":{"schema":{"type":"string"}}}}}},"/ontologies/{ontology_id}/preview":{"post":{"tags":["Ontologies"],"summary":"Preview an edit against the head","description":"What saving the Turtle body as the next version would store: its label,\nthe versions it derives from, and its changes against the newest head.\nNothing is written.","operationId":"preview_version_ontologies__ontology_id__preview_post","security":[{"Bearer":[]}],"parameters":[{"name":"ontology_id","in":"path","required":true,"schema":{"type":"string","title":"Ontology Id"}},{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; your default project if omitted.","title":"Project"},"description":"Project slug; your default project if omitted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionPreview"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such ontology.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"413":{"description":"The body is too large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"415":{"description":"The body is not readable Turtle.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"`not_an_ontology`, `several_ontologies` or `ontology_iri_changed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"requestBody":{"required":true,"content":{"text/turtle":{"schema":{"type":"string"}}}}}},"/gallery":{"get":{"tags":["Ontologies"],"summary":"List the ontology gallery","description":"Curated public ontologies, each with its licence and attribution, its\nsize, whether your plan takes it (``fits_plan``) and whether the project\nalready holds it (``in_project``).","operationId":"list_gallery_gallery_get","security":[{"Bearer":[]}],"parameters":[{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; your default project if omitted.","title":"Project"},"description":"Project slug; your default project if omitted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryListing"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such project of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/ontologies/gallery/{entry_id}":{"post":{"tags":["Ontologies"],"summary":"Add an ontology from the gallery","description":"Add a gallery entry to the project as a new ontology, as uploading its\nfile under the entry's id would. The answer is the upload's.","operationId":"add_from_gallery_ontologies_gallery__entry_id__post","security":[{"Bearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}},{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; your default project if omitted.","title":"Project"},"description":"Project slug; your default project if omitted."}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResult"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"description":"`terms_not_accepted`: accept the current terms of service first (`POST /me/terms`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"`gallery_entry_not_found`; or no such project of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`ontology_exists` (the project holds this ontology, or its id names another); `plan_limit`; `ontology_writer_running`; `sample_read_only`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/jobs/{job_id}":{"delete":{"tags":["Jobs"],"summary":"Delete a finished job","description":"Delete one of your finished jobs: its facts graph is dropped, its kept\ndocument deleted (unless a re-run of it still needs it), the text of its\nparts deleted, its share links revoked and its inputs forgotten. Its\ncharges stay on your statement.","operationId":"delete_job_jobs__job_id__delete","security":[{"Bearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deleted"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such job of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"The job is running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"A store failed; retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}},"patch":{"tags":["Jobs"],"summary":"Rename a job","description":"Rename one of your jobs (an empty title clears it).","operationId":"job_update_jobs__job_id__patch","security":[{"Bearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestionJobStatusResponse"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such job of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}},"get":{"tags":["Jobs"],"summary":"Get a job","description":"One of your jobs: its status, the pipeline stage it reached, what it\nproduced and what it cost.","operationId":"job_status_jobs__job_id__get","security":[{"Bearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestionJobStatusResponse"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such job of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/me":{"get":{"tags":["Account"],"summary":"Read your account","description":"The caller's account: approval status, balance, and whether it has a key.","operationId":"get_me_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponse"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]},"delete":{"tags":["Account"],"summary":"Delete your account","description":"Delete your account and everything stored for it: projects, documents,\nontologies, shapes, vectors, cached text and your sign-in. Send\n``{\"confirm_email\": \"<your email>\"}``. Queued jobs are cancelled; your ledger\nis kept, without your email, for accounting.","operationId":"delete_me_me_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_delete_me_me_delete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErasureResult"}}}},"400":{"description":"No confirmation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"A job is running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"A store failed; retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]}},"/jobs/{job_id}/feedback":{"get":{"tags":["Feedback"],"summary":"Read your feedback on a job","description":"Your reaction to one of your jobs and the facts of it you flagged.","operationId":"job_feedback_jobs__job_id__feedback_get","security":[{"Bearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobFeedback"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such job of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}},"put":{"tags":["Feedback"],"summary":"React to a job's result","description":"Say whether a finished or failed job's result was useful, with an optional\ncomment. One reaction per job: sending again replaces it.","operationId":"react_to_job_jobs__job_id__feedback_put","security":[{"Bearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobReaction"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackResponse"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such job of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`job_not_finished`: the job has not finished; `not_extracted`: the job is an import.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many feedback requests; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/jobs/{job_id}/feedback/facts":{"post":{"tags":["Feedback"],"summary":"Flag a fact as wrong","description":"Flag one fact of a finished job's graph, or an entity as a whole (no\n``predicate``), as wrong. Flagging the same fact again returns the flag.","operationId":"flag_fact_jobs__job_id__feedback_facts_post","security":[{"Bearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactFlagCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackResponse"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such job of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`job_not_finished`: the job has no facts yet; `not_extracted`: the job is an import.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many feedback requests; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/jobs/{job_id}/feedback/facts/{flag_id}":{"delete":{"tags":["Feedback"],"summary":"Take back a fact flag","description":"Remove a flag you set on one of a job's facts.","operationId":"unflag_fact_jobs__job_id__feedback_facts__flag_id__delete","security":[{"Bearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"flag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flag Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such job or flag of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/feedback":{"post":{"tags":["Feedback"],"summary":"Send feedback","description":"Tell the OntoCast team something: a problem, a wish, what you are building.","operationId":"send_feedback_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackResponse"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many feedback requests; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]}},"/samples":{"get":{"tags":["Samples"],"summary":"List the samples","description":"The finished extractions you can copy into a project of your own, each\nwith the slug of your project holding it, if you have one.","operationId":"list_samples_samples_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SampleSummary"},"type":"array","title":"Response List Samples Samples Get"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]}},"/samples/{pack_id}":{"post":{"tags":["Samples"],"summary":"Add a sample project","description":"Copy a finished extraction into a new project of yours: its document's\njob, ontologies and graph, ready to explore, query and download. It is\nread-only and free; delete the project to remove it. One sample project per\nsample at a time.","operationId":"add_sample_samples__pack_id__post","security":[{"Bearer":[]}],"parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","title":"Pack Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SampleAdded"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"description":"`terms_not_accepted`: accept the current terms of service first (`POST /me/terms`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"`unknown_sample`: no such sample.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`sample_exists`: you already have this sample; `project` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many samples added today; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`sample_failed`: the sample could not be added; nothing was kept. `waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/jobs/{job_id}/units":{"get":{"tags":["Jobs"],"summary":"Read the text of a job's parts","description":"The text of each part (content unit) a finished job processed, with its\nposition, section label and headings. ``iri`` is the part's IRI, which\neach fact's provenance names with ``prov:wasDerivedFrom``, so a fact can\nbe shown with the passage it came from.","operationId":"job_units_jobs__job_id__units_get","security":[{"Bearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobUnits"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such job of yours, or `units_not_found`: no text is kept for it (a job still running, an import, or a job from before).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The bucket failed; retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/jobs/{job_id}/preview":{"get":{"tags":["Jobs"],"summary":"Preview a running job's facts","description":"While a job runs, the facts of each part (content unit) as the model\nrendered them, in Turtle, from the moment facts rendering ends until the\njob is final. They are not merged across parts nor checked yet, and carry\nno provenance; the job's result replaces them. Sent gzip-encoded to\nclients that accept it.","operationId":"job_preview_jobs__job_id__preview_get","security":[{"Bearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"The facts of each part as rendered, before merging and checks.","content":{"text/turtle":{}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such job of yours, or `preview_not_found`: the job has not rendered facts yet, or it has finished.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The bucket failed; retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/jobs/{job_id}/shares":{"post":{"tags":["Jobs"],"summary":"Share a job's results by link","description":"Make a public link to a frozen copy of a completed job's facts, the\nontology it used and, with ``include_passages``, the text of its parts.\nAnyone holding the link can read the copy; later changes to the job do not\nreach it. The link is returned only now: keep it. Revoke it with\n``DELETE /shares/{id}``.","operationId":"create_share_jobs__job_id__shares_post","security":[{"Bearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ShareCreate"},{"type":"null"}],"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareCreated"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"description":"`pending_approval`: the account awaits approval. `terms_not_accepted`: accept the current terms of service first (`POST /me/terms`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"`job_not_found`: no such job of yours; `facts_not_found`: it extracted no facts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`job_not_complete`; `too_many_shares`: the job has its most live shares; `sample_read_only`: a sample project's job.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"410":{"description":"`results_removed`: the job's facts were deleted since.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"413":{"description":"`graph_too_large`: the facts exceed `max_graph_triples`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many shares made; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"502":{"description":"`store_failed`: the triple store failed; or the bucket failed. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}},"get":{"tags":["Jobs"],"summary":"List a job's shares","description":"The job's shares, newest first, revoked ones included. Links are not\nlisted: a share's token is shown only when it is made.","operationId":"list_shares_jobs__job_id__shares_get","security":[{"Bearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareList"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"`job_not_found`: no such job of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/shares/{share_id}":{"delete":{"tags":["Jobs"],"summary":"Revoke a share","description":"Revoke a share: its files are deleted, so its link answers 404 (copies a\nbrowser or proxy cached may live five more minutes). Revoking twice is\nharmless.","operationId":"revoke_share_shares__share_id__delete","security":[{"Bearer":[]}],"parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareSummary"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"`share_not_found`: no such share of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The bucket failed; retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/public/shares/{token}/{file}":{"get":{"tags":["Jobs"],"summary":"Read a shared snapshot","description":"One file of a share, for anyone holding its link; no credentials. A share\nholds ``meta.json`` and ``graph.ttl``, ``ontology.ttl`` when the job used\nan ontology, and ``units.json`` when passages were included.","operationId":"read_shared_public_shares__token___file__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"file","in":"path","required":true,"schema":{"type":"string","title":"File"}}],"responses":{"200":{"description":"The file: `meta.json`, `graph.ttl`, `ontology.ttl` or `units.json`.","content":{"application/json":{},"text/turtle":{}}},"404":{"description":"`share_not_found`: no such share or file, or it was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many reads from your address; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"502":{"description":"The bucket failed; retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/me/terms":{"post":{"tags":["Account"],"summary":"Accept the terms of service","description":"Record that you accept the published terms of service, by the version\nyou read. Accepting the version you already accepted changes nothing.","operationId":"accept_terms_me_terms_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TermsAcceptance"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TermsStatus"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`terms_not_published`: no terms are published; `terms_version_stale`: `version` is not the published version (reload it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]}},"/jobs":{"get":{"tags":["Jobs"],"summary":"List your jobs","description":"Your jobs, newest first. ``X-Total-Count`` carries how many match, for paging.","operationId":"jobs_list_jobs_get","security":[{"Bearer":[]}],"parameters":[{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","description":"If true, returns only jobs that have not finished.","default":false,"title":"Active Only"},"description":"If true, returns only jobs that have not finished."},{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only this project's jobs (slug).","title":"Project"},"description":"Only this project's jobs (slug)."},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"null"}],"description":"Only jobs in this status.","title":"Status"},"description":"Only jobs in this status."},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Search titles and file names.","title":"Q"},"description":"Search titles and file names."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IngestionJobStatusResponse"},"title":"Response Jobs List Jobs Get"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/jobs/{job_id}/abort":{"post":{"tags":["Jobs"],"summary":"Stop a job","description":"Stop one of your jobs. A queued job never runs; a running one stops within\nabout a minute and is charged for the model calls it made until then.","operationId":"job_abort_jobs__job_id__abort_post","security":[{"Bearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobAbortResult"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such job of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/process":{"post":{"tags":["Submit"],"summary":"Submit documents","description":"Upload documents (or JSON) and queue full-pipeline extraction (async).\n\nSend files as **multipart** parts (any field name, up to\n``MAX_FILES_PER_REQUEST``) or one document as a **JSON** body, and\nextraction params (``render_mode``, ``max_visits``,\n``ontology_context_mode``, …) via query string, form fields, or JSON body\n(body wins over query); they apply to every file. ``project`` (a project\nslug; your default project if omitted) and ``title`` may come as query or\nform fields. Each file becomes one job, and the response lists them in\nupload order — poll ``GET /jobs/{id}`` and download\n``GET /jobs/{id}/result`` when complete.\n\nEach job reserves its ``hold_eur`` (the estimate's high end, or your\n``max_cost_eur``) from your balance until it ends, and stops if its cost\nreaches it; ``POST /process/estimate`` shows both without queueing. The\nrequest is admitted whole or not at all.","operationId":"process_document_process_post","security":[{"Bearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitResponse"}}}},"400":{"description":"An unknown or invalid option, a missing file, or an option the deployment does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"402":{"description":"`insufficient_balance`: the jobs' holds are more than your available balance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"description":"`pending_approval`: the account awaits approval; `email_unconfirmed`; or the account is suspended. `terms_not_accepted`: accept the current terms of service first (`POST /me/terms`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`plan_limit`: a job would pass a limit of your plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"411":{"description":"The upload has no `Content-Length`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"413":{"description":"The upload, or a document's text, is larger than one job takes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"415":{"description":"A file type or content that is not accepted (`GET /policy`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"`max_cost_below_fee`: `max_cost_eur` does not cover the job's fees; `too_many_files`: more files than one request takes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"description":"`queue_full`: your unfinished jobs and these would pass your queue; or too many submissions, retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`pricing_unconfigured`: prices are not set yet. `waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"parameters":[{"name":"project","in":"query","required":false,"schema":{"type":"string","description":"The project to write to (slug); your default one if omitted."}},{"name":"title","in":"query","required":false,"schema":{"type":"string","description":"A name for the jobs."}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"A document to process; repeat the field for several, one job each. Any field name works."},"project":{"type":"string","description":"The project to write to (slug); your default one if omitted."},"title":{"type":"string","description":"A name for the jobs."},"render_mode":{"type":"string","description":"What to render: `ontology`, `facts` or `ontology_and_facts`."},"ontology_context_mode":{"type":"string","description":"How the ontology context is chosen: `selected_single_ontology`, `selected_vector_search_ontology` or `fixed_single_ontology`; the deployment may allow fewer (`GET /policy`)."},"max_visits":{"type":"string","description":"Retries of a render that failed outright, at least 1; the deployment may cap it."},"ontology_user_instruction":{"type":"string","description":"Free text guiding the ontology step."},"facts_user_instruction":{"type":"string","description":"Free text guiding the facts step."},"ontology_selection_user_instruction":{"type":"string","description":"Free text guiding which ontology is selected."},"ontology_context_fixed_ontology_id":{"type":"string","description":"The ontology to use (`GET /ontologies`); setting it selects `fixed_single_ontology`."},"target_sections":{"type":"string","description":"Only these sections: a comma-separated list or a JSON array."},"exclude_sections":{"type":"string","description":"Skip these sections: a comma-separated list or a JSON array."},"summarize_sections":{"type":"string","description":"Summarize these sections: a comma-separated list or a JSON array."},"summary_max_sentences":{"type":"string","description":"Sentences per section summary, at least 1."},"document_type_hint":{"type":"string","description":"What the document is, e.g. `journal article`."},"section_schema_id":{"type":"string","description":"Section schema to classify with, e.g. `academic`."},"head_chunks":{"type":"string","description":"Process only the first N content units."},"strip_provenance":{"type":"string","description":"Leave per-fact provenance out of the facts graph."},"current_domain":{"type":"string","description":"IRI stem for the document's namespace: absolute http(s), without fragment, query or trailing `/`."},"document_metadata":{"type":"string","description":"Title, authors, date, … recorded in the facts graph with the extracted triples."},"max_cost_eur":{"type":"string","description":"Most the job may cost, in EUR: held from your balance, and the run stops there. Unset, the hold comes from the estimate. It must exceed the job's fees."}}}},"application/json":{"schema":{"type":"object","description":"The document itself, as one JSON object; keys that name an option are read as options too.","properties":{"render_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What to render: `ontology`, `facts` or `ontology_and_facts`.","title":"Render Mode"},"ontology_context_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"How the ontology context is chosen: `selected_single_ontology`, `selected_vector_search_ontology` or `fixed_single_ontology`; the deployment may allow fewer (`GET /policy`).","title":"Ontology Context Mode"},"max_visits":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Retries of a render that failed outright, at least 1; the deployment may cap it.","title":"Max Visits"},"ontology_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free text guiding the ontology step.","title":"Ontology User Instruction"},"facts_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free text guiding the facts step.","title":"Facts User Instruction"},"ontology_selection_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free text guiding which ontology is selected.","title":"Ontology Selection User Instruction"},"ontology_context_fixed_ontology_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The ontology to use (`GET /ontologies`); setting it selects `fixed_single_ontology`.","title":"Ontology Context Fixed Ontology Id"},"target_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Only these sections: a comma-separated list or a JSON array.","title":"Target Sections"},"exclude_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Skip these sections: a comma-separated list or a JSON array.","title":"Exclude Sections"},"summarize_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Summarize these sections: a comma-separated list or a JSON array.","title":"Summarize Sections"},"summary_max_sentences":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Sentences per section summary, at least 1.","title":"Summary Max Sentences"},"document_type_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the document is, e.g. `journal article`.","title":"Document Type Hint"},"section_schema_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Section schema to classify with, e.g. `academic`.","title":"Section Schema Id"},"head_chunks":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Process only the first N content units.","title":"Head Chunks"},"strip_provenance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Leave per-fact provenance out of the facts graph.","title":"Strip Provenance"},"current_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"IRI stem for the document's namespace: absolute http(s), without fragment, query or trailing `/`.","title":"Current Domain"},"document_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"Title, authors, date, … recorded in the facts graph with the extracted triples.","title":"Document Metadata"},"max_cost_eur":{"anyOf":[{"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","type":"string"},{"type":"null"}],"description":"Most the job may cost, in EUR: held from your balance, and the run stops there. Unset, the hold comes from the estimate. It must exceed the job's fees.","title":"Max Cost Eur"}},"additionalProperties":true},"example":{"text":"Perovskite solar cells reach 25% efficiency.","render_mode":"facts"}}}}}},"/import":{"post":{"tags":["Submit"],"summary":"Import fact graphs","description":"Import RDF fact graphs into a project (async), without extraction.\n\nSend RDF files as **multipart** parts (`.ttl`, `.nt`, `.jsonld`, `.rdf`, ...;\n`.json` is JSON-LD) and optionally `project` (a slug; your default project if\nomitted). Each file becomes one job, listed in upload order, whose graph is\nchecked and stored like an extraction's. No model runs and nothing is\ncharged; the graphs count against your stored triples from the moment they\nare queued. A literal longer than the deployment's limit (as for ontology\nuploads) is refused with 413. The request is admitted whole or not at all.","operationId":"import_graphs_import_post","requestBody":{"content":{"multipart/form-data":{"schema":{"properties":{"files":{"type":"string","format":"binary","description":"An RDF file (`.ttl`, `.nt`, `.jsonld`, `.rdf`, ...; `.json` is JSON-LD); repeat the field for several, one job each."},"project":{"type":"string","description":"Project slug; your default project if omitted."}},"type":"object","required":["files"]}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitResponse"}}}},"400":{"description":"No file, or a file without a name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"description":"`terms_not_accepted`: accept the current terms of service first (`POST /me/terms`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such project of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`plan_limit`: the graphs would pass your stored triples.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"413":{"description":"A file or its triples are over the import limits (`GET /policy`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"415":{"description":"A file that is not RDF in its suffix's syntax.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"`too_many_files`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"description":"`queue_full`, or too many submissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`upload_failed`: the upload could not be stored; retry. `waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]}},"/process_unit":{"post":{"tags":["Submit"],"summary":"Submit short text as one unit","description":"Queue single-unit extraction (async): each document is one content unit,\nno chunking/normalization. Ideal for short text/JSON snippets and quick\nontology/facts trials. Same request formats, queue, billing, and Turtle\nexport as ``POST /process``.","operationId":"process_unit_process_unit_post","security":[{"Bearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitResponse"}}}},"400":{"description":"An unknown or invalid option, a missing file, or an option the deployment does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"402":{"description":"`insufficient_balance`: the jobs' holds are more than your available balance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"description":"`pending_approval`: the account awaits approval; `email_unconfirmed`; or the account is suspended. `terms_not_accepted`: accept the current terms of service first (`POST /me/terms`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`plan_limit`: a job would pass a limit of your plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"411":{"description":"The upload has no `Content-Length`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"413":{"description":"The upload, or a document's text, is larger than one job takes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"415":{"description":"A file type or content that is not accepted (`GET /policy`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"`max_cost_below_fee`: `max_cost_eur` does not cover the job's fees; `too_many_files`: more files than one request takes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"description":"`queue_full`: your unfinished jobs and these would pass your queue; or too many submissions, retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`pricing_unconfigured`: prices are not set yet. `waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"parameters":[{"name":"project","in":"query","required":false,"schema":{"type":"string","description":"The project to write to (slug); your default one if omitted."}},{"name":"title","in":"query","required":false,"schema":{"type":"string","description":"A name for the jobs."}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"A document to process; repeat the field for several, one job each. Any field name works."},"project":{"type":"string","description":"The project to write to (slug); your default one if omitted."},"title":{"type":"string","description":"A name for the jobs."},"render_mode":{"type":"string","description":"What to render: `ontology`, `facts` or `ontology_and_facts`."},"ontology_context_mode":{"type":"string","description":"How the ontology context is chosen: `selected_single_ontology`, `selected_vector_search_ontology` or `fixed_single_ontology`; the deployment may allow fewer (`GET /policy`)."},"max_visits":{"type":"string","description":"Retries of a render that failed outright, at least 1; the deployment may cap it."},"ontology_user_instruction":{"type":"string","description":"Free text guiding the ontology step."},"facts_user_instruction":{"type":"string","description":"Free text guiding the facts step."},"ontology_selection_user_instruction":{"type":"string","description":"Free text guiding which ontology is selected."},"ontology_context_fixed_ontology_id":{"type":"string","description":"The ontology to use (`GET /ontologies`); setting it selects `fixed_single_ontology`."},"target_sections":{"type":"string","description":"Only these sections: a comma-separated list or a JSON array."},"exclude_sections":{"type":"string","description":"Skip these sections: a comma-separated list or a JSON array."},"summarize_sections":{"type":"string","description":"Summarize these sections: a comma-separated list or a JSON array."},"summary_max_sentences":{"type":"string","description":"Sentences per section summary, at least 1."},"document_type_hint":{"type":"string","description":"What the document is, e.g. `journal article`."},"section_schema_id":{"type":"string","description":"Section schema to classify with, e.g. `academic`."},"head_chunks":{"type":"string","description":"Process only the first N content units."},"strip_provenance":{"type":"string","description":"Leave per-fact provenance out of the facts graph."},"current_domain":{"type":"string","description":"IRI stem for the document's namespace: absolute http(s), without fragment, query or trailing `/`."},"document_metadata":{"type":"string","description":"Title, authors, date, … recorded in the facts graph with the extracted triples."},"max_cost_eur":{"type":"string","description":"Most the job may cost, in EUR: held from your balance, and the run stops there. Unset, the hold comes from the estimate. It must exceed the job's fees."}}}},"application/json":{"schema":{"type":"object","description":"The document itself, as one JSON object; keys that name an option are read as options too.","properties":{"render_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What to render: `ontology`, `facts` or `ontology_and_facts`.","title":"Render Mode"},"ontology_context_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"How the ontology context is chosen: `selected_single_ontology`, `selected_vector_search_ontology` or `fixed_single_ontology`; the deployment may allow fewer (`GET /policy`).","title":"Ontology Context Mode"},"max_visits":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Retries of a render that failed outright, at least 1; the deployment may cap it.","title":"Max Visits"},"ontology_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free text guiding the ontology step.","title":"Ontology User Instruction"},"facts_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free text guiding the facts step.","title":"Facts User Instruction"},"ontology_selection_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free text guiding which ontology is selected.","title":"Ontology Selection User Instruction"},"ontology_context_fixed_ontology_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The ontology to use (`GET /ontologies`); setting it selects `fixed_single_ontology`.","title":"Ontology Context Fixed Ontology Id"},"target_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Only these sections: a comma-separated list or a JSON array.","title":"Target Sections"},"exclude_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Skip these sections: a comma-separated list or a JSON array.","title":"Exclude Sections"},"summarize_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Summarize these sections: a comma-separated list or a JSON array.","title":"Summarize Sections"},"summary_max_sentences":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Sentences per section summary, at least 1.","title":"Summary Max Sentences"},"document_type_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the document is, e.g. `journal article`.","title":"Document Type Hint"},"section_schema_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Section schema to classify with, e.g. `academic`.","title":"Section Schema Id"},"head_chunks":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Process only the first N content units.","title":"Head Chunks"},"strip_provenance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Leave per-fact provenance out of the facts graph.","title":"Strip Provenance"},"current_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"IRI stem for the document's namespace: absolute http(s), without fragment, query or trailing `/`.","title":"Current Domain"},"document_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"Title, authors, date, … recorded in the facts graph with the extracted triples.","title":"Document Metadata"},"max_cost_eur":{"anyOf":[{"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","type":"string"},{"type":"null"}],"description":"Most the job may cost, in EUR: held from your balance, and the run stops there. Unset, the hold comes from the estimate. It must exceed the job's fees.","title":"Max Cost Eur"}},"additionalProperties":true},"example":{"text":"Perovskite solar cells reach 25% efficiency.","render_mode":"facts"}}}}}},"/jobs/{job_id}/rerun":{"post":{"tags":["Submit"],"summary":"Run a job again on its kept document","description":"Queue a new job over a finished job's kept converted document, with the\nfirst run's options and any you change here. Nothing is uploaded or\nconverted again, so there is no conversion fee, and the document's entity\nIRIs are the first run's: the two runs' facts can be compared. Each run\nwrites its own graph.\n\nThe document is kept only while the job's project keeps documents\n(``PATCH /projects/{slug}`` ``keep_documents``); otherwise 409\n``not_kept``.","operationId":"rerun_job_jobs__job_id__rerun_post","security":[{"Bearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RerunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitResponse"}}}},"400":{"description":"An option this deployment does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"402":{"description":"`insufficient_balance`: the hold does not fit your balance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"description":"`terms_not_accepted`: accept the current terms of service first (`POST /me/terms`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such job of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`not_kept`: the job's converted document was not kept; or `plan_limit`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"`queue_full`, or too many submissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`pricing_unconfigured`. `waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/process/estimate":{"post":{"tags":["Submit"],"summary":"Estimate a submission","description":"What ``POST /process`` (or ``/process_unit``) with this same request would\ncost, per document and in total, and the holds it would reserve from your\nbalance. Nothing is queued or stored. The estimate counts the text in your\nfiles; each run is charged for the tokens it actually uses, and stops at\nits hold.","operationId":"estimate_process_process_estimate_post","security":[{"Bearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateResponse"}}}},"400":{"description":"An unknown or invalid option, a missing file, or an option the deployment does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`plan_limit`: a job would pass a limit of your plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"411":{"description":"The upload has no `Content-Length`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"413":{"description":"The upload, or a document's text, is larger than one job takes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"415":{"description":"A file type or content that is not accepted (`GET /policy`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"`max_cost_below_fee`: `max_cost_eur` does not cover the job's fees; `too_many_files`: more files than one request takes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`pricing_unconfigured`: prices are not set yet. `waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"parameters":[{"name":"project","in":"query","required":false,"schema":{"type":"string","description":"The project to write to (slug); your default one if omitted."}},{"name":"title","in":"query","required":false,"schema":{"type":"string","description":"A name for the jobs."}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"A document to process; repeat the field for several, one job each. Any field name works."},"project":{"type":"string","description":"The project to write to (slug); your default one if omitted."},"title":{"type":"string","description":"A name for the jobs."},"render_mode":{"type":"string","description":"What to render: `ontology`, `facts` or `ontology_and_facts`."},"ontology_context_mode":{"type":"string","description":"How the ontology context is chosen: `selected_single_ontology`, `selected_vector_search_ontology` or `fixed_single_ontology`; the deployment may allow fewer (`GET /policy`)."},"max_visits":{"type":"string","description":"Retries of a render that failed outright, at least 1; the deployment may cap it."},"ontology_user_instruction":{"type":"string","description":"Free text guiding the ontology step."},"facts_user_instruction":{"type":"string","description":"Free text guiding the facts step."},"ontology_selection_user_instruction":{"type":"string","description":"Free text guiding which ontology is selected."},"ontology_context_fixed_ontology_id":{"type":"string","description":"The ontology to use (`GET /ontologies`); setting it selects `fixed_single_ontology`."},"target_sections":{"type":"string","description":"Only these sections: a comma-separated list or a JSON array."},"exclude_sections":{"type":"string","description":"Skip these sections: a comma-separated list or a JSON array."},"summarize_sections":{"type":"string","description":"Summarize these sections: a comma-separated list or a JSON array."},"summary_max_sentences":{"type":"string","description":"Sentences per section summary, at least 1."},"document_type_hint":{"type":"string","description":"What the document is, e.g. `journal article`."},"section_schema_id":{"type":"string","description":"Section schema to classify with, e.g. `academic`."},"head_chunks":{"type":"string","description":"Process only the first N content units."},"strip_provenance":{"type":"string","description":"Leave per-fact provenance out of the facts graph."},"current_domain":{"type":"string","description":"IRI stem for the document's namespace: absolute http(s), without fragment, query or trailing `/`."},"document_metadata":{"type":"string","description":"Title, authors, date, … recorded in the facts graph with the extracted triples."},"max_cost_eur":{"type":"string","description":"Most the job may cost, in EUR: held from your balance, and the run stops there. Unset, the hold comes from the estimate. It must exceed the job's fees."}}}},"application/json":{"schema":{"type":"object","description":"The document itself, as one JSON object; keys that name an option are read as options too.","properties":{"render_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What to render: `ontology`, `facts` or `ontology_and_facts`.","title":"Render Mode"},"ontology_context_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"How the ontology context is chosen: `selected_single_ontology`, `selected_vector_search_ontology` or `fixed_single_ontology`; the deployment may allow fewer (`GET /policy`).","title":"Ontology Context Mode"},"max_visits":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Retries of a render that failed outright, at least 1; the deployment may cap it.","title":"Max Visits"},"ontology_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free text guiding the ontology step.","title":"Ontology User Instruction"},"facts_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free text guiding the facts step.","title":"Facts User Instruction"},"ontology_selection_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free text guiding which ontology is selected.","title":"Ontology Selection User Instruction"},"ontology_context_fixed_ontology_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The ontology to use (`GET /ontologies`); setting it selects `fixed_single_ontology`.","title":"Ontology Context Fixed Ontology Id"},"target_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Only these sections: a comma-separated list or a JSON array.","title":"Target Sections"},"exclude_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Skip these sections: a comma-separated list or a JSON array.","title":"Exclude Sections"},"summarize_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Summarize these sections: a comma-separated list or a JSON array.","title":"Summarize Sections"},"summary_max_sentences":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Sentences per section summary, at least 1.","title":"Summary Max Sentences"},"document_type_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the document is, e.g. `journal article`.","title":"Document Type Hint"},"section_schema_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Section schema to classify with, e.g. `academic`.","title":"Section Schema Id"},"head_chunks":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Process only the first N content units.","title":"Head Chunks"},"strip_provenance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Leave per-fact provenance out of the facts graph.","title":"Strip Provenance"},"current_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"IRI stem for the document's namespace: absolute http(s), without fragment, query or trailing `/`.","title":"Current Domain"},"document_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"Title, authors, date, … recorded in the facts graph with the extracted triples.","title":"Document Metadata"},"max_cost_eur":{"anyOf":[{"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","type":"string"},{"type":"null"}],"description":"Most the job may cost, in EUR: held from your balance, and the run stops there. Unset, the hold comes from the estimate. It must exceed the job's fees.","title":"Max Cost Eur"}},"additionalProperties":true},"example":{"text":"Perovskite solar cells reach 25% efficiency.","render_mode":"facts"}}}}}},"/process_unit/estimate":{"post":{"tags":["Submit"],"summary":"Estimate a single-unit submission","description":"What ``POST /process`` (or ``/process_unit``) with this same request would\ncost, per document and in total, and the holds it would reserve from your\nbalance. Nothing is queued or stored. The estimate counts the text in your\nfiles; each run is charged for the tokens it actually uses, and stops at\nits hold.","operationId":"estimate_process_process_unit_estimate_post","security":[{"Bearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateResponse"}}}},"400":{"description":"An unknown or invalid option, a missing file, or an option the deployment does not allow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`plan_limit`: a job would pass a limit of your plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"411":{"description":"The upload has no `Content-Length`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"413":{"description":"The upload, or a document's text, is larger than one job takes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"415":{"description":"A file type or content that is not accepted (`GET /policy`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"`max_cost_below_fee`: `max_cost_eur` does not cover the job's fees; `too_many_files`: more files than one request takes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"description":"Too many requests; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`pricing_unconfigured`: prices are not set yet. `waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"parameters":[{"name":"project","in":"query","required":false,"schema":{"type":"string","description":"The project to write to (slug); your default one if omitted."}},{"name":"title","in":"query","required":false,"schema":{"type":"string","description":"A name for the jobs."}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"A document to process; repeat the field for several, one job each. Any field name works."},"project":{"type":"string","description":"The project to write to (slug); your default one if omitted."},"title":{"type":"string","description":"A name for the jobs."},"render_mode":{"type":"string","description":"What to render: `ontology`, `facts` or `ontology_and_facts`."},"ontology_context_mode":{"type":"string","description":"How the ontology context is chosen: `selected_single_ontology`, `selected_vector_search_ontology` or `fixed_single_ontology`; the deployment may allow fewer (`GET /policy`)."},"max_visits":{"type":"string","description":"Retries of a render that failed outright, at least 1; the deployment may cap it."},"ontology_user_instruction":{"type":"string","description":"Free text guiding the ontology step."},"facts_user_instruction":{"type":"string","description":"Free text guiding the facts step."},"ontology_selection_user_instruction":{"type":"string","description":"Free text guiding which ontology is selected."},"ontology_context_fixed_ontology_id":{"type":"string","description":"The ontology to use (`GET /ontologies`); setting it selects `fixed_single_ontology`."},"target_sections":{"type":"string","description":"Only these sections: a comma-separated list or a JSON array."},"exclude_sections":{"type":"string","description":"Skip these sections: a comma-separated list or a JSON array."},"summarize_sections":{"type":"string","description":"Summarize these sections: a comma-separated list or a JSON array."},"summary_max_sentences":{"type":"string","description":"Sentences per section summary, at least 1."},"document_type_hint":{"type":"string","description":"What the document is, e.g. `journal article`."},"section_schema_id":{"type":"string","description":"Section schema to classify with, e.g. `academic`."},"head_chunks":{"type":"string","description":"Process only the first N content units."},"strip_provenance":{"type":"string","description":"Leave per-fact provenance out of the facts graph."},"current_domain":{"type":"string","description":"IRI stem for the document's namespace: absolute http(s), without fragment, query or trailing `/`."},"document_metadata":{"type":"string","description":"Title, authors, date, … recorded in the facts graph with the extracted triples."},"max_cost_eur":{"type":"string","description":"Most the job may cost, in EUR: held from your balance, and the run stops there. Unset, the hold comes from the estimate. It must exceed the job's fees."}}}},"application/json":{"schema":{"type":"object","description":"The document itself, as one JSON object; keys that name an option are read as options too.","properties":{"render_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What to render: `ontology`, `facts` or `ontology_and_facts`.","title":"Render Mode"},"ontology_context_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"How the ontology context is chosen: `selected_single_ontology`, `selected_vector_search_ontology` or `fixed_single_ontology`; the deployment may allow fewer (`GET /policy`).","title":"Ontology Context Mode"},"max_visits":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Retries of a render that failed outright, at least 1; the deployment may cap it.","title":"Max Visits"},"ontology_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free text guiding the ontology step.","title":"Ontology User Instruction"},"facts_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free text guiding the facts step.","title":"Facts User Instruction"},"ontology_selection_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free text guiding which ontology is selected.","title":"Ontology Selection User Instruction"},"ontology_context_fixed_ontology_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The ontology to use (`GET /ontologies`); setting it selects `fixed_single_ontology`.","title":"Ontology Context Fixed Ontology Id"},"target_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Only these sections: a comma-separated list or a JSON array.","title":"Target Sections"},"exclude_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Skip these sections: a comma-separated list or a JSON array.","title":"Exclude Sections"},"summarize_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Summarize these sections: a comma-separated list or a JSON array.","title":"Summarize Sections"},"summary_max_sentences":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Sentences per section summary, at least 1.","title":"Summary Max Sentences"},"document_type_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the document is, e.g. `journal article`.","title":"Document Type Hint"},"section_schema_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Section schema to classify with, e.g. `academic`.","title":"Section Schema Id"},"head_chunks":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Process only the first N content units.","title":"Head Chunks"},"strip_provenance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Leave per-fact provenance out of the facts graph.","title":"Strip Provenance"},"current_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"IRI stem for the document's namespace: absolute http(s), without fragment, query or trailing `/`.","title":"Current Domain"},"document_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"Title, authors, date, … recorded in the facts graph with the extracted triples.","title":"Document Metadata"},"max_cost_eur":{"anyOf":[{"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","type":"string"},{"type":"null"}],"description":"Most the job may cost, in EUR: held from your balance, and the run stops there. Unset, the hold comes from the estimate. It must exceed the job's fees.","title":"Max Cost Eur"}},"additionalProperties":true},"example":{"text":"Perovskite solar cells reach 25% efficiency.","render_mode":"facts"}}}}}},"/health":{"get":{"tags":["System"],"summary":"Check that the API is up","description":"Answers ``{\"status\": \"ok\"}`` while the API runs; needs no credentials.","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthCheckResult"}}}}},"security":[]}},"/billing/rates":{"get":{"tags":["Billing"],"summary":"List prices and fees","description":"Token prices a job submitted now pays, per kind, for the deployment's\nmodel, and the platform fees.","operationId":"get_current_rates_billing_rates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentBillingRates"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]}},"/billing/transactions":{"get":{"tags":["Billing"],"summary":"List your ledger entries","description":"Your ledger entries, oldest first: charges negative, credits positive.","operationId":"get_user_transactions_billing_transactions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TransactionResponse"},"type":"array","title":"Response Get User Transactions Billing Transactions Get"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]}},"/billing/balance":{"get":{"tags":["Billing"],"summary":"Read your balance","description":"Your balance in EUR: the sum of your ledger, before holds.","operationId":"get_user_balance_billing_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Response Get User Balance Billing Balance Get"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]}},"/billing/statement":{"get":{"tags":["Billing"],"summary":"Read your statement","description":"Your ledger grouped by job, newest first, with credits as their own lines.","operationId":"get_statement_billing_statement_get","security":[{"Bearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Statement"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/billing/credit-requests":{"get":{"tags":["Billing"],"summary":"List your credit requests","description":"Your credit requests, newest first.","operationId":"my_credit_requests_billing_credit_requests_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CreditRequestResponse"},"type":"array","title":"Response My Credit Requests Billing Credit Requests Get"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]},"post":{"tags":["Billing"],"summary":"Ask for credit","description":"Ask the operators for credit; one open request at a time.","operationId":"request_credit_billing_credit_requests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditRequestCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditRequestResponse"}}}},"400":{"description":"The amount is not between 0 and 10,000 EUR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"You already have an open request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]}},"/me/attribution":{"post":{"tags":["Account"],"summary":"Record where you came from","description":"Record the campaign of the link that brought you to OntoCast. It is kept\nonce, on the day you signed up; later calls change nothing.","operationId":"record_attribution_me_attribution_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attribution"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]}},"/me/plan":{"get":{"tags":["Account"],"summary":"Read your plan, limits and usage","description":"Your plan, its limits, and what your account stores against them.","operationId":"get_my_plan_me_plan_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]}},"/me/api-key":{"post":{"tags":["Account"],"summary":"Create or replace your API key","description":"Create or replace the caller's API key; it is shown only in this response.","operationId":"rotate_my_api_key_me_api_key_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyResponse"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]},"delete":{"tags":["Account"],"summary":"Revoke your API key","description":"Revoke the caller's API key; sign-in through the console keeps working.","operationId":"revoke_my_api_key_me_api_key_delete","responses":{"204":{"description":"Successful Response"},"400":{"description":"The account signs in only with its API key; replace it instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]}},"/policy":{"get":{"tags":["Submit"],"summary":"Read the deployment's options","description":"Deployment extraction policy visible to users: which ontology-context modes\nthey may pick, the ``max_visits`` cap, the defaults a job runs with, and the\naccepted upload types and sizes, for documents and for ontologies. Contains no secrets or operator-only knobs.","operationId":"get_policy_policy_get","security":[{"Bearer":[]}],"parameters":[{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; its defaults join effective_defaults.","title":"Project"},"description":"Project slug; its defaults join effective_defaults."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyResponse"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/me/settings":{"get":{"tags":["Account"],"summary":"Read your saved defaults","description":"Return the caller's saved extraction defaults (empty = none set).","operationId":"get_my_settings_me_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserExtractionSettings-Output"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]},"patch":{"tags":["Account"],"summary":"Change your saved defaults","description":"Merge the provided fields into the caller's saved extraction defaults.\n\nOnly the settings a user may change are accepted; any other key is rejected\n(HTTP 422). Fields left out keep their saved value; a field sent as ``null``\nclears it.","operationId":"update_my_settings_me_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserExtractionSettings-Input"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserExtractionSettings-Output"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"Bearer":[]}]}},"/jobs/{job_id}/result":{"get":{"tags":["Jobs"],"summary":"Download a job's facts or ontologies","description":"Download a finished job's facts, or the ontologies it used or updated, as\nTurtle, N-Triples, N-Quads, TriG or JSON-LD. Per-triple provenance is RDF\nreification (``rdf:Statement``) unless ``profile=native``. ``csv`` and\n``neo4j`` are zips of tables without the provenance.","operationId":"download_job_result_jobs__job_id__result_get","security":[{"Bearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"graph","in":"query","required":false,"schema":{"enum":["facts","ontology"],"type":"string","description":"The job's facts, or the ontologies it used or updated.","default":"facts","title":"Graph"},"description":"The job's facts, or the ontologies it used or updated."},{"name":"format","in":"query","required":false,"schema":{"enum":["turtle","ntriples","nquads","trig","jsonld","csv","neo4j"],"type":"string","description":"RDF serialization, or `csv` (a zip of one CSV per class and links) or `neo4j` (a Neo4j import zip).","default":"turtle","title":"Format"},"description":"RDF serialization, or `csv` (a zip of one CSV per class and links) or `neo4j` (a Neo4j import zip)."},{"name":"profile","in":"query","required":false,"schema":{"enum":["classic","native"],"type":"string","description":"classic: RDF 1.1 reification; native: RDF 1.2 as stored.","default":"classic","title":"Profile"},"description":"classic: RDF 1.1 reification; native: RDF 1.2 as stored."}],"responses":{"200":{"description":"The graph, in the format asked for; a zip for `csv` and `neo4j`.","content":{"text/turtle":{},"application/n-triples":{},"application/ld+json":{},"application/n-quads":{},"application/trig":{},"application/zip":{}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such job of yours, or it produced no such graph.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"The job has not finished.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"410":{"description":"`results_removed` or `ontology_version_removed`: what it wrote or read was deleted since.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"413":{"description":"`too_large`: `csv` and `neo4j` take at most `max_graph_triples`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/jobs/{job_id}/compare":{"get":{"tags":["Jobs"],"summary":"Compare the facts of two runs","description":"Entities added, removed and changed from this job's facts to those of\nthe job in ``with``, provenance excluded.","operationId":"compare_jobs_jobs__job_id__compare_get","security":[{"Bearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"with","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"The job to compare against.","title":"With"},"description":"The job to compare against."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunComparison"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"`job_not_found`: no such job of yours; `facts_not_found`: it extracted no facts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`job_not_complete`: a job has not completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"410":{"description":"`results_removed`: a job's facts were deleted since.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"413":{"description":"`graph_too_large`: a graph exceeds `max_graph_triples`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"`same_job`: both ids are the same job.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"502":{"description":"`store_failed`: the triple store failed; retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/shapes":{"get":{"tags":["Shapes"],"summary":"List a project's shapes documents","description":"List the SHACL shapes documents of a project.","operationId":"list_shapes_shapes_get","security":[{"Bearer":[]}],"parameters":[{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; your default project if omitted.","title":"Project"},"description":"Project slug; your default project if omitted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ShapesDocument"},"title":"Response List Shapes Shapes Get"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such project of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}},"post":{"tags":["Shapes"],"summary":"Upload a shapes document","description":"Upload a SHACL shapes document (Turtle, N-Triples, JSON-LD or RDF/XML)\ninto a project; an upload under the same name replaces it. A 409\n``plan_limit`` names the plan limit the upload would pass.","operationId":"upload_shapes_shapes_post","security":[{"Bearer":[]}],"parameters":[{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; your default project if omitted.","title":"Project"},"description":"Project slug; your default project if omitted."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_shapes_shapes_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShapesUpload"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"description":"`terms_not_accepted`: accept the current terms of service first (`POST /me/terms`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"description":"`plan_limit`: the upload would pass a limit of your plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"413":{"description":"The file is too large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"415":{"description":"A file type or content that is not accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"`no_shapes`: the file declares no SHACL shapes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}},"delete":{"tags":["Shapes"],"summary":"Delete a shapes document","description":"Delete one shapes document (named graph) from a project.","operationId":"delete_shapes_shapes_delete","security":[{"Bearer":[]}],"parameters":[{"name":"graph","in":"query","required":true,"schema":{"type":"string","title":"Graph"}},{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; your default project if omitted.","title":"Project"},"description":"Project slug; your default project if omitted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deleted"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such project of yours.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/shapes/turtle":{"get":{"tags":["Shapes"],"summary":"Download a shapes document","description":"One shapes document of a project, as Turtle.","operationId":"download_shapes_shapes_turtle_get","security":[{"Bearer":[]}],"parameters":[{"name":"graph","in":"query","required":true,"schema":{"type":"string","title":"Graph"}},{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project slug; your default project if omitted.","title":"Project"},"description":"Project slug; your default project if omitted."}],"responses":{"200":{"description":"The shapes document as Turtle.","content":{"text/turtle":{}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such project of yours, or no such document.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"502":{"description":"The triple store failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"503":{"description":"`waking`: the platform is starting up; retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}}},"components":{"schemas":{"AccountKind":{"type":"string","enum":["customer","promo","internal"],"title":"AccountKind","description":"Who an account is, for accounting: a paying customer, a promotional\naccount, or the platform's own."},"AccountResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"status":{"$ref":"#/components/schemas/UserStatus"},"is_active":{"type":"boolean","title":"Is Active"},"max_concurrent_jobs":{"type":"integer","title":"Max Concurrent Jobs"},"max_queued_jobs":{"type":"integer","title":"Max Queued Jobs","default":20},"created_at":{"type":"string","format":"date-time","title":"Created At"},"has_api_key":{"type":"boolean","title":"Has Api Key"},"signs_in_with_provider":{"type":"boolean","title":"Signs In With Provider"},"balance_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Balance Eur"},"available_eur":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Available Eur"},"role":{"$ref":"#/components/schemas/UserRole","default":"user"},"plan":{"type":"string","title":"Plan","default":"starter"},"limit_overrides":{"additionalProperties":{"type":"integer"},"type":"object","title":"Limit Overrides","default":{}},"account_kind":{"$ref":"#/components/schemas/AccountKind","default":"promo"},"utm_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Source"},"utm_campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Campaign"},"terms":{"$ref":"#/components/schemas/TermsStatus"}},"type":"object","required":["id","email","status","is_active","max_concurrent_jobs","created_at","has_api_key","signs_in_with_provider","balance_eur","terms"],"title":"AccountResponse","description":"A user account, without credentials."},"ApiKeyResponse":{"properties":{"api_key":{"type":"string","title":"Api Key"}},"type":"object","required":["api_key"],"title":"ApiKeyResponse"},"Attribution":{"properties":{"source":{"type":"string","maxLength":64,"title":"Source","examples":["linkedin"]},"campaign":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Campaign","examples":["oc-w1"]}},"type":"object","required":["source"],"title":"Attribution","description":"The ``utm_source`` / ``utm_campaign`` of the link that brought the user."},"BillingSku":{"type":"string","enum":["tokens_input","tokens_cache_read","tokens_cache_write","tokens_output","tokens_reasoning","tokens_replayed","text_kchars","pages_converted","refund","chars_sent","chars_received","llm_call","triple_generated","operation_count","credit_purchase","credit_promo","credit_starter"],"title":"BillingSku","description":"The units a job is charged for, plus credit added to an account.\n\nJobs are charged by LLM tokens, priced per model and kind, plus two\nplatform fees: per thousand characters of text and per converted page\n(``ontocast_common.billing``). The character, call, triple and operation\nSKUs are no longer charged; they stay so older ledger rows remain readable."},"Body_delete_me_me_delete":{"properties":{"confirm_email":{"type":"string","title":"Confirm Email","default":""}},"type":"object","title":"Body_delete_me_me_delete"},"Body_delete_project_projects__slug__delete":{"properties":{"confirm":{"type":"string","title":"Confirm","default":""}},"type":"object","title":"Body_delete_project_projects__slug__delete"},"Body_upload_ontology_ontologies_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The id of a new ontology; else the file's prefix, IRI or name. Ignored when the file is the next version of a stored one."}},"type":"object","required":["file"],"title":"Body_upload_ontology_ontologies_post"},"Body_upload_shapes_shapes_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["file"],"title":"Body_upload_shapes_shapes_post"},"Counts":{"properties":{"added":{"type":"integer","title":"Added"},"removed":{"type":"integer","title":"Removed"},"changed":{"type":"integer","title":"Changed"},"unchanged":{"type":"integer","title":"Unchanged"},"blank_triples_a":{"type":"integer","title":"Blank Triples A"},"blank_triples_b":{"type":"integer","title":"Blank Triples B"}},"type":"object","required":["added","removed","changed","unchanged","blank_triples_a","blank_triples_b"],"title":"Counts","description":"Entities by outcome, and the triples through blank nodes of each run\n(counted, not compared)."},"CreditPurpose":{"type":"string","enum":["trial","buy","invoice"],"title":"CreditPurpose","description":"What a user asks credit for."},"CreditRequestCreate":{"properties":{"amount_eur":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount Eur"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"},"purpose":{"anyOf":[{"$ref":"#/components/schemas/CreditPurpose"},{"type":"null"}]}},"type":"object","required":["amount_eur"],"title":"CreditRequestCreate"},"CreditRequestResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"amount_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount Eur"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"purpose":{"anyOf":[{"$ref":"#/components/schemas/CreditPurpose"},{"type":"null"}]},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"}},"type":"object","required":["id","user_id","amount_eur","status","created_at"],"title":"CreditRequestResponse"},"CurrentBillingRates":{"properties":{"model":{"type":"string","title":"Model"},"prices":{"items":{"$ref":"#/components/schemas/TokenPrice"},"type":"array","title":"Prices"},"fees":{"items":{"$ref":"#/components/schemas/FeePrice"},"type":"array","title":"Fees","default":[]},"configured":{"type":"boolean","title":"Configured"}},"type":"object","required":["model","prices","configured"],"title":"CurrentBillingRates","description":"What jobs are charged now: the deployment's model, its token prices and\nthe platform fees."},"Deleted":{"properties":{"deleted":{"type":"string","title":"Deleted"}},"type":"object","required":["deleted"],"title":"Deleted","description":"What a delete removed: a job id, a project slug or a shapes graph."},"DocumentEstimate":{"properties":{"model":{"type":"string","title":"Model"},"render_mode":{"type":"string","title":"Render Mode"},"input_chars":{"type":"integer","title":"Input Chars"},"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"pages_converted":{"type":"integer","title":"Pages Converted"},"fee_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Fee Eur"},"estimate_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Estimate Eur"},"high_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"High Eur"},"hold_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Hold Eur"},"filename":{"type":"string","title":"Filename"}},"type":"object","required":["model","render_mode","input_chars","input_tokens","output_tokens","pages_converted","fee_eur","estimate_eur","high_eur","hold_eur","filename"],"title":"DocumentEstimate","description":"What one document's job is expected to cost, and what it would reserve.\n\n``pages_converted`` and ``fee_eur`` are the PDF pages and images converted\nand the platform fees included in the figures."},"EntityChange":{"properties":{"iri":{"type":"string","title":"Iri"},"status":{"type":"string","enum":["added","removed","changed"],"title":"Status"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"types":{"items":{"type":"string"},"type":"array","title":"Types"},"added":{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array","title":"Added"},"removed":{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array","title":"Removed"}},"type":"object","required":["iri","status","label","types","added","removed"],"title":"EntityChange","description":"An entity that exists in one run only, or whose triples differ."},"ErasureResult":{"properties":{"projects":{"type":"integer","title":"Projects"},"jobs":{"type":"integer","title":"Jobs"},"manual_steps":{"items":{"type":"string"},"type":"array","title":"Manual Steps","default":[]}},"type":"object","required":["projects","jobs"],"title":"ErasureResult","description":"What was erased, and what operators must still remove by hand."},"ErrorBody":{"properties":{"detail":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"type":"string"},{"items":{"additionalProperties":true,"type":"object"},"type":"array"}],"title":"Detail","description":"A `Problem` where a client can act on the case, a message, or a list of invalid fields."}},"type":"object","required":["detail"],"title":"ErrorBody","description":"Every error answers ``{\"detail\": …}``."},"EstimateResponse":{"properties":{"estimates":{"items":{"$ref":"#/components/schemas/DocumentEstimate"},"type":"array","title":"Estimates"},"total":{"$ref":"#/components/schemas/EstimateTotal"},"available_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Available Eur"}},"type":"object","required":["estimates","total","available_eur"],"title":"EstimateResponse","description":"One estimate per document, in upload order, and their sum."},"EstimateTotal":{"properties":{"fee_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Fee Eur"},"estimate_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Estimate Eur"},"high_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"High Eur"},"hold_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Hold Eur"}},"type":"object","required":["fee_eur","estimate_eur","high_eur","hold_eur"],"title":"EstimateTotal","description":"The request's jobs together."},"FactFlagCreate":{"properties":{"subject":{"type":"string","maxLength":2000,"minLength":1,"title":"Subject","description":"Subject IRI."},"predicate":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Predicate","description":"None flags the entity itself."},"object":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Object","description":"An IRI or a literal's value."},"object_kind":{"anyOf":[{"type":"string","enum":["iri","literal","blank"]},{"type":"null"}],"title":"Object Kind"},"datatype":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Datatype"},"lang":{"anyOf":[{"type":"string","maxLength":35},{"type":"null"}],"title":"Lang"},"message":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Message"}},"type":"object","required":["subject"],"title":"FactFlagCreate"},"FactRef":{"properties":{"subject":{"type":"string","maxLength":2000,"minLength":1,"title":"Subject","description":"Subject IRI."},"predicate":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Predicate","description":"None flags the entity itself."},"object":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Object","description":"An IRI or a literal's value."},"object_kind":{"anyOf":[{"type":"string","enum":["iri","literal","blank"]},{"type":"null"}],"title":"Object Kind"},"datatype":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Datatype"},"lang":{"anyOf":[{"type":"string","maxLength":35},{"type":"null"}],"title":"Lang"}},"type":"object","required":["subject"],"title":"FactRef","description":"One fact of a job's graph, or an entity as a whole (no predicate)."},"FeePrice":{"properties":{"kind":{"type":"string","title":"Kind"},"eur_per_unit":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Eur Per Unit"}},"type":"object","required":["kind","eur_per_unit"],"title":"FeePrice","description":"EUR per unit of one platform fee: ``text_kchars`` (1,000 characters of\ntext) or ``pages_converted`` (one PDF page or image)."},"FeedbackKind":{"type":"string","enum":["job","message","fact"],"title":"FeedbackKind","description":"What a feedback row is about."},"FeedbackResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"$ref":"#/components/schemas/FeedbackKind"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"rating":{"anyOf":[{"type":"string","enum":["up","down"]},{"type":"null"}],"title":"Rating"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"fact":{"anyOf":[{"$ref":"#/components/schemas/FactRef"},{"type":"null"}]},"page":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","kind","created_at","updated_at"],"title":"FeedbackResponse"},"GalleryCard":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"group":{"type":"string","title":"Group"},"description":{"type":"string","title":"Description"},"licence":{"type":"string","title":"Licence"},"licence_url":{"type":"string","title":"Licence Url"},"attribution":{"type":"string","title":"Attribution"},"homepage":{"type":"string","title":"Homepage"},"source_url":{"type":"string","title":"Source Url"},"version":{"type":"string","title":"Version"},"ontology_iri":{"type":"string","title":"Ontology Iri"},"classes":{"type":"integer","title":"Classes"},"properties":{"type":"integer","title":"Properties"},"triples":{"type":"integer","title":"Triples"},"fits_plan":{"type":"boolean","title":"Fits Plan"},"in_project":{"type":"boolean","title":"In Project"}},"type":"object","required":["id","title","group","description","licence","licence_url","attribution","homepage","source_url","version","ontology_iri","classes","properties","triples","fits_plan","in_project"],"title":"GalleryCard","description":"One gallery entry, as the caller's plan and project see it."},"GalleryListing":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/GalleryCard"},"type":"array","title":"Entries"}},"type":"object","required":["entries"],"title":"GalleryListing","description":"The gallery, by group and then title."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HeadVersion":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"modified":{"type":"string","format":"date-time","title":"Modified"},"triples":{"type":"integer","title":"Triples"},"classes":{"type":"integer","title":"Classes"},"properties":{"type":"integer","title":"Properties"}},"type":"object","required":["key","label","modified","triples","classes","properties"],"title":"HeadVersion","description":"A version nothing newer derives from."},"HealthCheckResult":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"HealthCheckResult","description":"Used for health check."},"IngestionJobStatusResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"filename":{"type":"string","title":"Filename","default":""},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"project":{"type":"string","title":"Project","default":"default"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"status":{"$ref":"#/components/schemas/JobStatus"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"units_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Units Total"},"pipeline_mode":{"type":"string","title":"Pipeline Mode","default":"full"},"options":{"additionalProperties":true,"type":"object","title":"Options","default":{}},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"ontology_triples":{"type":"integer","title":"Ontology Triples","default":0},"facts_triples":{"type":"integer","title":"Facts Triples","default":0},"graph_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Graph Uri"},"kept":{"type":"boolean","title":"Kept","default":false},"rerun_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rerun Of"},"outputs":{"additionalProperties":true,"type":"object","title":"Outputs","default":{}},"ontology_versions":{"items":{"$ref":"#/components/schemas/JobOntologyVersion"},"type":"array","title":"Ontology Versions","default":[]},"estimate_eur":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Estimate Eur"},"hold_eur":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Hold Eur"},"charged_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Charged Eur","default":"0"},"charges_closed":{"type":"boolean","title":"Charges Closed","default":false},"sample":{"type":"boolean","title":"Sample","default":false},"wait":{"anyOf":[{"$ref":"#/components/schemas/QueueWait"},{"type":"null"}]},"progress":{"anyOf":[{"$ref":"#/components/schemas/JobProgress"},{"type":"null"}]}},"type":"object","required":["job_id","created_at","status","updated_at"],"title":"IngestionJobStatusResponse","description":"A job as its owner sees it."},"JobAbortResult":{"properties":{"aborted":{"type":"boolean","title":"Aborted"}},"type":"object","required":["aborted"],"title":"JobAbortResult"},"JobFeedback":{"properties":{"reaction":{"anyOf":[{"$ref":"#/components/schemas/FeedbackResponse"},{"type":"null"}]},"facts":{"items":{"$ref":"#/components/schemas/FeedbackResponse"},"type":"array","title":"Facts"}},"type":"object","required":["facts"],"title":"JobFeedback","description":"Your reaction to a job and the facts of it you flagged."},"JobOntologyVersion":{"properties":{"ontology_id":{"type":"string","title":"Ontology Id"},"iri":{"type":"string","title":"Iri"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"role":{"type":"string","enum":["created","updated","read"],"title":"Role"},"exists":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Exists"}},"type":"object","required":["ontology_id","iri","key","label","role"],"title":"JobOntologyVersion","description":"An ontology version a job created, updated or read."},"JobProgress":{"properties":{"model_calls":{"type":"integer","title":"Model Calls","description":"Model calls that returned."},"input_tokens":{"type":"integer","title":"Input Tokens","description":"Input tokens of those calls, prompt-cache reads and writes included."},"output_tokens":{"type":"integer","title":"Output Tokens","description":"Output tokens of those calls, reasoning included."},"estimated_eur":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Estimated Eur","description":"An estimate of the model cost so far, not a charge: the tokens used at the job's prices, up to its hold, without fees. The job is charged when it ends (`charged_eur`). Null when its model has no price."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"When the job last reported."}},"type":"object","required":["model_calls","input_tokens","output_tokens","estimated_eur","updated_at"],"title":"JobProgress","description":"What a running job has used so far, every model together."},"JobReaction":{"properties":{"rating":{"type":"string","enum":["up","down"],"title":"Rating"},"message":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Message"}},"type":"object","required":["rating"],"title":"JobReaction"},"JobStatus":{"type":"string","enum":["IN_QUEUE","STARTING","PROCESSING","COMPLETE","ERROR","ABORTED"],"title":"JobStatus","description":"Lifecycle of an ``IngestionJob``; the only status vocabulary the API reports."},"JobUnit":{"properties":{"iri":{"type":"string","title":"Iri"},"index":{"type":"integer","title":"Index"},"section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section"},"headings":{"items":{"type":"string"},"type":"array","title":"Headings","default":[]},"text":{"type":"string","title":"Text"}},"type":"object","required":["iri","index","text"],"title":"JobUnit","description":"One part of a job's document, as the run processed it."},"JobUnits":{"properties":{"units":{"items":{"$ref":"#/components/schemas/JobUnit"},"type":"array","title":"Units"}},"type":"object","required":["units"],"title":"JobUnits","description":"The text of each part a job processed, in document order."},"JobUpdate":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","title":"JobUpdate"},"MessageCreate":{"properties":{"message":{"type":"string","maxLength":2000,"minLength":1,"title":"Message"},"page":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Page","description":"The console page it was sent from."}},"type":"object","required":["message"],"title":"MessageCreate"},"OntologyDeleted":{"properties":{"deleted":{"type":"string","title":"Deleted"},"versions":{"type":"integer","title":"Versions"}},"type":"object","required":["deleted","versions"],"title":"OntologyDeleted","description":"A deleted ontology and how many versions it had."},"OntologyDetail":{"properties":{"ontology_id":{"type":"string","title":"Ontology Id"},"iri":{"type":"string","title":"Iri"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created":{"type":"string","format":"date-time","title":"Created"},"version_count":{"type":"integer","title":"Version Count"},"heads":{"items":{"$ref":"#/components/schemas/HeadVersion"},"type":"array","title":"Heads"},"diverged":{"type":"boolean","title":"Diverged"},"versions":{"items":{"$ref":"#/components/schemas/VersionEntry"},"type":"array","title":"Versions"}},"type":"object","required":["ontology_id","iri","title","description","created","version_count","heads","diverged","versions"],"title":"OntologyDetail","description":"An ontology with its whole version history, newest first."},"OntologyDiff":{"properties":{"ontology_id":{"type":"string","title":"Ontology Id"},"from_key":{"type":"string","title":"From Key"},"from_label":{"type":"string","title":"From Label"},"to_key":{"type":"string","title":"To Key"},"to_label":{"type":"string","title":"To Label"},"added":{"items":{"$ref":"#/components/schemas/TermChange"},"type":"array","title":"Added"},"removed":{"items":{"$ref":"#/components/schemas/TermChange"},"type":"array","title":"Removed"},"changed":{"items":{"$ref":"#/components/schemas/TermChange"},"type":"array","title":"Changed"},"triples":{"$ref":"#/components/schemas/TripleCounts"}},"type":"object","required":["ontology_id","from_key","from_label","to_key","to_label","added","removed","changed","triples"],"title":"OntologyDiff","description":"What changed from one version to another: terms added, removed or whose\nown triples changed, and triple counts."},"OntologySummary":{"properties":{"ontology_id":{"type":"string","title":"Ontology Id"},"iri":{"type":"string","title":"Iri"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created":{"type":"string","format":"date-time","title":"Created"},"version_count":{"type":"integer","title":"Version Count"},"heads":{"items":{"$ref":"#/components/schemas/HeadVersion"},"type":"array","title":"Heads"},"diverged":{"type":"boolean","title":"Diverged"}},"type":"object","required":["ontology_id","iri","title","description","created","version_count","heads","diverged"],"title":"OntologySummary","description":"One ontology of a project. ``diverged`` (several heads) means two runs\nextended the same version; it can be read, not extended, until merged."},"PlanLimits":{"properties":{"max_projects":{"type":"integer","minimum":1.0,"title":"Max Projects","description":"Live projects per account."},"max_ontologies_per_project":{"type":"integer","minimum":0.0,"title":"Max Ontologies Per Project","description":"Ontologies, and separately shapes graphs, per project."},"max_ontology_triples":{"type":"integer","minimum":1.0,"title":"Max Ontology Triples","description":"Triples in one ontology."},"max_stored_triples":{"type":"integer","minimum":0.0,"title":"Max Stored Triples","description":"Facts, ontology and shapes triples kept across projects."},"max_input_chars":{"type":"integer","minimum":1.0,"title":"Max Input Chars","description":"Characters of text in one job."},"max_concurrent_jobs":{"type":"integer","minimum":1.0,"title":"Max Concurrent Jobs","description":"Jobs running at once."},"max_queued_jobs":{"type":"integer","minimum":1.0,"title":"Max Queued Jobs","description":"Unfinished jobs, queued or running."}},"type":"object","required":["max_projects","max_ontologies_per_project","max_ontology_triples","max_stored_triples","max_input_chars","max_concurrent_jobs","max_queued_jobs"],"title":"PlanLimits","description":"The limits of one plan."},"PolicyResponse":{"properties":{"allowed_ontology_context_modes":{"items":{"type":"string"},"type":"array","title":"Allowed Ontology Context Modes","default":["selected_single_ontology","selected_vector_search_ontology","fixed_single_ontology"]},"default_render_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Render Mode"},"default_ontology_context_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Ontology Context Mode"},"default_max_visits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Max Visits"},"max_max_visits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Max Visits","default":3},"max_head_chunks":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Head Chunks"},"default_strip_provenance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Default Strip Provenance"},"default_current_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Current Domain"},"effective_defaults":{"additionalProperties":true,"type":"object","title":"Effective Defaults"},"input_extensions":{"items":{"type":"string"},"type":"array","title":"Input Extensions"},"max_upload_mb":{"type":"integer","title":"Max Upload Mb"},"rdf_extensions":{"items":{"type":"string"},"type":"array","title":"Rdf Extensions"},"max_ontology_mb":{"type":"integer","title":"Max Ontology Mb"},"max_facts_mb":{"type":"number","title":"Max Facts Mb"},"max_facts_triples":{"type":"integer","title":"Max Facts Triples"},"ontocast_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ontocast Version"},"starter_credit_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Starter Credit Eur","default":"0"}},"additionalProperties":false,"type":"object","required":["effective_defaults","input_extensions","max_upload_mb","rdf_extensions","max_ontology_mb","max_facts_mb","max_facts_triples"],"title":"PolicyResponse","description":"Deployment policy, plus what a job gets for every option left blank."},"Problem":{"properties":{"code":{"type":"string","title":"Code","description":"Names the case, e.g. `insufficient_balance`."},"message":{"type":"string","title":"Message","description":"What happened, for a person."}},"type":"object","required":["code","message"],"title":"Problem","description":"An error a client can act on."},"ProjectCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"ProjectCreate","description":"A new project. ``slug`` (derived from ``name`` if left out) never changes."},"ProjectResponse":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_default":{"type":"boolean","title":"Is Default"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"sample_pack":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sample Pack"},"settings":{"additionalProperties":true,"type":"object","title":"Settings","default":{}},"keep_documents":{"type":"boolean","title":"Keep Documents","default":false},"kept_documents":{"type":"integer","title":"Kept Documents","default":0},"jobs":{"type":"integer","title":"Jobs","default":0},"facts_triples":{"type":"integer","title":"Facts Triples","default":0},"charged_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Charged Eur","default":"0"}},"type":"object","required":["slug","name","is_default","created_at"],"title":"ProjectResponse"},"ProjectUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"settings":{"anyOf":[{"$ref":"#/components/schemas/UserExtractionSettings-Input"},{"type":"null"}]},"keep_documents":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Keep Documents"}},"type":"object","title":"ProjectUpdate"},"QueryRequest":{"properties":{"query":{"type":"string","maxLength":20000,"minLength":1,"title":"Query"},"dataset":{"type":"string","enum":["facts","ontologies","shapes"],"title":"Dataset","default":"facts"}},"type":"object","required":["query"],"title":"QueryRequest"},"QueueWait":{"properties":{"reason":{"type":"string","enum":["plan_slot","ontology_writer","worker"],"title":"Reason","description":"plan_slot: your plan's running-job limit is reached; ontology_writer: another extraction is writing this project's ontologies, and runs that write them take turns; worker: next in line, waiting for a worker."},"position":{"type":"integer","minimum":1.0,"title":"Position","description":"Place among your queued jobs, oldest first."}},"type":"object","required":["reason","position"],"title":"QueueWait","description":"Why a queued job waits, and its place among your queued jobs."},"RerunRequest":{"properties":{"render_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Render Mode"},"ontology_context_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ontology Context Mode"},"ontology_context_fixed_ontology_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ontology Context Fixed Ontology Id"},"ontology_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ontology User Instruction"},"ontology_selection_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ontology Selection User Instruction"},"facts_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facts User Instruction"},"max_cost_eur":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Max Cost Eur"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"}},"type":"object","title":"RerunRequest","description":"What to change for the re-run; every other option is the first run's."},"RunComparison":{"properties":{"a":{"$ref":"#/components/schemas/RunSummary"},"b":{"$ref":"#/components/schemas/RunSummary"},"same_document":{"type":"boolean","title":"Same Document"},"counts":{"$ref":"#/components/schemas/Counts"},"entities":{"items":{"$ref":"#/components/schemas/EntityChange"},"type":"array","title":"Entities"},"truncated":{"type":"boolean","title":"Truncated"}},"type":"object","required":["a","b","same_document","counts","entities","truncated"],"title":"RunComparison","description":"What the second run (``b``) has that the first (``a``) lacks, and the\nreverse."},"RunSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"triples":{"type":"integer","title":"Triples"}},"type":"object","required":["id","name","created_at","triples"],"title":"RunSummary","description":"One side of the comparison."},"SampleAdded":{"properties":{"project":{"type":"string","title":"Project"},"job":{"type":"string","format":"uuid","title":"Job"}},"type":"object","required":["project","job"],"title":"SampleAdded","description":"The new sample project and its finished job."},"SampleSummary":{"properties":{"id":{"type":"string","title":"Id"},"version":{"type":"integer","title":"Version"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"attribution":{"type":"string","title":"Attribution"},"project":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project"}},"type":"object","required":["id","version","title","description","attribution"],"title":"SampleSummary","description":"A sample you can add, and your project holding it, if you have one."},"ShapesDocument":{"properties":{"name":{"type":"string","title":"Name"},"graph":{"type":"string","title":"Graph"},"triples":{"type":"integer","title":"Triples"}},"type":"object","required":["name","graph","triples"],"title":"ShapesDocument","description":"One shapes document of a project: its name, named graph and size."},"ShapesUpload":{"properties":{"name":{"type":"string","title":"Name"},"graph":{"type":"string","title":"Graph"},"triples":{"type":"integer","title":"Triples"},"bytes":{"type":"integer","title":"Bytes"}},"type":"object","required":["name","graph","triples","bytes"],"title":"ShapesUpload","description":"A stored shapes document, and the size of the file it came from."},"ShareCreate":{"properties":{"include_passages":{"type":"boolean","title":"Include Passages","default":false}},"additionalProperties":false,"type":"object","title":"ShareCreate","description":"What a new share holds besides the facts and the ontology."},"ShareCreated":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"url":{"type":"string","title":"Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"includes_passages":{"type":"boolean","title":"Includes Passages"}},"type":"object","required":["id","url","created_at","includes_passages"],"title":"ShareCreated","description":"A new share. ``url`` holds the token; it is never shown again."},"ShareList":{"properties":{"shares":{"items":{"$ref":"#/components/schemas/ShareSummary"},"type":"array","title":"Shares"}},"type":"object","required":["shares"],"title":"ShareList","description":"A job's shares, newest first, revoked ones included."},"ShareSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"includes_passages":{"type":"boolean","title":"Includes Passages"},"revoked":{"type":"boolean","title":"Revoked"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"}},"type":"object","required":["id","job_id","created_at","includes_passages","revoked","revoked_at"],"title":"ShareSummary","description":"One share of a job, without its token."},"Statement":{"properties":{"balance_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Balance Eur"},"held_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Held Eur"},"available_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Available Eur"},"items":{"items":{"$ref":"#/components/schemas/StatementLine"},"type":"array","title":"Items"}},"type":"object","required":["balance_eur","held_eur","available_eur","items"],"title":"Statement"},"StatementLine":{"properties":{"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"amount_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount Eur"},"tokens":{"type":"integer","title":"Tokens","default":0},"lines":{"additionalProperties":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},"type":"object","title":"Lines","default":{}},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},"type":"object","required":["created_at","amount_eur"],"title":"StatementLine","description":"One job's charges, or one credit."},"SubmitResponse":{"properties":{"jobs":{"items":{"$ref":"#/components/schemas/IngestionJobStatusResponse"},"type":"array","title":"Jobs"}},"type":"object","required":["jobs"],"title":"SubmitResponse","description":"The queued jobs, one per document, in upload order."},"TermChange":{"properties":{"iri":{"type":"string","title":"Iri"},"kind":{"type":"string","enum":["class","property"],"title":"Kind"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["iri","kind","label"],"title":"TermChange"},"TermsAcceptance":{"properties":{"version":{"type":"string","maxLength":64,"minLength":1,"title":"Version","examples":["2026-11-17"]}},"type":"object","required":["version"],"title":"TermsAcceptance","description":"The version the person read and accepts."},"TermsStatus":{"properties":{"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version","description":"The published version; null while no terms are published."},"accepted_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accepted Version","description":"The version the account last accepted; null if none."},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At","description":"When the account accepted `accepted_version` (UTC)."},"required":{"type":"boolean","title":"Required","description":"Whether the account must accept `version` before it can start work, store content or publish."}},"type":"object","required":["version","accepted_version","accepted_at","required"],"title":"TermsStatus","description":"The published terms and what the account accepted."},"TokenPrice":{"properties":{"kind":{"type":"string","title":"Kind"},"eur_per_million":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Eur Per Million"}},"type":"object","required":["kind","eur_per_million"],"title":"TokenPrice","description":"EUR per million tokens of one kind."},"TransactionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"sku":{"$ref":"#/components/schemas/BillingSku"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"quantity":{"type":"integer","title":"Quantity"},"applied_unit_price":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Applied Unit Price"},"amount_eur":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount Eur"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","job_id","sku","model","quantity","applied_unit_price","amount_eur","created_at"],"title":"TransactionResponse","description":"One ledger entry: ``amount_eur`` is negative for a charge, positive for credit.\n\n``quantity`` units of ``sku`` (tokens, for the token SKUs) at\n``applied_unit_price``, the price when it was charged."},"TripleCounts":{"properties":{"before":{"type":"integer","title":"Before"},"after":{"type":"integer","title":"After"},"added":{"type":"integer","title":"Added"},"removed":{"type":"integer","title":"Removed"},"blank_before":{"type":"integer","title":"Blank Before"},"blank_after":{"type":"integer","title":"Blank After"}},"type":"object","required":["before","after","added","removed","blank_before","blank_after"],"title":"TripleCounts","description":"Content triples of each side, those only one side has, and the triples\nthrough blank nodes, which are compared by count only."},"UploadResult":{"properties":{"ontology_id":{"type":"string","title":"Ontology Id"},"iri":{"type":"string","title":"Iri"},"title":{"type":"string","title":"Title"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"triples":{"type":"integer","title":"Triples"},"created":{"type":"string","enum":["ontology","version","unchanged"],"title":"Created","default":"ontology"},"prior_keys":{"items":{"type":"string"},"type":"array","title":"Prior Keys","default":[]}},"type":"object","required":["ontology_id","iri","title","key","label","triples"],"title":"UploadResult","description":"What an upload or an edit stored: a new ontology, its next version, or\nnothing when the content equals the head's."},"Usage":{"properties":{"plan":{"type":"string","title":"Plan"},"limits":{"$ref":"#/components/schemas/PlanLimits"},"projects":{"type":"integer","title":"Projects"},"facts_triples":{"type":"integer","title":"Facts Triples"},"stored_triples":{"type":"integer","title":"Stored Triples"},"by_project":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"By Project"}},"type":"object","required":["plan","limits","projects","facts_triples","stored_triples","by_project"],"title":"Usage","description":"What an account stores, against its plan."},"UserExtractionSettings-Input":{"properties":{"render_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Render Mode","description":"What to render: `ontology`, `facts` or `ontology_and_facts`."},"ontology_context_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ontology Context Mode","description":"How the ontology context is chosen: `selected_single_ontology`, `selected_vector_search_ontology` or `fixed_single_ontology`; the deployment may allow fewer (`GET /policy`)."},"max_visits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Visits","description":"Retries of a render that failed outright, at least 1; the deployment may cap it."},"ontology_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ontology User Instruction","description":"Free text guiding the ontology step."},"facts_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facts User Instruction","description":"Free text guiding the facts step."},"ontology_selection_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ontology Selection User Instruction","description":"Free text guiding which ontology is selected."},"ontology_context_fixed_ontology_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ontology Context Fixed Ontology Id","description":"The ontology to use (`GET /ontologies`); setting it selects `fixed_single_ontology`."},"target_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Target Sections","description":"Only these sections: a comma-separated list or a JSON array."},"exclude_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclude Sections","description":"Skip these sections: a comma-separated list or a JSON array."},"summarize_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Summarize Sections","description":"Summarize these sections: a comma-separated list or a JSON array."},"summary_max_sentences":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Summary Max Sentences","description":"Sentences per section summary, at least 1."},"document_type_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type Hint","description":"What the document is, e.g. `journal article`."},"section_schema_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Schema Id","description":"Section schema to classify with, e.g. `academic`."},"head_chunks":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Head Chunks","description":"Process only the first N content units."},"strip_provenance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strip Provenance","description":"Leave per-fact provenance out of the facts graph."},"current_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Domain","description":"IRI stem for the document's namespace: absolute http(s), without fragment, query or trailing `/`."},"document_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Document Metadata","description":"Title, authors, date, … recorded in the facts graph with the extracted triples."},"max_cost_eur":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Max Cost Eur","description":"Most the job may cost, in EUR: held from your balance, and the run stops there. Unset, the hold comes from the estimate. It must exceed the job's fees."}},"additionalProperties":false,"type":"object","title":"UserExtractionSettings","description":"A user's saved extraction defaults (``GET/PATCH /me/settings``)."},"UserExtractionSettings-Output":{"properties":{"render_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Render Mode","description":"What to render: `ontology`, `facts` or `ontology_and_facts`."},"ontology_context_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ontology Context Mode","description":"How the ontology context is chosen: `selected_single_ontology`, `selected_vector_search_ontology` or `fixed_single_ontology`; the deployment may allow fewer (`GET /policy`)."},"max_visits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Visits","description":"Retries of a render that failed outright, at least 1; the deployment may cap it."},"ontology_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ontology User Instruction","description":"Free text guiding the ontology step."},"facts_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facts User Instruction","description":"Free text guiding the facts step."},"ontology_selection_user_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ontology Selection User Instruction","description":"Free text guiding which ontology is selected."},"ontology_context_fixed_ontology_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ontology Context Fixed Ontology Id","description":"The ontology to use (`GET /ontologies`); setting it selects `fixed_single_ontology`."},"target_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Target Sections","description":"Only these sections: a comma-separated list or a JSON array."},"exclude_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclude Sections","description":"Skip these sections: a comma-separated list or a JSON array."},"summarize_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Summarize Sections","description":"Summarize these sections: a comma-separated list or a JSON array."},"summary_max_sentences":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Summary Max Sentences","description":"Sentences per section summary, at least 1."},"document_type_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type Hint","description":"What the document is, e.g. `journal article`."},"section_schema_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Schema Id","description":"Section schema to classify with, e.g. `academic`."},"head_chunks":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Head Chunks","description":"Process only the first N content units."},"strip_provenance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strip Provenance","description":"Leave per-fact provenance out of the facts graph."},"current_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Domain","description":"IRI stem for the document's namespace: absolute http(s), without fragment, query or trailing `/`."},"document_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Document Metadata","description":"Title, authors, date, … recorded in the facts graph with the extracted triples."},"max_cost_eur":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Max Cost Eur","description":"Most the job may cost, in EUR: held from your balance, and the run stops there. Unset, the hold comes from the estimate. It must exceed the job's fees."}},"additionalProperties":false,"type":"object","title":"UserExtractionSettings","description":"A user's saved extraction defaults (``GET/PATCH /me/settings``)."},"UserRole":{"type":"string","enum":["user","operator"],"title":"UserRole","description":"What an account may do beyond its own data."},"UserStatus":{"type":"string","enum":["pending","active"],"title":"UserStatus","description":"Account approval state; ``is_active`` separately suspends an account."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VersionEntry":{"properties":{"key":{"type":"string","title":"Key"},"version_iri":{"type":"string","title":"Version Iri"},"label":{"type":"string","title":"Label"},"modified":{"type":"string","format":"date-time","title":"Modified"},"prior_keys":{"items":{"type":"string"},"type":"array","title":"Prior Keys"},"triples":{"type":"integer","title":"Triples"},"removed":{"type":"boolean","title":"Removed"},"head":{"type":"boolean","title":"Head"},"source":{"$ref":"#/components/schemas/VersionSource"}},"type":"object","required":["key","version_iri","label","modified","prior_keys","triples","removed","head","source"],"title":"VersionEntry","description":"One node of an ontology's version history."},"VersionPreview":{"properties":{"unchanged":{"type":"boolean","title":"Unchanged"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"prior_keys":{"items":{"type":"string"},"type":"array","title":"Prior Keys","default":[]},"diff":{"$ref":"#/components/schemas/OntologyDiff"}},"type":"object","required":["unchanged","diff"],"title":"VersionPreview","description":"What saving a file as the next version would store, written nowhere."},"VersionRemoved":{"properties":{"removed":{"type":"string","title":"Removed"},"label":{"type":"string","title":"Label"}},"type":"object","required":["removed","label"],"title":"VersionRemoved","description":"A version whose content was removed; its header stays in the history."},"VersionSource":{"properties":{"kind":{"type":"string","enum":["job","upload","run"],"title":"Kind"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"}},"type":"object","required":["kind"],"title":"VersionSource","description":"Where a version came from: a job of the project, an upload, or a run\nwhose job is no longer listed."}},"securitySchemes":{"Bearer":{"type":"http","description":"An API key, `{user-id}.{secret}`, created in the console's settings (`POST /me/api-key`), or the console's sign-in token.","scheme":"bearer"}}},"tags":[{"name":"Submit","description":"Queue documents for extraction, price a submission first, and read the options a deployment allows."},{"name":"Jobs","description":"One job per document: follow it, stop it, download what it produced, delete it."},{"name":"Projects","description":"Separate sets of documents, each with its own facts, ontologies, shapes and defaults; export and query them."},{"name":"Samples","description":"Finished extractions to copy into a project of your own and explore; free and read-only."},{"name":"Ontologies","description":"A project's ontologies and their version histories."},{"name":"Shapes","description":"SHACL shapes a project's facts are validated against."},{"name":"Account","description":"Your account, plan, API key and saved defaults."},{"name":"Billing","description":"Prices, balance, charges and credit."},{"name":"Feedback","description":"Tell us what a result was worth, flag wrong facts, or send a message."},{"name":"System","description":"Liveness."}],"servers":[{"url":"/ontocast"}]}