Перейти к содержимому

Get Object

GET
/v1/objects/{object_id}
curl --request GET \
--url https://api.cloud.agentums.ru/v1/objects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Карточка файла: имя, тип, статус обработки и ИИ-обогащение (заголовок, суть, теги).

Пока status="pending", обогащения ещё нет и поиск по содержимому этого файла ничего не найдёт — обработка идёт фоном после загрузки. Файл из «Скрытых» отдаётся только с заголовком X-Hidden-Token, иначе 404: ответ «нет такого» вместо «нет доступа» здесь намеренный.

object_id
required
Object Id
string format: uuid
x-hidden-token
Any of:
string

Successful Response

Media typeapplication/json
ObjectDetail
object
ai_name
Ai Name
string
""
categories
Categories
Array<string>
content_hash
required
Content Hash
string
created_at
required
Created At
string format: date-time
display_name
Display Name
string
""
editor
Any of:
string
enrichment
Any of:
EnrichmentOut
object
description
Description
string
""
doc_type
Doc Type
string
default: other
entities
Entities
object
key
additional properties
any
keywords
Keywords
Array<string>
language
Language
string
""
model
Model
string
""
summary
Summary
string
""
title
Title
string
""
error
Any of:
string
filename
required
Filename
string
has_corrections
Has Corrections
boolean
id
required
Id
string format: uuid
image_editable
Image Editable
boolean
is_hidden
Is Hidden
boolean
kind
required
Kind
string
mime
required
Mime
string
name_locked
Name Locked
boolean
name_source
Name Source
string
default: original
needs_manual
Needs Manual
boolean
original_name
Original Name
string
""
pdf_tools
Pdf Tools
boolean
size
required
Size
integer
source_url
Any of:
string
status
required
Status
string
suggested_collection_id
Any of:
string format: uuid
suggested_name
Any of:
string
suggested_reason
Any of:
string
text_fallback
Text Fallback
boolean
text_view
Text View
boolean
updated_at
required
Updated At
string format: date-time
version
Version
integer
default: 1
Example
{
"ai_name": "",
"display_name": "",
"enrichment": {
"description": "",
"doc_type": "other",
"language": "",
"model": "",
"summary": "",
"title": ""
},
"has_corrections": false,
"image_editable": false,
"is_hidden": false,
"name_locked": false,
"name_source": "original",
"needs_manual": false,
"original_name": "",
"pdf_tools": false,
"text_fallback": false,
"text_view": false,
"version": 1
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}