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

# 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>
