What has been done with the files attached to this world
const url = 'http://localhost:11044/api/v1/chat/attachments';const options = {method: 'GET', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:11044/api/v1/chat/attachments \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Newest first. An import runs in the background and can take over a minute, during which nothing else says it is happening — so this reports the finished ones too, which is what answers “did it work” after the fact.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Ingestion records, newest first
What has happened to one file attached to this world: the handler that took it, whether its import is running, done or failed, and what it reported. Listed newest first by GET /chat/attachments
object
The file’s name as it was attached
ISO-8601 instant the import finished or failed; null while importing
Name of the handler that took the file
True for an IMPORTING record started more than 15 minutes ago: most likely a process killed mid-import, not an import still running
ISO-8601 instant the import started
IMPORTING (a handler is running now), IMPORTED, or FAILED
The handler’s own account of what it imported, or for FAILED the reason it gave; up to 2,000 characters, empty while importing
Example
[ { "state": "IMPORTING" }]
