# getafile

## getafile

- [Introduction](https://developers.getafile.io/master.md): Welcome to the GetaFile API documentation.
- [Teams](https://developers.getafile.io/account/teams.md): Get all the teams you are a member of
- [Current Usage](https://developers.getafile.io/account/current-usage.md): Get your current usage inside getafile
- [List Domains](https://developers.getafile.io/domains/list-domains.md): List all the domains that you have access to.
- [Create a Domain](https://developers.getafile.io/domains/create.md): Create a new file serving Domain under your account.
- [Update a Domain](https://developers.getafile.io/domains/update.md): Update a Domain.
- [List Custom Domains](https://developers.getafile.io/domains-1/list-domains.md): List all the custom domains that you have access to.
- [Delete a Custom Domain](https://developers.getafile.io/domains-1/update.md): Delete a Custom Domain.
- [Get a Custom Domain](https://developers.getafile.io/domains-1/update-1.md): Delete a Custom Domain.
- [Get File Paths](https://developers.getafile.io/file-paths/get-file-paths.md): Retrieve the File Path structure for a domain in your account.
- [Create a File Path](https://developers.getafile.io/file-paths/create-a-file-path.md): Create a File Path in a domain.
- [Update a File Path](https://developers.getafile.io/file-paths/update-a-file-path.md): Update a File Category for a Domain in your account.
- [Delete a File Path](https://developers.getafile.io/file-paths/delete-a-file-path.md): Delete a File Path for a domain in your account.
- [Get Domain Files](https://developers.getafile.io/files/get-files.md): Get a list of files for a domain in your account.
- [Get a File](https://developers.getafile.io/files/get-a-file.md): Get a File in your account.
- [Create a File](https://developers.getafile.io/files/create-a-file.md)
- [Update a File](https://developers.getafile.io/files/update-a-file.md): Update a File in your account.
- [Delete a File](https://developers.getafile.io/files/delete-a-file.md): Delete a file from your account.
- [Restore a File](https://developers.getafile.io/files/delete-a-file-1.md): Restore a deleted file to your account.
- [Permanently Delete a File](https://developers.getafile.io/files/permanently-delete-a-file.md): Delete a file from your account.
- [List File Versions](https://developers.getafile.io/file-version/list-file-versions.md): Retreive a list of File Versions for a File.
- [Get a File Version](https://developers.getafile.io/file-version/get-a-file-version.md): Get a File Version in your account.
- [Create a File Version](https://developers.getafile.io/file-version/create-a-file-version.md): Add a new File Version to a File
- [Make Active](https://developers.getafile.io/file-version/file-version-make-active.md): Make a File Version active.
- [Delete a File Version](https://developers.getafile.io/file-version/delete-a-file-version.md): Delete a File Version from a File in your account.
- [List Referrers](https://developers.getafile.io/referrers/list-referrers.md): Get a list of referrer domains added by your Team.


---

# 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
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.getafile.io/index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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