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

# Analyze an account

> Ask about an account in plain English; Abacus Labs runs the analyses it needs and answers with typed results (read-only)



## OpenAPI

````yaml /openapi.json post /analyze
openapi: 3.1.0
info:
  title: Abacus Labs
  description: Portfolio analysis and decision API for AI agents. Read /agent.md first.
  version: 1.0.0
servers:
  - url: https://api.abacuslabs.ai/v1
    description: Abacus Labs API
security:
  - bearer: []
tags:
  - name: Onboarding
  - name: Analyze
  - name: Proposals
  - name: Trade checks
  - name: Commits
  - name: Accounts
paths:
  /analyze:
    post:
      tags:
        - Analyze
      summary: Analyze an account
      description: >-
        Ask about an account in plain English; Abacus Labs runs the analyses it
        needs and answers with typed results (read-only)
      operationId: analyze_route_v1_analyze_post
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              optional: any unique string (a UUID). A retry with the same key
              and body within 24 hours returns the stored answer with
              Idempotent-Replayed: true and is not charged again; the same key
              with a different body is 409 idempotency_key_reused
            title: Idempotency-Key
          description: >-
            optional: any unique string (a UUID). A retry with the same key and
            body within 24 hours returns the stored answer with
            Idempotent-Replayed: true and is not charged again; the same key
            with a different body is 409 idempotency_key_reused
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AnalyzeBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AnalyzeBody:
      properties:
        account:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Account
        account_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Account Id
        snapshot_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Snapshot Id
        accounts:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Accounts
        as_of:
          anyOf:
            - type: string
            - type: 'null'
          title: As Of
        benchmark:
          anyOf:
            - type: string
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Benchmark
        question:
          anyOf:
            - type: string
            - type: 'null'
          title: Question
        save:
          type: boolean
          title: Save
          default: false
        effort:
          type: string
          enum:
            - quick
            - standard
            - deep
          title: Effort
          default: standard
        max_credits:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Credits
      additionalProperties: true
      type: object
      title: AnalyzeBody
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        An API key: abacus_sk_test_... (sandbox, from POST /v1/keys) or
        abacus_sk_live_... (from https://app.abacuslabs.ai)

````

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