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

# Illusion API

## API Version

Illusion API has been updated to V02

### API Reference

<mark style="color:green;">`POST`</mark> `https://illusion.ws/api/v02/generate`

#### Headers

| Name                                            | Type   | Description                |
| ----------------------------------------------- | ------ | -------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer \[You API Key Here] |

#### Request Body

| Name                                   | Type    | Description                                                                                               |
| -------------------------------------- | ------- | --------------------------------------------------------------------------------------------------------- |
| id<mark style="color:red;">\*</mark>   | Intiger | Illusion ID                                                                                               |
| form<mark style="color:red;">\*</mark> | Array   | <p>The form input values like:<br>\[{"answer":"Sales"}.{"answer":"Illusion"},{"answer":"Healthtech"}]</p> |
