# Introduction

## What is GetaFile?

GetaFile is a subscription-based web application delivering version-controlled files via customised web links created by subscribers. Read more about GetaFile [here](https://www.getafile.online).

## Getting Access to the GetaFile API

To get started with the GetaFile API, register an account at [https://getafile.io/auth/register](https://getafile.online/app#/register)

{% hint style="info" %}
&#x20;Once you have registered your account, verified and setup your Two-Factor authentication you'll need to create an API token.
{% endhint %}

## Create an API Token

To generate an API token, go to your Profile and select "API TOKENS". Enter a name for the token and click "Generate token".

<figure><img src="/files/QtfBsGusfCRw8I1ArYVE" alt=""><figcaption></figcaption></figure>

To revoke an API Token, click the delete icon next to the token you wish to revoke.

## Using the API Token

Once you have generated an API Token, include it in the Authorization header for each request.

There are 2 regions for GetaFile. Depending on where your account is located, use the following base URLs:\
\
**Oceanic, Asia**\
`au.getafile.io/api/v1`\
\
**Americas**\
`us.getafile.io/api/v1`

**Europe**\
`eu.getafile.io/api/v1`

<mark style="color:blue;">`GET`</mark> `https://{region}.getafile.io/api/v1/auth/checklogin`

Set the Authorization header for each request.

#### Headers

| Name          | Type   | Description                            |
| ------------- | ------ | -------------------------------------- |
| Authorization | string | Bearer ADeEW12312ZzSDS2112432xxxxxxxxx |

{% tabs %}
{% tab title="200 " %}

```
{
    email: "test@test.net"
    first_name: "Test"
    id: 1
    last_name: "User"
}
```

{% endtab %}

{% tab title="401 Returned if there is an issue with the Token." %}

```
```

{% endtab %}
{% endtabs %}


---

# 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://developers.getafile.io/master.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.
