# File

### Endpoints

<table data-header-hidden><thead><tr><th>Method</th><th width="277.3333333333333">Endpoint</th><th>Description</th></tr></thead><tbody><tr><td>Method</td><td>Endpoint</td><td>Description</td></tr><tr><td>POST</td><td>/v4/file</td><td><a href="/pages/-M9tWxDWIuiyLpNE4WIc">Create a file.</a></td></tr><tr><td>GET</td><td>/v4/file/:id</td><td><a href="/pages/-M9tX-KVm6hZAVXZDK0D">Retrieve a file.</a></td></tr><tr><td>GET</td><td>/v4/file/:id/data</td><td><a href="/pages/-M9tX-firgfnlq-iGAa4">Retrieve file data.</a></td></tr><tr><td>DELETE</td><td>/v4/file/:id</td><td><a href="/pages/-M9tX0W77YZVy8vECSVI">Delete a file.</a></td></tr><tr><td>GET</td><td>/v4/file-templates</td><td><a href="/pages/R0CCI8AoqIa1HdIhHQ9Z">Retrieve file templates.</a></td></tr><tr><td>GET</td><td>/v4/file-statuses/:templateId</td><td><a href="/pages/-MIzAiBHLGUyXer6cGzR">Retrieve file statuses.</a></td></tr><tr><td>GET</td><td>/v4/file/:id/draft-templates</td><td><a href="/pages/-MTD5HngBgKZY_PWxoLh">Retrieve file draft templates.</a></td></tr><tr><td>GET</td><td>/v4/file/:id/revisions</td><td><a href="/pages/7z7bhU5iwjpUKpYy7olv">Retrieve file revisions</a></td></tr><tr><td>GET</td><td>/v4/file/:id-:revisionId</td><td><a href="/pages/fZ1ZVmGDGZShB9HH2B4i">Retrieve file version</a></td></tr><tr><td>GET</td><td>/v4/file/:id-:revisionId/url</td><td><a href="/pages/ovSyBmokGmOwuXicPmtq">Retrieve file version url</a></td></tr><tr><td>GET</td><td>/v4/file/:id-:revisionId/data</td><td><a href="/pages/v5gls3i2LrykdtGVl4YZ">Retrieve file version data</a></td></tr><tr><td>POST</td><td>/v4/file/:id/grant-access-to</td><td><a href="/pages/gS4uY9Zo88cbl4JcxhUv">Grant access to file</a></td></tr><tr><td>POST</td><td>/v4/file/:id/revoke-access-from</td><td><a href="/pages/9LmRgXdWW934vPuxSEGX">Revoke access from file</a></td></tr></tbody></table>


---

# Agent Instructions: 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:

```
GET https://api-docs.rightsline.com/entities/file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
