> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wokelo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Supporting APIs

## Company Search

Search the Wokelo database by company name, website or ticker symbol to retrieve permalinks and key attributes needed for other API calls.

> [!NOTE]
>
> If you cannot find a company in the Wokelo database using this API, you can still use our APIs (except the Monitoring API) by passing the complete URL of the company's website instead of its permalink.

`GET   /api/enterprise/company/search`

This is a synchronous API. Results are returned in the HTTP response itself.

```bash cURL wrap theme={"system"}
curl --location 'https://api.wokelo.ai/api/enterprise/company/search?query=wokelo&search_by=name&company_type=all' \
--header 'Authorization: Bearer <YOUR_API_TOKEN>' \
--header 'Content-Type: application/json'
```

```python Python wrap theme={"system"}
import requests

url = "https://api.wokelo.ai/api/enterprise/company/search"
params = {"query": "wokelo", "search_by": "name", "company_type": "all"}
headers = {
    "Authorization": "Bearer <YOUR_API_TOKEN>",
    "Content-Type": "application/json"
}

response = requests.get(url, headers=headers, params=params)
print(response.text)
```

Example response:

```json theme={"system"}
{
  "status": "success",
  "data": [
    {
      "name": "Wokelo AI",
      "permalink": "wokelo-ai",
      "short_description": "Wokelo builds purpose-built AI agents...",
      "founded_year": "2023",
      "ipo_status": "private",
      "hq": "Seattle, United States",
      "website": "https://www.wokelo.ai/",
      "ticker": "",
      "country_code": "US",
      "last_funding_round": "Seed"
    }
  ],
  "count": 1
}
```

## Add Company

Add a company to the Wokelo database when it cannot be found using the [Company Search](#company-search) API. Once added, the company becomes available across other Wokelo APIs.

`POST   /api/enterprise/company/add/`

This is an asynchronous API. It returns a `report_id`, which you can track using the [Report status](#report-status) endpoint. Learn more about [How Async APIs work](https://docs.wokelo.ai/how-async-apis-work.md).

### Authentication

Uses the same authentication and headers as the Company Search API: a Bearer token in the `Authorization` header and `Content-Type: application/json`.

### Request body

| **Parameter** | **Type** | **Required** | **Description** |
| - | - | - | - |
| `company_name` | string | Yes | Name of the company to add. |
| `website` | string | Yes | Full URL of the company's website. |
| `product_category` | string | No | Product or industry category of the company. |
| `company_type` | string | No | Type of the company. Accepted values: `Public`, `Private`. |

```bash cURL theme={"system"}
curl --location 'https://api.wokelo.ai/api/enterprise/company/add/' \
--header 'Authorization: Bearer <YOUR_API_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
    "company_name": "Aditi Solar",
    "website": "https://aditisolar.in/"
}'
```

```python Python theme={"system"}
import requests

url = "https://api.wokelo.ai/api/enterprise/company/add/"

headers = {
    "Authorization": "Bearer <YOUR_API_TOKEN>",
    "Content-Type": "application/json"
}

payload = {
    "company_name": "Aditi Solar",
    "website": "https://aditisolar.in/",
    "product_category": "Solar Energy",
    "company_type": "Private"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
```

### After the company is added

Track the request with the returned `report_id` using the [Report status](#report-status) endpoint. Once it completes, search for the company with [Company Search](#company-search) to get its `permalink`, and use that permalink as the company reference in other Wokelo API calls.

## File upload

Upload your proprietary files to Wokelo to supplement research reports with internal data. Each uploaded file receives a unique identifier (`fileName`) that you reference in the `custom_files` parameter when creating reports.

`POST   /api/assets/upload/`

```bash cURL wrap theme={"system"}
curl --location 'https://api.wokelo.ai/api/assets/upload/' \
--header 'Authorization: Bearer <YOUR_API_TOKEN>' \
--form 'files=@"/path/to/diligence.pdf"' \
--form 'files=@"/path/to/financials.pdf"' \
--form 'fileUUID="[\"k3m8n5p1q6\", \"a7f4b9e2c3\"]"'
```

```python Python wrap theme={"system"}
import requests

url = "https://api.wokelo.ai/api/assets/upload/"

payload = {'fileUUID': '["k3m8n5p1q6", "a7f4b9e2c3"]'}
files = [
    ('files', ('diligence.pdf', open('/path/to/diligence.pdf', 'rb'), 'application/pdf')),
    ('files', ('financials.pdf', open('/path/to/financials.pdf', 'rb'), 'application/pdf'))
]
headers = {'Authorization': 'Bearer <YOUR_API_TOKEN>'}

response = requests.post(url, headers=headers, data=payload, files=files)
print(response.text)
```

## Report lifecycle

Discovery and Workflow Automation APIs are asynchronous and return a `report_id`. Use these endpoints to track and export the report. See [How Async APIs work](https://docs.wokelo.ai/how-async-apis-work.md).

### Report status

Get the status of a report that was started using any Wokelo workflow API.

`GET   /api/assets/get_notebook_status/`

| **Parameter** | **Type** | **Required** | **Description** |
| - | - | - | - |
| `report_id` | integer | Yes | The `report_id` returned when the report was started. |

```bash cURL wrap theme={"system"}
curl --location 'https://api.wokelo.ai/api/assets/get_notebook_status/?report_id=109196' \
--header 'Authorization: Bearer <YOUR_API_TOKEN>'
```

```python Python wrap theme={"system"}
import requests

url = "https://api.wokelo.ai/api/assets/get_notebook_status/"
headers = {'Authorization': 'Bearer <YOUR_API_TOKEN>'}

response = requests.get(url, headers=headers, params={"report_id": 109196})
print(response.text)
```

Example response:

```json theme={"system"}
{
  "report_id": 109196,
  "status": "Processing",
  "title": "warehouse automation"
}
```

**List of possible statuses**

| **Status** | **Description** |
| :- | :- |
| `Queued` | The report has been received and is waiting to be processed. |
| `Processing` | The report is actively being generated. |
| `Delayed` | The report is taking longer than expected. |
| `Completed` | Generation finished successfully. The report is ready to download. |
| `Exported` | The report has been exported. |
| `No Data Found` | No data was found for the request. |

### Download report

Download a report once it has completed.

`POST   /api/assets/download_report/`

| **Parameter** | **Type** | **Required** | **Description** |
| - | - | - | - |
| `report_id` | integer | Yes | Id of the report to export. |
| `file_type` | string | Yes | Export format: `"pdf"`, `"docx"`, `"ppt"` or `"json"`. `ppt` is supported only for Company Research and Industry Research reports. |

```bash cURL wrap theme={"system"}
curl --location 'https://api.wokelo.ai/api/assets/download_report/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_API_TOKEN>' \
--data '{
    "report_id": 109196,
    "file_type": "json"
}'
```

```python Python wrap theme={"system"}
import requests

url = "https://api.wokelo.ai/api/assets/download_report/"
headers = {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer <YOUR_API_TOKEN>'
}

response = requests.post(url, headers=headers, json={"report_id": 109196, "file_type": "json"})
print(response.text)
```

### Report config

Retrieve the settings originally used to trigger a report. View the detailed [API reference](https://docs.wokelo.ai/notebook-configuration.md).

`POST   /api/wkl/notebook/configuration/`

```bash cURL wrap theme={"system"}
curl --location 'https://api.wokelo.ai/api/wkl/notebook/configuration/' \
--header 'Authorization: Bearer <YOUR_API_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
    "notebook_id": 103737
}'
```

```python Python wrap theme={"system"}
import requests

url = "https://api.wokelo.ai/api/wkl/notebook/configuration/"
headers = {
    'Authorization': 'Bearer <YOUR_API_TOKEN>',
    'Content-Type': 'application/json'
}

response = requests.post(url, headers=headers, json={"notebook_id": 103737})
print(response.text)
```

## Credits

APIs to check your current credit balance and review historical credit consumption.

### Credit balance

Retrieve your account's current credit balance, total allotted credits and account expiry period.

`GET   /api/wkl/credits/get-credits-balance/`

```bash cURL wrap theme={"system"}
curl --location 'https://api.wokelo.ai/api/wkl/credits/get-credits-balance/' \
--header 'Authorization: Bearer <YOUR_API_TOKEN>' \
--header 'Content-Type: application/json'
```

```python Python wrap theme={"system"}
import requests

url = "https://api.wokelo.ai/api/wkl/credits/get-credits-balance/"
headers = {
    'Authorization': 'Bearer <YOUR_API_TOKEN>',
    'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers)
print(response.text)
```

Example response:

```json theme={"system"}
{
  "credits_consumed": 0,
  "acount_expiry_period": "2099-10-04T09:11:05Z",
  "credits_balance": 849.2029999999613,
  "total_credits": 25000.0
}
```

| **Field** | **Type** | **Description** |
| - | - | - |
| `credits_balance` | number | Credits remaining on the account. |
| `total_credits` | number | Total credits allotted to the account. |
| `acount_expiry_period` | string | Expiry timestamp (ISO 8601) for the current credit allotment or plan. |

### Credit logs

Retrieve a paginated log of credit-consuming activity across the account, including reports, newsletters, API calls and assistant usage.

`GET   /api/wkl/credits/get-credits-logs/`

**Query parameters**

| **Parameter** | **Type** | **Required** | **Description** |
| - | - | - | - |
| `page` | integer | No | Page number to retrieve. Defaults to `1`. |
| `page_size` | integer | No | Number of log entries per page. |

```bash cURL wrap theme={"system"}
curl --location 'https://api.wokelo.ai/api/wkl/credits/get-credits-logs/?page=1&page_size=30' \
--header 'Authorization: Bearer <YOUR_API_TOKEN>' \
--header 'Content-Type: application/json'
```

```python Python wrap theme={"system"}
import requests

url = "https://api.wokelo.ai/api/wkl/credits/get-credits-logs/"
headers = {
    'Authorization': 'Bearer <YOUR_API_TOKEN>',
    'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers, params={"page": 1, "page_size": 30})
print(response.text)
```

Example response:

```json theme={"system"}
{
  "count": 2604,
  "current_page": 1,
  "total_pages": 87,
  "data": [
    {
      "id": 2681,
      "email": "system@wokelo.ai",
      "date": "2026-07-21T11:05:15.040079+00:00",
      "name": "Newsletter Pipeline",
      "type": "Report",
      "sub_info": "Newsfeed",
      "credit_consumed": 10.0
    },
    {
      "id": 2670,
      "email": "user@example.com",
      "date": "2026-07-17T14:04:16.175945+00:00",
      "name": "Arbor Memorial Inc. - Add Company",
      "type": "API",
      "sub_info": "Add Company",
      "credit_consumed": 0.0
    },
    {
      "id": 2663,
      "email": "user@example.com",
      "date": "2026-07-16T15:29:37.451531+00:00",
      "name": "Acquisition Target Companies",
      "type": "Assistant",
      "sub_info": "generated via deep_research, final summary layer cost",
      "credit_consumed": 10.0
    }
  ],
  "credits_consumed": 0
}
```

**Response fields**

| **Field** | **Type** | **Description** |
| - | - | - |
| `count` | integer | Total number of log entries across all pages. |
| `current_page` | integer | The page number returned in this response. |
| `total_pages` | integer | Total number of pages available. |
| `data` | array | List of individual credit log entries (see below). |
| `credits_consumed` | number | Credits consumed by this logging call itself (typically `0`). |

**Log entry fields**

| **Field** | **Type** | **Description** |
| - | - | - |
| `id` | integer | Unique identifier for the log entry. |
| `email` | string | Email of the user who triggered the activity. May be blank for system-generated entries such as scheduled newsletters. |
| `date` | string | Timestamp (ISO 8601) of the activity. |
| `name` | string | Name of the report, notebook or task associated with the activity. |
| `type` | string | Category of activity. Observed values include `Report`, `Newsletter`, `API` and `Assistant`. |
| `sub_info` | string | Additional context on the specific action taken (e.g. `Add Company`, `Research Plan Validation`, `Newsfeed`). |
| `credit_consumed` | number | Credits consumed by this specific activity. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.