OCS TextProcessing API

The OCS Text processing API allows you to run text processing tasks, like prompting large language models implemented by apps using :ref:`the backend Text Processing API<text_processing>`.

The base URL for all calls to this API is: <nextcloud_base_url>/ocs/v2.php/textprocessing/

All calls to OCS endpoints require the OCS-APIRequest header to be set to true.

Get available task types

field

type

Description

types

array

A list of supported task types. See below.

Task type fields:

field

type

Description

name

string

The name of the task type in the user's language

description

string

A description of the task type in the user's language

id

string

The id of this task type

Schedule a task

field

type

Description

input

string

The input text for the task

type

string

Id of this task's type.

appId

string

The id of the requesting app

identifier

string

An app-defined identifier for the task

Fetch a task by ID