Skip to main content

Enqueue Transcripts for Group

This endpoint enqueues transcript generation jobs for all video or audio contents within a specific group.

Endpoint​

GET /api/transcript/enqueue-group/:groupId

Authentication​

Optional.
Users do not need to be authenticated to trigger transcript generation for a group.

Parameters​

Path Parameters​

ParameterTypeRequiredDescription
groupIdstringYesThe ID of the group containing the videos or audio contents

Response​

Success Response​

Code: 202 Accepted

Content Example:

{
"groupId": "42",
"total": 8,
"queued": 7
}

Error Responses​

Condition: If no video/audio contents are found in the group.
Code: 404 Not Found

Content Example:

{ "message": "No video/audio content found for this group" }

Condition: If an unexpected error occurs.
Code: 500 Internal Server Error

Content Example:

{ "error": "Failed to enqueue group transcripts" }

Notes​

  • The endpoint automatically finds all video and audio type contents associated with the given group.
  • Each content item is enqueued individually into the BullMQ queue for transcript generation.
  • Partial failures are logged in the server output, and the response summarizes how many items were successfully queued.
  • Ideal for bulk reprocessing or batch transcript generation after large uploads or group imports.

Example​

curl -X GET "https://api.tribesocial.io/api/transcript/enqueue-group/42"