Lassare Settings API
The Settings API from Lassare — 4 operation(s) for settings.
The Settings API from Lassare — 4 operation(s) for settings.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/lassare-com:lassare-com-settings-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Lassare Gateway Settings API
description: Human-in-the-Loop (HITL) middleware for AI agents
version: 1.0.0
tags:
- name: Settings
paths:
/v1/settings/company:
post:
tags:
- Settings
summary: Create Company Settings
description: 'Create company settings with validation.
Implements FR-007A validation:
- company_id format (^[a-z0-9-]{3,50}$)
- default_timezone (IANA timezone database)
- default_channels (channel identifier format)
- default_escalation_policy structure
Args:
request: Company settings create request
current_user: Current authenticated user from JWT
Returns:
Created CompanySettings
Raises:
HTTPException 400: Validation error with structured details
HTTPException 409: Company settings already exist
HTTPException 500: Internal server error'
operationId: create_company_settings_v1_settings_company_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CompanySettingsCreateRequest'
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CompanySettings'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
'409':
description: Company settings already exist
'500':
description: Internal server error
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/settings/company/{company_id}:
put:
tags:
- Settings
summary: Update Company Settings
description: 'Update company settings with validation.
Implements FR-007A validation for partial updates:
- Immutability: company_id cannot change
- Only changed fields validated
Args:
company_id: Company ID (immutable)
request: Company settings update request
current_user: Current authenticated user from JWT
Returns:
Updated CompanySettings
Raises:
HTTPException 400: Validation error with structured details
HTTPException 404: Company settings not found
HTTPException 500: Internal server error'
operationId: update_company_settings_v1_settings_company__company_id__put
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CompanySettingsUpdateRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CompanySettings'
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
description: Bad Request
'404':
description: Company settings not found
'500':
description: Internal server error
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/settings/project:
post:
tags:
- Settings
summary: Create Project Settings
description: 'Create project settings with validation.
Implements FR-008A validation:
- project_id format
- company_id reference integrity (must exist)
- notification_channels format (same rules as CompanySettings)
- escalation_policy structure (same rules as CompanySettings)
- Allows null/empty overrides (inherits company defaults)
Args:
request: Project settings create request
current_user: Current authenticated user from JWT
Returns:
Created ProjectSettings
Raises:
HTTPException 400: Validation error with structured details
HTTPException 404: Company not found
HTTPException 409: Project settings already exist
HTTPException 500: Internal server error'
operationId: create_project_settings_v1_settings_project_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectSettingsCreateRequest'
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectSettings'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
'404':
description: Company not found
'409':
description: Project settings already exist
'500':
description: Internal server error
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/settings/project/{project_id}:
get:
tags:
- Settings
summary: Get Project Settings
description: 'Get project settings.
Args:
project_id: Project ID
current_user: Current authenticated user from JWT
Returns:
ProjectSettings
Raises:
HTTPException 404: Project settings not found
HTTPException 500: Internal server error'
operationId: get_project_settings_v1_settings_project__project_id__get
parameters:
- name: project_id
in: path
required: true
schema:
type: string
title: Project Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectSettings'
'404':
description: Project settings not found
'500':
description: Internal server error
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
put:
tags:
- Settings
summary: Update Project Settings
description: 'Update project settings with validation.
Implements FR-008A validation for partial updates:
- Immutability: project_id and company_id cannot change
- Only changed fields validated
Args:
project_id: Project ID (immutable)
request: Project settings update request
current_user: Current authenticated user from JWT
Returns:
Updated ProjectSettings
Raises:
HTTPException 400: Validation error with structured details
HTTPException 404: Project settings not found
HTTPException 500: Internal server error'
operationId: update_project_settings_v1_settings_project__project_id__put
parameters:
- name: project_id
in: path
required: true
schema:
type: string
title: Project Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectSettingsUpdateRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectSettings'
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
description: Bad Request
'404':
description: Project settings not found
'500':
description: Internal server error
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ProjectSettingsCreateRequest:
properties:
projectId:
type: string
title: Projectid
companyId:
type: string
title: Companyid
notificationChannels:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Notificationchannels
escalationPolicy:
anyOf:
- type: object
- type: 'null'
title: Escalationpolicy
timezone:
anyOf:
- type: string
- type: 'null'
title: Timezone
type: object
required:
- projectId
- companyId
title: ProjectSettingsCreateRequest
description: Request body for creating project settings.
CompanySettingsUpdateRequest:
properties:
defaultChannels:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Defaultchannels
defaultTimezone:
anyOf:
- type: string
- type: 'null'
title: Defaulttimezone
defaultEscalationPolicy:
anyOf:
- type: object
- type: 'null'
title: Defaultescalationpolicy
defaultLanguage:
anyOf:
- type: string
- type: 'null'
title: Defaultlanguage
type: object
title: CompanySettingsUpdateRequest
description: Request body for updating company settings (partial updates supported).
ValidationErrorResponse:
properties:
error:
type: string
title: Error
default: ValidationError
message:
type: string
title: Message
details:
items:
$ref: '#/components/schemas/ValidationErrorDetail'
type: array
title: Details
type: object
required:
- message
- details
title: ValidationErrorResponse
description: Structured validation error response (FR-007A/FR-008A).
UrgencyTimingProfile:
properties:
reminderMinutes:
type: integer
title: Reminderminutes
description: Minutes until reminder notification (from T=0)
escalationMinutes:
type: integer
title: Escalationminutes
description: Minutes until escalation to secondary approver (from T=0)
expiryMinutes:
type: integer
title: Expiryminutes
description: Minutes until request expires (from T=0)
type: object
required:
- reminderMinutes
- escalationMinutes
- expiryMinutes
title: UrgencyTimingProfile
description: 'Timing configuration for a specific urgency level.
Defines reminder_minutes, escalation_minutes, and expiry_minutes
from initial notification time (T=0).'
ProjectSettingsUpdateRequest:
properties:
notificationChannels:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Notificationchannels
escalationPolicy:
anyOf:
- type: object
- type: 'null'
title: Escalationpolicy
timezone:
anyOf:
- type: string
- type: 'null'
title: Timezone
type: object
title: ProjectSettingsUpdateRequest
description: Request body for updating project settings (partial updates supported).
CompanySettingsCreateRequest:
properties:
companyId:
type: string
title: Companyid
defaultChannels:
items:
type: string
type: array
title: Defaultchannels
defaultTimezone:
type: string
title: Defaulttimezone
defaultEscalationPolicy:
anyOf:
- type: object
- type: 'null'
title: Defaultescalationpolicy
defaultLanguage:
anyOf:
- type: string
- type: 'null'
title: Defaultlanguage
type: object
required:
- companyId
- defaultChannels
- defaultTimezone
title: CompanySettingsCreateRequest
description: Request body for creating company settings.
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ValidationErrorDetail:
properties:
field:
type: string
title: Field
description: Field name or path (e.g., 'default_timezone', 'default_channels[0]')
error:
type: string
title: Error
description: Human-readable error message for this field
type: object
required:
- field
- error
title: ValidationErrorDetail
description: Single field validation error.
CompanySettings:
properties:
companyId:
type: string
title: Companyid
defaultChannels:
items:
type: string
type: array
title: Defaultchannels
description: 'Default notification channels: e.g. [''slack'', ''email'']'
defaultTimezone:
type: string
title: Defaulttimezone
description: 'IANA timezone for timestamp display: e.g. ''Europe/Rome'', ''America/New_York'''
createdAt:
type: string
title: Createdat
description: ISO 8601 timestamp
updatedAt:
type: string
title: Updatedat
description: ISO 8601 timestamp
defaultEscalationPolicy:
anyOf:
- $ref: '#/components/schemas/EscalationPolicy'
- type: 'null'
description: 'T068: Escalation policy with secondary_approver and urgency_overrides (FR-012)'
defaultLanguage:
anyOf:
- type: string
- type: 'null'
title: Defaultlanguage
description: 'Phase 2+: Company language preference: e.g. ''en-US'', ''it-IT'', ''es-MX'''
logVerbosity:
anyOf:
- type: string
- type: 'null'
title: Logverbosity
description: 'Log verbosity level: ''minimal'' (errors only), ''standard'' (default), ''verbose'' (full debug). Set by Lassare ops via Admin backend.'
type: object
required:
- companyId
- defaultChannels
- defaultTimezone
- createdAt
- updatedAt
title: CompanySettings
description: 'Company-level configuration settings.
Phase 3 (MVP): Minimal version with default_timezone and default_channels.
Phase 4 (T068): Extended with escalation_policy fields.'
EscalationPolicy:
properties:
secondaryApprover:
anyOf:
- $ref: '#/components/schemas/SecondaryApprover'
- type: 'null'
description: Default secondary approver for escalations
urgencyOverrides:
anyOf:
- additionalProperties:
$ref: '#/components/schemas/UrgencyTimingProfile'
type: object
- type: 'null'
title: Urgencyoverrides
description: Custom timing profiles for urgency levels (overrides system defaults)
type: object
title: EscalationPolicy
description: 'Escalation policy configuration.
Defines:
- secondary_approver: Who to escalate to when primary approvers don''t respond
- urgency_overrides: Custom timing profiles for urgency levels
Used in CompanySettings and ProjectSettings with precedence:
1. Request-level fallback_approver (highest)
2. ProjectSettings.escalation_policy
3. CompanySettings.escalation_policy
4. System defaults (lowest)'
SecondaryApproverType:
type: string
enum:
- email
- slack
- slack_user
- webhook
title: SecondaryApproverType
description: Secondary approver target types.
ProjectSettings:
properties:
projectId:
type: string
title: Projectid
description: Unique project identifier
companyId:
type: string
title: Companyid
description: Company that owns this project (for multi-tenancy)
notificationChannels:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Notificationchannels
description: 'Project-specific notification channels (overrides company defaults). Example: [''slack'', ''email'']'
escalationPolicy:
anyOf:
- $ref: '#/components/schemas/EscalationPolicy'
- type: 'null'
description: Project-specific escalation policy (overrides company default). Includes secondary_approver and urgency_overrides (FR-012)
timezone:
anyOf:
- type: string
- type: 'null'
title: Timezone
description: 'Project-specific IANA timezone (overrides company default). Example: ''Europe/Rome'', ''America/New_York'''
createdAt:
type: string
title: Createdat
description: ISO 8601 timestamp of settings creation
updatedAt:
type: string
title: Updatedat
description: ISO 8601 timestamp of last update
createdBy:
anyOf:
- type: string
- type: 'null'
title: Createdby
description: User ID who created these settings
updatedBy:
anyOf:
- type: string
- type: 'null'
title: Updatedby
description: User ID who last updated these settings
type: object
required:
- projectId
- companyId
- createdAt
- updatedAt
title: ProjectSettings
description: 'Project-level configuration settings.
Allows projects to override company-level defaults for:
- Notification channels
- Escalation policies
- Timezone preferences'
SecondaryApprover:
properties:
approverType:
allOf:
- $ref: '#/components/schemas/SecondaryApproverType'
description: Type of secondary approver
approverValue:
type: string
title: Approvervalue
description: Approver identifier (email, channel ID, or user ID)
type: object
required:
- approverType
- approverValue
title: SecondaryApprover
description: 'Secondary approver configuration.
Format: type:value
- email:admin@company.com
- slack:C1234567890 (channel)
- slack_user:U1234567890 (DM)'
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError