> For the complete documentation index, see [llms.txt](https://docs.tagshelf.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tagshelf.dev/event-api/fileevents/filedone.md).

# File Done

### Usage

This file event triggers when a file has successfully completed all of the stages defined in its assigned pipeline. A file’s pipeline will be dependent of its Tag and the configured options via our administrative panel.<br>

### Example JSON Payload

```json
{
  "event_id": "(UUID format) - Unique identifier for the event.",
  "event_type": "Describes the type of event that occurred.",
  "event_time": "(floating-point numeric timestamp) - Unix timestamp representing the time when the event occurred, rounded to whole seconds.",
  "event": {
    "event_name": "Name of the specific event.",
    "event_type": "Type of the event, often matching or related to the outer event_type.",
    "company_id": "(UUID format) - Unique identifier for the company involved in the event.",
    "company_name": "Name of the company involved in the event.",
    "blob_name": "Filename of the document or data blob.",
    "blob_url": "URL - Fully qualified URL where the blob or document is stored, accessible via HTTP or HTTPS.",
    "file_id": "(UUID format) - Unique identifier for the file associated with the event.",
    "tag_id": "(UUID format) - Unique identifier for the tag associated with the file.",
    "tag_name": "Name of the tag assigned to the file.",
    "file_status": "Status of the file, typically a textual description like 'completed', 'processing', etc.",
    "creation_date": "(ISO 8601 date format) - Date and time when the file or event was initially created.",
    "update_date": "(ISO 8601 date format) - Date and time when the file or event was last updated."
  }
}
```

<pre class="language-bash"><code class="lang-bash"><strong>{
</strong>  "event_id": "fghi3456-kl78-9012-mn34-opqr56789012",
  "event_type": "file_event_type",
  "event_time": "1651224567.00",
  "event": {
    "event_name": "file_done_event",
    "event_type": "file_event_type",
    "company_id": "567j6789-k89l-34e6-c789-527614179000",
    "company_name": "Innovatech Ltd",
    "blob_name": "example_document.pdf",
    "blob_url": "https://storage.example.com/documents/example_document.pdf",
    "file_id": "890k7890-l12m-45f6-d890-638214180000",
    "tag_id": "345l8901-m23n-56g7-e901-739414181000",
    "tag_name": "Approved",
    "file_status": "completed",
    "creation_date": "2023-05-01T09:30:00Z",
    "update_date": "2023-05-02T11:45:00Z"
  }
}
</code></pre>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tagshelf.dev/event-api/fileevents/filedone.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
