# Authentication

{% hint style="info" %}
You need to have a **Business** or **Enterprise** plan to be able to use our API. [Check out our pricing page for more info.](https://www.colossyan.com/pricing)
{% endhint %}

Colossyan's API is using [Bearer Authentication](https://swagger.io/docs/specification/v3_0/authentication/bearer-authentication/). This means, that every request has to be authenticated by sending the token in the `Authorization` header pre-pended by the text `Bearer` . See the example below:

```javascript
const response = await fetch(`${api}/video-generation-jobs`, {
  method: "POST",
  headers: {
    Authorization: `Bearer ${token}`, // Authentication
    "Content-Type": "application/json",
  },
  body: JSON.stringify(job),
});
```

You can create or find your existing tokens at the bottom of the **Workspace details** tab [in the Settings page](https://app.colossyan.com/settings).

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

{% hint style="info" %}
Each token belongs to a specific workspace. This is where are the generated videos that you create through the API will be listed. To keep things tidy, it is recommended to create a specific workspace for each use-case for the API.
{% 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://docs.colossyan.com/basics/editor.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.
