API ReferenceTranslation

Create translation

Create a new translation for the recording in the specified target language.

POST/spaces/{spaceId}/recordings/{recordingId}/translations

Authorization API key in the x-api-key header

Path parameters

  • spaceIdstringrequired

    ID of the workspace. You can find from the url in dashboard when you open the workspace or using the list workspaces endpoint.

  • recordingIdstringrequired

    ID of the recording. You can find from the url in dashboard when you open the workspace or using the list recordings endpoint.

Body

application/json · object

  • languageLanguageCoderequired

    Target language code for the translation. The translation will convert the transcript into this language.

    One of"bg""ca""zh""zh-CN""zh-Hans""zh-TW""zh-Hant""cs""da""da-DK""nl""en""en-US""en-AU""en-GB""en-NZ""en-IN""et""fi""nl-BE""fr""fr-CA""de""de-CH""el""hi""hu""id""it""ja""ko""lv""lt""ms""multi""no""pl""pt""pt-BR""ro""ru""sk""es""es-419""sv""th""tr""uk""vi"

Responses

  • 200Translation metadata

    application/json · Translation

    • idstringrequired
    • createdAtstringrequired
    • updatedAtstringrequired
    • recordingIdstringrequired

      ID of the recording this is a translation for

    • languageLanguageCoderequired

      Target language for the translation

      One of"bg""ca""zh""zh-CN""zh-Hans""zh-TW""zh-Hant""cs""da""da-DK""nl""en""en-US""en-AU""en-GB""en-NZ""en-IN""et""fi""nl-BE""fr""fr-CA""de""de-CH""el""hi""hu""id""it""ja""ko""lv""lt""ms""multi""no""pl""pt""pt-BR""ro""ru""sk""es""es-419""sv""th""tr""uk""vi"

    • statusTranslationStatusrequired

      One of"NOT_STARTED""IN_QUEUE""IN_PROGRESS""COMPLETE""FAILED"

    • failurestring

      Error message if translation failed

    • aiModelIdstring

      AI model used for translation

    • contentBlobIdstring

      ID of the blob containing processed translation content

    • contentRawBlobIdstring

      ID of the blob containing raw translation content

    • createdByIdstringrequired

      ID of the user who created this translation

    • queuedAtstring

      Date time when it was queued for translation

    • startedAtstring

      Date time when the translation started processing

    • completedAtstring

      Date time when the translation was complete

  • 400Invalid input

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 401Authentication failed

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 402Insufficient credits or need payment

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 403You don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 404Not found or don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

curl 'https://transcript.lol/api/v1/spaces/string/recordings/string/translations' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "language": "es"
}'
const response = await fetch("https://transcript.lol/api/v1/spaces/string/recordings/string/translations", {
  method: "POST",
  headers: {
    "x-api-key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "language": "es"
  }),
});
const text = await response.text();
import requests

response = requests.post(
    "https://transcript.lol/api/v1/spaces/string/recordings/string/translations",
    headers={
        "x-api-key": "YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    data="{\n  \"language\": \"es\"\n}",
)
print(response.text)
{
  "id": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "recordingId": "string",
  "language": "bg",
  "status": "NOT_STARTED",
  "failure": "string",
  "aiModelId": "string",
  "contentBlobId": "string",
  "contentRawBlobId": "string",
  "createdById": "string",
  "queuedAt": "string",
  "startedAt": "string",
  "completedAt": "string"
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}