Skip to main content
POST
/
api
/
v1
/
insights
/
workflows
/
queue-work
Python (SDK)
import os
from syllable_sdk import SyllableSDK


with SyllableSDK(
    api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:

    res = ss_client.insights.workflows.queue_work(request={
        "workflow_name": "summary-workflow",
        "session_id_list": [
            12334,
            23445,
            34556,
        ],
        "file_id_list": [
            1234,
            1678,
            2224,
        ],
    })

    # Handle response
    print(res)
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Syllable-API-Key
string
header
required

Body

application/json

Session identifier for workflow queue.

workflow_name
string
required

Unique name for workflow

session_id_list
integer[] | null

List of session identifiers

Example:

"[12334,23445,34556]"

file_id_list
integer[] | null

List of file IDs to be processed. This is only applicable for upload folders

Example:

"[1234,1678,2224]"

Response

Successful Response