CiteLadder Actions API

The actions API from CiteLadder — 3 operation(s) for actions.

Operations 4

GET /v1/projects/{project_id}/actions Get projects by project id actions #
GET /v1/projects/{project_id}/actions/{action_id} Get projects by project id actions by action id #
PATCH /v1/projects/{project_id}/actions/{action_id} Update projects by project id actions by action id #
POST /v1/projects/{project_id}/actions/{action_id}/declaration Create projects by project id actions by action id declaration #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/citeladder-com:citeladder-com-actions-api"
All apis
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.

Get an API 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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

citeladder-com-actions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CiteLadder Actions API
  version: '1'
servers:
- url: https://api.citeladder.com
security:
- apiKey: []
tags:
- name: Actions
paths:
  /v1/projects/{project_id}/actions:
    get:
      tags:
      - Actions
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionsPage'
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: limit
        in: query
        required: false
        schema:
          default: 50
          type: integer
          minimum: 1
          maximum: 200
      - name: cursor
        in: query
        required: false
        schema:
          type:
          - string
          - 'null'
      - name: status
        in: query
        required: false
        schema:
          type:
          - string
          - 'null'
      - name: target_kind
        in: query
        required: false
        schema:
          type:
          - string
          - 'null'
      x-citeladder-scope: read
      summary: Get projects by project id actions
      x-summary-source: derived
      operationId: getV1ProjectsByProjectIdActions
      x-operation-id-source: derived
  /v1/projects/{project_id}/actions/{action_id}:
    get:
      tags:
      - Actions
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionDetail'
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: action_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      x-citeladder-scope: read
      summary: Get projects by project id actions by action id
      x-summary-source: derived
      operationId: getV1ProjectsByProjectIdActionsByActionId
      x-operation-id-source: derived
    patch:
      tags:
      - Actions
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionItem'
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: action_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                status:
                  type: string
              required:
              - status
              additionalProperties: false
      x-citeladder-scope: actions:write
      summary: Update projects by project id actions by action id
      x-summary-source: derived
      operationId: patchV1ProjectsByProjectIdActionsByActionId
      x-operation-id-source: derived
  /v1/projects/{project_id}/actions/{action_id}/declaration:
    post:
      tags:
      - Actions
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionDeclaration'
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionDeclaration'
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: action_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: Idempotency-Key
        in: header
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                recommendation_ids:
                  default: []
                  maxItems: 100
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                output_revision_id:
                  default: null
                  anyOf:
                  - type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  - type: 'null'
                declared_implemented_at:
                  type: string
                  format: date-time
                  pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
              required:
              - declared_implemented_at
              additionalProperties: false
      x-citeladder-scope: actions:write
      summary: Create projects by project id actions by action id declaration
      x-summary-source: derived
      operationId: postV1ProjectsByProjectIdActionsByActionIdDeclaration
      x-operation-id-source: derived
components:
  schemas:
    ActionDetail:
      type: object
      properties:
        id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        project_id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        target_kind:
          type: string
        target_label:
          type: string
        target_url:
          type:
          - string
          - 'null'
        target_prompt_id:
          anyOf:
          - type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          - type: 'null'
        origin:
          type: string
          enum:
          - evidence
          - agent
        status:
          $ref: '#/components/schemas/ActionStatus'
        priority_score:
          type:
          - number
          - 'null'
        families:
          type: array
          items:
            type: string
        approach:
          type: string
        skill_id:
          type: string
        member_count:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        evidence_cleared_at:
          type:
          - string
          - 'null'
        created_at:
          type: string
        updated_at:
          type: string
        member_measurement:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            anyOf:
            - type: string
              enum:
              - next_visibility_run
              - next_search_console_window
              - next_crawl
            - type: 'null'
        declarable_since:
          type: string
        diagnosis:
          type: object
          properties:
            what_happened:
              type: array
              items:
                type: object
                properties:
                  opportunity_id:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  rule_id:
                    type: string
                  title:
                    type: string
                  family:
                    type: string
                  priority_score:
                    type: number
                required:
                - opportunity_id
                - rule_id
                - title
                - family
                - priority_score
                additionalProperties: false
            approach:
              type: string
            skill_id:
              type: string
            donts:
              type: array
              items:
                type: string
            measure_with:
              type: array
              items:
                type: string
          additionalProperties: false
        members:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
                pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
              project_id:
                type: string
                format: uuid
                pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
              rule_id:
                type: string
              opportunity_type:
                $ref: '#/components/schemas/OpportunityType'
              severity:
                $ref: '#/components/schemas/OpportunitySeverity'
              priority_score:
                type: number
              title:
                type: string
              target_key:
                type: string
              target_prompt_id:
                anyOf:
                - type: string
                  format: uuid
                  pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                - type: 'null'
              target_url:
                type:
                - string
                - 'null'
              target_theme:
                type:
                - string
                - 'null'
              target_label:
                type:
                - string
                - 'null'
              action_id:
                anyOf:
                - type: string
                  format: uuid
                  pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                - type: 'null'
              system_rank:
                type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
              display_rank:
                type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
              order_source:
                type: string
                enum:
                - system
                - manual
              priority_factors:
                type: object
                propertyNames:
                  type: string
                additionalProperties:
                  type:
                  - string
                  - number
              evidence_summary:
                type: object
                properties:
                  count:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  kinds:
                    type: array
                    items:
                      type: string
                required:
                - count
                - kinds
                additionalProperties: false
              created_at:
                type: string
              updated_at:
                type: string
              remediation:
                type: string
            required:
            - id
            - project_id
            - rule_id
            - opportunity_type
            - severity
            - priority_score
            - title
            - target_key
            - target_prompt_id
            - target_url
            - target_theme
            - target_label
            - action_id
            - system_rank
            - display_rank
            - order_source
            - priority_factors
            - evidence_summary
            - created_at
            - updated_at
            - remediation
            additionalProperties: false
        declaration:
          anyOf:
          - $ref: '#/components/schemas/ActionDeclaration'
          - type: 'null'
      required:
      - id
      - project_id
      - target_kind
      - target_label
      - target_url
      - target_prompt_id
      - origin
      - status
      - priority_score
      - families
      - approach
      - skill_id
      - member_count
      - evidence_cleared_at
      - created_at
      - updated_at
      - member_measurement
      - declarable_since
      - diagnosis
      - members
      - declaration
      additionalProperties: false
    ActionItem:
      type: object
      properties:
        id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        project_id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        target_kind:
          type: string
        target_label:
          type: string
        target_url:
          type:
          - string
          - 'null'
        target_prompt_id:
          anyOf:
          - type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          - type: 'null'
        origin:
          type: string
          enum:
          - evidence
          - agent
        status:
          $ref: '#/components/schemas/ActionStatus'
        priority_score:
          type:
          - number
          - 'null'
        families:
          type: array
          items:
            type: string
        approach:
          type: string
        skill_id:
          type: string
        member_count:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        evidence_cleared_at:
          type:
          - string
          - 'null'
        created_at:
          type: string
        updated_at:
          type: string
      required:
      - id
      - project_id
      - target_kind
      - target_label
      - target_url
      - target_prompt_id
      - origin
      - status
      - priority_score
      - families
      - approach
      - skill_id
      - member_count
      - evidence_cleared_at
      - created_at
      - updated_at
      additionalProperties: false
    KeywordPresenceExpectedCheck:
      type: object
      properties:
        kind:
          type: string
          const: keyword_presence
        keyword:
          type: string
        query_key:
          type: string
        owned_origin:
          type: string
        location_code:
          anyOf:
          - type: integer
            minimum: -9007199254740991
            maximum: 9007199254740991
          - type: 'null'
        language_code:
          type: string
      required:
      - kind
      - keyword
      - query_key
      - owned_origin
      - location_code
      - language_code
      additionalProperties: false
    ActionStatus:
      type: string
      enum:
      - open
      - in_progress
      - implemented
      - measuring
      - done
      - dismissed
    OpportunitySeverity:
      type: string
      enum:
      - critical
      - high
      - medium
      - low
      - info
    ActionDeclaration:
      type: object
      properties:
        id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        action_id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        output_revision_id:
          anyOf:
          - type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          - type: 'null'
        member_opportunity_ids:
          type: array
          items:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        opportunity_snapshot_id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        target_site_url_ids:
          type: array
          items:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        target_external_url:
          type:
          - string
          - 'null'
        declared_implemented_at:
          type: string
        expected_checks:
          type: array
          items:
            $ref: '#/components/schemas/ExpectedCheck'
        state:
          $ref: '#/components/schemas/ImplementationState'
        limitations:
          type: array
          items:
            type: string
        verification_events:
          type: array
          items:
            $ref: '#/components/schemas/VerificationEvent'
        legs:
          type: array
          items:
            $ref: '#/components/schemas/MeasurementLeg'
        checks:
          type: array
          items:
            $ref: '#/components/schemas/DeclarationCheck'
        measured_until:
          type: string
        created_at:
          type: string
      required:
      - id
      - action_id
      - output_revision_id
      - member_opportunity_ids
      - opportunity_snapshot_id
      - target_site_url_ids
      - target_external_url
      - declared_implemented_at
      - expected_checks
      - state
      - limitations
      - verification_events
      - legs
      - checks
      - measured_until
      - created_at
      additionalProperties: false
    ImplementationState:
      type: string
      enum:
      - declared
      - observed
      - verified
      - contradicted
    OpportunityType:
      type: string
      enum:
      - visibility
      - commerce
      - site
      - traffic
      - topic
    VerificationEvent:
      type: object
      properties:
        id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        observation_kind:
          type: string
          enum:
          - observed
          - verified
          - contradicted
        observed_at:
          type: string
        crawl_id:
          anyOf:
          - type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          - type: 'null'
        audit_id:
          anyOf:
          - type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          - type: 'null'
        source_analysis_ids:
          type: array
          items:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        source_rule_evaluation_ids:
          type: array
          items:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        source_metric_ids:
          type: array
          items:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        result:
          type: object
          propertyNames:
            type: string
          additionalProperties: {}
        verifier_version:
          type: string
        limitations:
          type: array
          items:
            type: string
        created_at:
          type: string
      required:
      - id
      - observation_kind
      - observed_at
      - crawl_id
      - audit_id
      - source_analysis_ids
      - source_rule_evaluation_ids
      - source_metric_ids
      - result
      - verifier_version
      - limitations
      - created_at
      additionalProperties: false
    ActionsPage:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/ActionItem'
        next_cursor:
          type:
          - string
          - 'null'
        status_counts:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            type: integer
            minimum: -9007199254740991
            maximum: 9007199254740991
      required:
      - items
      - next_cursor
      - status_counts
      additionalProperties: false
    DeclarationCheck:
      type: object
      properties:
        index:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        kind:
          type: string
        leg:
          type: string
          enum:
          - next_visibility_run
          - next_search_console_window
          - next_crawl
        state:
          type: string
          enum:
          - waiting
          - met
          - unmet
          - unavailable
        reason:
          type:
          - string
          - 'null'
        observed_at:
          type:
          - string
          - 'null'
        source_kind:
          type:
          - string
          - 'null'
        source_id:
          type:
          - string
          - 'null'
        subject:
          type:
          - string
          - 'null'
        prompt_id:
          anyOf:
          - type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          - type: 'null'
      required:
      - index
      - kind
      - leg
      - state
      - reason
      - observed_at
      - source_kind
      - source_id
      - subject
      additionalProperties: false
    ExpectedCheck:
      oneOf:
      - $ref: '#/components/schemas/KeywordPresenceExpectedCheck'
      - type: object
        properties:
          kind:
            type: string
            const: contextual_link
          recommendation_id:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          internal_link_run_id:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          target_site_url_id:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          target_url:
            type: string
          anchor_text:
            type: string
          source_analysis_id:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          source_artifact_id:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          target_analysis_id:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          target_artifact_id:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          extractor_version:
            type: string
        required:
        - kind
        - recommendation_id
        - internal_link_run_id
        - target_site_url_id
        - target_url
        - anchor_text
        - source_analysis_id
        - source_artifact_id
        - target_analysis_id
        - target_artifact_id
        - extractor_version
        additionalProperties: false
      - type: object
        properties:
          kind:
            type: string
            const: site_rule
          target_site_url_id:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          rule_id:
            type: string
          expected_outcome:
            type: string
            enum:
            - pass
            - fail
            - partial
        required:
        - kind
        - rule_id
        - expected_outcome
        additionalProperties: false
      - type: object
        properties:
          kind:
            type: string
            const: traffic_metric
          metric:
            type: string
          direction:
            type: string
            enum:
            - increase
            - decrease
            - equal
          scope:
            type: string
            enum:
            - page
            - query
          scope_key:
            type: string
          min_delta:
            type: number
          baseline_traffic_snapshot_id:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          baseline_value:
            type: number
          baseline_window_days:
            type: integer
            minimum: -9007199254740991
            maximum: 9007199254740991
          expected_value:
            type: number
          tolerance:
            type: number
        required:
        - kind
        - metric
        - direction
        additionalProperties: false
      - type: object
        properties:
          kind:
            type: string
            const: visibility_metric
          metric:
            type: string
          direction:
            type: string
            enum:
            - increase
            - decrease
            - equal
          min_delta:
            type: number
          tolerance:
            type: number
          target_prompt_id:
            anyOf:
            - type: string
              format: uuid
              pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            - type: 'null'
          baseline_metric_snapshot_id:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          baseline_value:
            type: number
        required:
        - kind
        - metric
        - direction
        - min_delta
        - tolerance
        - target_prompt_id
        additionalProperties: false
    MeasurementLeg:
      type: object
      properties:
        leg:
          type: string
          enum:
          - next_visibility_run
          - next_search_console_window
          - next_crawl
        state:
          type: string
          enum:
          - waiting
          - not_scheduled
          - sync_needed
          - observed
        due_at:
          type:
          - string
          - 'null'
        last_evidence_at:
          type:
          - string
          - 'null'
        source_id:
          anyOf:
          - type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          - type: 'null'
      required:
      - leg
      - state
      - due_at
      - last_evidence_at
      - source_id
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'An API key created in Settings → API keys, sent as `Authorization: Bearer cl_live_…`.'