Skip to main content

Artos API Documentation

Welcome to the Artos API documentation. Artos is a platform for generating Medical and Regulatory documents using structured templates. The API enables document generation, template management, content search, and document organization.

Overview

The Artos API provides a RESTful interface for template-based document generation. It enables organizations to:
  • Generate documents asynchronously by extracting content from source documents and applying templates
  • Manage templates with nested sections and extraction rules
  • Organize documents into document sets for collaborative work
  • Search content using hybrid search combining vector similarity and full-text search
  • Update document outlines with fine-grained control over sections and extraction rules

Core Capabilities

1. Document Generation

Generate professional documents from source materials using predefined templates. The process is asynchronous and handles document extraction, content ingestion, and orchestrated template application.

2. Template Management

Create and manage templates with nested sections and content extraction rules. Templates define the structure and content requirements for generated documents.

3. File Management

Upload source documents and access generated files using backend resource IDs and authenticated document sessions.

API Resource Groups

The API is organized into 6 resource groups:

Authentication

Most endpoints require Bearer token authentication. The public search health endpoint are the only exceptions:
The Bearer token provides:
  • User identification for operation tracking
  • Organization scoping for multi-tenant data access
  • Permission validation for resource ownership
See Authentication for detailed information.

Document Generation Flow

The typical workflow for generating a document:

Async Processing Pattern

Document generation uses asynchronous processing via Celery:
  • POST returns 202 Accepted with a task_id for immediate feedback
  • Status polling allows clients to track progress
  • Completion notification sent via email to user email
  • No webhooks currently available (use polling instead)

Error Handling

All endpoints return standard HTTP status codes with error details:
  • 200 OK: Successful GET/PUT request
  • 201 Created: Successful POST (resource created)
  • 202 Accepted: Async task queued
  • 400 Bad Request: Validation error or missing required fields
  • 401 Unauthorized: Missing or invalid Bearer token
  • 403 Forbidden: Insufficient permissions or wrong organization
  • 404 Not Found: Resource does not exist
  • 422 Unprocessable Entity: Request validation error
  • 500 Internal Server Error: Server-side processing error
Example error response:

Organization Scoping

All resources are automatically scoped to the authenticated user’s organization. A user’s Bearer token contains their organization context, ensuring:
  • Users can only access their organization’s resources
  • Resources are automatically filtered by organization
  • Cross-organization access is prevented
  • Multi-tenant isolation is enforced

Getting Started

  1. Obtain a Bearer token from your organization administrator
  2. Choose a resource you want to work with (files, documents, templates, etc.)
  3. Review the endpoint documentation for request/response formats
  4. Test with curl or Postman to understand the API
  5. Integrate into your application using the SDK or direct HTTP calls

Next Steps