# Authorization

Celantur Cloud API is only usable when a user is authenticated. 🔒

Files are assigned to the user who has uploaded uploaded them. Other users can't access your files.

## How to get your authorization token

1. Create a new account or log in to app.celantur.com.
2. Use your app.celantur.com credentials with the [API Endpoints](/cloud-api/api-endpoints.md#sign-in-authorization) API endpoint to receive your authorization token.
3. Use the authorization token for interacting with the [API Endpoints](/cloud-api/api-endpoints.md)

```python
import requests

def main():    
  credentials = {'username': 'xxx', 'password': 'xxx'}
  response = requests.post(
    'https://api.celantur.com/v2/signin/', 
    json=credentials, 
    headers={'Content-Type':'application/json'}
  )
  auth_token = response.json()['AuthenticationResult']['AccessToken']

  status = requests.get(
    'https://api.celantur.com/v1/file/' + file_id + '/status', 
    headers={'Authorization': auth_token}
  )  
```

{% hint style="info" %}
**Access token support** will be available soon.
{% endhint %}


---

# 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://doc.celantur.com/cloud-api/authorization.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.
