openapi: 3.1.0 info: title: Actian AI Analyst version: 0.1.0 description: Actian AI Analyst API x-gitbook-description-document: object: document data: schemaVersion: 9 nodes: - object: block type: paragraph isVoid: false data: {} nodes: - object: text leaves: - object: leaf text: Actian AI Analyst API marks: [] key: WmVeL3uuWlFj key: ROIKRtnh1Lpf key: 84ihd2150MOT x-gitbook-description-html:
Actian AI Analyst API
servers: - url: https://app.wobby.ai variables: {} security: - BearerAuth: [] paths: /api/public/v1/environment: get: parameters: - in: query name: entities description: >- Comma-separated list of entity types to include. Valid values: models, relationships, metrics, glossary, ai_analysts. Defaults to all. schema: type: string example: models,relationships,metrics,glossary,ai_analysts x-gitbook-description-html: >-Comma-separated list of entity types to include. Valid values: models, relationships, metrics, glossary, ai_analysts. Defaults to all.
- in: query name: format description: Output format. Defaults to json. schema: type: string enum: - json - yaml default: json x-gitbook-description-html:Output format. Defaults to json.
responses: '200': description: Environment export content: application/json: schema: type: object properties: version: type: string example: '1.0' exported_at: type: string format: date-time models: type: array items: type: object description: Models with dimensions, measures, filters, and grain x-gitbook-description-html: >-Models with dimensions, measures, filters, and grain
relationships: type: array items: type: object description: Relationships between models x-gitbook-description-html:Relationships between models
metrics: type: array items: type: object description: Defined metrics with expressions and joins x-gitbook-description-html:Defined metrics with expressions and joins
glossary: type: array items: type: object description: Glossary terms with definitions and mappings x-gitbook-description-html:Glossary terms with definitions and mappings
ai_analysts: type: array items: type: object description: AI analysts with semantic layer access configuration x-gitbook-description-html: >-AI analysts with semantic layer access configuration
x-gitbook-description-html:Environment export
'400': description: No environment context available x-gitbook-description-html:No environment context available
'401': description: Unauthorized — missing or invalid API key x-gitbook-description-html:Unauthorized — missing or invalid API key
tags: - Environment description: >- Export the full environment configuration including models, relationships, metrics, glossary terms, and AI analysts. Supports filtering by entity type and output format. x-gitbook-description-document: object: document data: schemaVersion: 9 nodes: - object: block type: paragraph isVoid: false data: {} nodes: - object: text leaves: - object: leaf text: >- Export the full environment configuration including models, relationships, metrics, glossary terms, and AI analysts. Supports filtering by entity type and output format. marks: [] key: qspCmfk8tY7E key: 9qkLczgcBVGt key: q3ZpKmR1bTox x-gitbook-description-html: >-Export the full environment configuration including models, relationships, metrics, glossary terms, and AI analysts. Supports filtering by entity type and output format.
put: parameters: [] responses: '200': description: Sync summary content: application/json: schema: type: object properties: created: type: integer description: Number of entities created x-gitbook-description-html:Number of entities created
updated: type: integer description: Number of entities updated x-gitbook-description-html:Number of entities updated
deleted: type: integer description: Number of orphaned entities deleted (0 if orphaned=keep) x-gitbook-description-html: >-Number of orphaned entities deleted (0 if orphaned=keep)
unchanged: type: integer description: Number of entities that were already up to date x-gitbook-description-html:Number of entities that were already up to date
x-gitbook-description-html:Sync summary
'400': description: No environment context available x-gitbook-description-html:No environment context available
'401': description: Unauthorized — missing or invalid API key x-gitbook-description-html:Unauthorized — missing or invalid API key
'422': description: Validation error — one or more referenced data sources do not exist x-gitbook-description-html: >-Validation error — one or more referenced data sources do not exist
tags: - Environment description: >- Sync (upsert) the environment configuration from a JSON payload. Supports models, relationships, metrics, glossary terms, and AI analysts. Only include the entity types you want to sync — omitted types are left untouched. Blocks if any referenced data source does not exist. requestBody: required: true content: application/json: schema: type: object properties: models: type: array items: type: object description: Models to create or update (matched by name) x-gitbook-description-html:Models to create or update (matched by name)
relationships: type: array items: type: object description: Relationships between models x-gitbook-description-html:Relationships between models
metrics: type: array items: type: object description: Metrics to create or update (matched by name) x-gitbook-description-html:Metrics to create or update (matched by name)
glossary: type: array items: type: object description: Glossary terms to create or update (matched by term) x-gitbook-description-html:Glossary terms to create or update (matched by term)
ai_analysts: type: array items: type: object description: AI analysts to create or update (matched by name) x-gitbook-description-html:AI analysts to create or update (matched by name)
orphaned: type: string enum: - keep - delete default: keep description: >- What to do with existing entities not present in the payload. "delete" removes them, "keep" (default) leaves them. x-gitbook-description-html: >-What to do with existing entities not present in the payload. "delete" removes them, "keep" (default) leaves them.
x-gitbook-description-document: object: document data: schemaVersion: 9 nodes: - object: block type: paragraph isVoid: false data: {} nodes: - object: text leaves: - object: leaf text: >- Sync (upsert) the environment configuration from a JSON payload. Supports models, relationships, metrics, glossary terms, and AI analysts. Only include the entity types you want to sync — omitted types are left untouched. Blocks if any referenced data source does not exist. marks: [] key: bFEKrR6B1oTx key: ENntjhEQRRVU key: YBGuBsfumyhT x-gitbook-description-html: >-Sync (upsert) the environment configuration from a JSON payload. Supports models, relationships, metrics, glossary terms, and AI analysts. Only include the entity types you want to sync — omitted types are left untouched. Blocks if any referenced data source does not exist.
components: securitySchemes: BearerAuth: type: http scheme: bearer description: >- API key obtained from Settings > API Keys. Pass as: Authorization: BearerAPI key obtained from Settings > API Keys. Pass as: Authorization: Bearer