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

# Create Monitor

> Create one monitor from a table, with a row per subject.

Supplied watched cells become the baseline. Complete rows skip setup;
incomplete rows need an initial enrichment before recurring checks.



## OpenAPI

````yaml https://api.sixtyfour.ai/openapi.json post /monitors
openapi: 3.1.0
info:
  title: Sixtyfour API
  description: >-
    Intelligence API for People and Entities. Deploy AI agents that investigate,
    resolve identities, map relationships, and surface risk signals
  contact:
    name: Sixtyfour
    url: https://sixtyfour.ai/
    email: support@sixtyfour.ai
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://api.sixtyfour.ai
    description: Production
security: []
tags:
  - name: Enrichment
    description: Find and enrich emails, phones, and LinkedIn for people and companies.
  - name: org-chart
    description: Discover people inside a company and build org charts.
  - name: Search
    description: Run deep and filter searches over Sixtyfour's data.
  - name: Workflow
    description: Create, run, and manage enrichment workflows.
  - name: Workflow Schedules
    description: Create and manage recurring schedules for workflows.
  - name: Account
    description: Manage and inspect your account and credit balance.
  - name: Intelligence
    description: Verify identity attributes such as age using high-tier OSINT research.
  - name: Atlas
    description: >-
      Read your Atlas investigations: attribution graph, workspace files,
      reports, and exports.
paths:
  /monitors:
    post:
      tags:
        - Monitors
      summary: Create Monitor
      description: |-
        Create one monitor from a table, with a row per subject.

        Supplied watched cells become the baseline. Complete rows skip setup;
        incomplete rows need an initial enrichment before recurring checks.
      operationId: create_monitor_endpoint_monitors_post
      parameters:
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMonitorRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorResponse'
        '400':
          description: Request was rejected by the route's validation rules.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              example:
                detail: Invalid request body
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              example:
                detail: Invalid API key
        '403':
          description: Organization access is locked.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              example:
                detail: >-
                  This organization no longer has access to Sixtyfour. Contact
                  your representative at Sixtyfour.
        '422':
          description: Invalid request fields or monitor input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorValidationErrorResponse'
        '500':
          description: Unexpected server error. Retry with backoff.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              example:
                detail: Internal server error
        '503':
          description: >-
            The API key could not be checked, or the request could not be
            started, because a backing service is briefly unavailable. Nothing
            was charged. Retry after the `Retry-After` header.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              example:
                detail: Could not verify the API key right now. Retry shortly.
components:
  schemas:
    CreateMonitorRequest:
      properties:
        name:
          type: string
          maxLength: 120
          minLength: 1
          title: Name
          description: Base name; the row's key values are appended.
        rows:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Rows
        source:
          anyOf:
            - $ref: '#/components/schemas/MonitorRunSource'
            - type: 'null'
        handle_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Handle Id
          description: >-
            Upload handle returned by /storage/csv/upload. Use instead of rows
            or source.
        key_columns:
          items:
            type: string
          type: array
          minItems: 1
          title: Key Columns
        struct:
          additionalProperties: true
          type: object
          title: Struct
          description: >-
            Field name -> what to find. The same shape enrichment takes: either
            a sentence, or an object with 'type', 'description' and, for a
            nested field, 'subfields'.
        frequency:
          type: string
          title: Frequency
          default: 1d
        tier:
          type: string
          title: Tier
          default: low
        subject_type:
          type: string
          title: Subject Type
          description: 'Which enrichment re-derives the fields: ''company'' or ''lead''.'
          default: company
        research_plan:
          anyOf:
            - type: string
            - type: 'null'
          title: Research Plan
        webhook_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Url
        webhook_event_types:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Webhook Event Types
          description: >-
            Which events POST to webhook_url: any of 'monitor.field.changed',
            'monitor.execution.completed', 'monitor.execution.failed',
            'monitor.run.completed'. Defaults to ['monitor.field.changed']. A
            monitor's first check records starting values rather than changes,
            so subscribe to 'monitor.execution.completed' to hear about every
            finished check.
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
        is_active:
          type: boolean
          title: Is Active
          default: true
        first_check:
          type: string
          enum:
            - now
            - next_tick
          title: First Check
          description: >-
            When setup runs for rows missing watched values. 'now' triggers
            setup immediately; 'next_tick' waits for the schedule. Fully
            supplied rows always start on the schedule: an hourly monitor first
            runs at the next :00 UTC, a daily one at the next 00:00 UTC. The
            response's next_run_times says exactly when.
          default: now
        idempotency_key:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Idempotency Key
          description: >-
            Optional. Resending a request with the same key returns what the
            first attempt created instead of creating the batch twice. Reusing a
            key with different content returns 409. Omitted, a key is derived
            from the request's own content, so an identical resend replays by
            default.
      additionalProperties: false
      type: object
      required:
        - name
        - key_columns
        - struct
      title: CreateMonitorRequest
      description: >-
        Start one monitor per row of a table.


        A row column named after a struct field seeds that field's starting
        value;

        a field with no matching column is established by the first check.
    MonitorResponse:
      properties:
        id:
          type: string
          title: Id
        org_id:
          type: string
          title: Org Id
        team_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Team Id
        name:
          type: string
          title: Name
        frequency:
          type: string
          title: Frequency
        struct:
          additionalProperties: true
          type: object
          title: Struct
        tier:
          type: string
          title: Tier
        subject_type:
          type: string
          title: Subject Type
        research_plan:
          anyOf:
            - type: string
            - type: 'null'
          title: Research Plan
        is_active:
          type: boolean
          title: Is Active
        disabled_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Disabled Reason
        webhook_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Url
        webhook_event_types:
          items:
            type: string
          type: array
          title: Webhook Event Types
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
        last_run_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Run At
        next_run_times:
          items:
            type: string
          type: array
          title: Next Run Times
        row_count:
          type: integer
          title: Row Count
        active_row_count:
          type: integer
          title: Active Row Count
        status:
          type: string
          enum:
            - starting
            - failed
            - active
            - paused
            - cancelled
          title: Status
          description: >-
            'starting' while an uploaded file's rows are still being added,
            'failed' when adding them failed. Nothing is checked until it
            becomes 'active'. 'cancelled' means the owner cancelled it; 'paused'
            means it was switched off without cancellation.
        created_at:
          type: string
          title: Created At
        updated_at:
          type: string
          title: Updated At
      type: object
      required:
        - id
        - org_id
        - team_id
        - name
        - frequency
        - struct
        - tier
        - subject_type
        - research_plan
        - is_active
        - disabled_reason
        - webhook_url
        - webhook_event_types
        - metadata
        - last_run_at
        - next_run_times
        - row_count
        - active_row_count
        - status
        - created_at
        - updated_at
      title: MonitorResponse
      description: >-
        One uploaded table, watched as a single thing.


        `row_count` and `active_row_count` differ when rows have been switched
        off.
    MonitorValidationErrorResponse:
      properties:
        detail:
          anyOf:
            - type: string
            - items:
                $ref: '#/components/schemas/MonitorValidationErrorItem'
              type: array
          title: Detail
      type: object
      required:
        - detail
      title: MonitorValidationErrorResponse
      description: Both FastAPI field errors and explicit monitor validation failures.
    MonitorRunSource:
      properties:
        run_id:
          type: string
          title: Run Id
        storage_url:
          type: string
          title: Storage Url
        sha256:
          type: string
          title: Sha256
        row_indices:
          items:
            type: integer
          type: array
          minItems: 1
          title: Row Indices
      additionalProperties: false
      type: object
      required:
        - run_id
        - storage_url
        - sha256
        - row_indices
      title: MonitorRunSource
    MonitorValidationErrorItem:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Loc
          description: Path to the invalid field
          examples:
            - - body
              - name
        msg:
          type: string
          title: Msg
          description: Human-readable error message
          examples:
            - Field required
        type:
          type: string
          title: Type
          description: Validation error code
          examples:
            - missing
        input:
          title: Input
        ctx:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Ctx
      type: object
      required:
        - loc
        - msg
        - type
      title: MonitorValidationErrorItem
      description: A FastAPI request-validation error, including its field path.

````

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