Documentation Index
Fetch the complete documentation index at: https://docs.artosai.com/llms.txt
Use this file to discover all available pages before exploring further.
npm SDK Authentication
The Artos npm SDK uses Bearer token authentication. You’ll need your organization access token to make API calls.Basic Authentication
Pass your access token directly to each SDK function call:Reusable API Client
For applications making frequent API calls, create a reusable API client withcreateApiClient:
createApiClient(config)
Creates a reusable API client instance.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
baseUrl | string | Yes | The Artos API base URL |
authMode | string | No | Authentication mode: 'bearer' (default) or 'cookie' |
ApiClient
Common Authentication Errors
| Status Code | Description | Recommended Action |
|---|---|---|
| 401 | Unauthorized | Verify your access token is valid and not expired |
| 403 | Forbidden | Confirm you have access to the requested resource |
”401 Unauthorized” Error
- Verify your access token is correct
- Check if the token has expired
- Contact Artos support for a new token if needed
”403 Forbidden” Error
- Verify the document ID is correct
- Confirm your organization has access to this document
- Contact your Artos account manager