LogoРТА Технологии
OpenAPIUploads

Upload File

POST
/api/uploads/upload_file

Authorization

OAuth2PasswordBearer
AuthorizationBearer <token>

In: header

Request Body

multipart/form-data

file*file
Formatbinary

Response Body

application/json

application/json

curl -X POST "https://app.otascribe.ru/api/api/uploads/upload_file" \  -F file="string"
{
  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
  "file_path": "string",
  "owner_username": "string",
  "name": "string",
  "status": "OK",
  "creation_date": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "theme": "string",
  "description": "string",
  "transcription_result": {
    "language_code": "string",
    "sentences": [
      {
        "start_millis": 0,
        "end_millis": 0,
        "text": "string",
        "speaker_id": 0,
        "speaker_name": "string",
        "words_extended_information": [
          {
            "word": "string",
            "start_millis": 0,
            "end_millis": 0,
            "accuracy": 0,
            "speaker_id": 0,
            "is_obscene": false
          }
        ]
      }
    ]
  },
  "meta_information": {
    "file_duration_millis": 0,
    "file_size_bytes": 0,
    "task_duration_millis": 0,
    "words_count": 0
  },
  "resume_result": "string",
  "editable_transcription_result": {
    "language_code": "string",
    "sentences": [
      {
        "start_millis": 0,
        "end_millis": 0,
        "text": "string",
        "speaker_id": 0,
        "speaker_name": "string",
        "words_extended_information": [
          {
            "word": "string",
            "start_millis": 0,
            "end_millis": 0,
            "accuracy": 0,
            "speaker_id": 0,
            "is_obscene": false
          }
        ]
      }
    ]
  },
  "last_options": {
    "force_language": "ru",
    "batch_size": 8,
    "suppress_numerals": true,
    "words_extended_information": false,
    "noise_reduction": false,
    "detect_obscene_words": false,
    "obscene_threshold": 0.7,
    "audio_type": "meeting",
    "num_speakers": 0,
    "demucs_enabled": true,
    "beautify_speakers_order": true,
    "is_diarization": false
  },
  "stages": {
    "is_transcribed": false,
    "is_edited": false,
    "is_summarized": false
  },
  "position_in_queue": 0,
  "error_detail": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}