VectoralDocsWebsite
API referenceView Markdown

Integration coverage

Which signals your live requests actually carry, and which abuse patterns you consequently cannot detect. Answers "what could I send" and "what am I sending" in one call, so it is useful before you have sent anything — every field is listed even at calls: 0.

Detection identifiers in detects are a stable contract. The internal features implementing them are not, and are never named in a response. New identifiers may appear as detections are added, so treat an unrecognised one as informational rather than an error.

Always available — not behind the import flag. Counts live traffic only; imported rows never appear here.

Which signals your requests actually carry, and which abuse patterns you consequently cannot detect. It answers "what could I send" and "what am I sending" in one call.

Point it at a fresh integration and it tells you what to wire up next; point it at a mature one and it tells you what regressed. Every field is listed even when you have sent nothing, so it is useful before your first request.

bash
curl "https://api.vectoral.cloud/v1/integration/status?window=7d" \
  -H "Authorization: Bearer vg_live_xxx"

How to read it

Work the signals list in tier order — required, then high_yield, then optional. Each entry names the detects identifiers it unlocks, so a field at present: 0.0 translates directly into detections you are not getting.

detections_unavailable is the same story from the other end: the set of abuse patterns nothing in the window backs.

window is one of 1h, 24h, 7d, or 30d, defaulting to 7d; anything else, including an empty value, is a 400. Only live traffic counts — imported rows never appear here.

What's stable and what isn't

detects identifiers are part of the API contract: an identifier already published keeps its meaning. The set is open — new identifiers appear as detections are added — so treat an unrecognised one as informational rather than an error.

The internal features implementing a detection are not contractual and are never named in a response. description and note are prose for humans; do not parse them.

Reading the exposure identifiers

Three identifiers — unmetered_spend, spend_velocity, and concurrent_burst — describe an account's relationship to metering rather than its conduct. Read them as exposure, not accusation.

A high unmetered_spend is the ordinary shape for an integration that scores a human turn and lets an agent loop fan out beneath it. That is a defensible design; what the identifier tells you is that a spend cap on that account would only ever see a fraction of what it spends.

Likewise the cross-account identifiers (account_farm_shared_toolchain, account_farm_shared_model, coordinated_activity, coordinated_signup) describe your account population, not one user's behavior. A group can be coordinated because it is one operator's fleet — or because it is your own test infrastructure.

OpenAPI

GET/v1/integration/status

Parameters

NameLocationTypeDescription
windowOptionalquery1h | 24h | 7d | 30d

Lookback window. Defaults to 7d when omitted. Any other value — including an empty window= — is a 400.

Response 200

Coverage report

FieldTypeDescription
windowRequired1h | 24h | 7d | 30d

Echo of the requested window, or 7d when none was given.

estimatedRequiredboolean

true when any payload had more than 1,000,000 calls in the window, in which case its per-signal counts came from an approximately 1% table sample.

detections_unavailableRequiredstring[]

Detections nothing in the window backs. A set, not a count. Empty when you have no traffic at all — absence of data is not absence of signal. A payload at calls: 0 contributes nothing here.

payloadsRequiredobject[]

Always three entries, in this order: /v1/score, /v1/events/post-call, /v1/identity.

Response 400

window is not one of the allowed values.

FieldTypeDescription
errorRequiredstring

Human-readable message. Not stable — don't parse it.

Response 401

Missing, malformed, unknown, expired, or revoked API key.

FieldTypeDescription
errorRequiredstring

Human-readable message. Not stable — don't parse it.

Response 500

Server-side failure computing the report.

FieldTypeDescription
errorRequiredstring

Human-readable message. Not stable — don't parse it.

View complete OpenAPI definition
yaml
openapi: 3.1.0
info:
  title: Vectoral API
  version: 1.0.0
  description: >-
    Fraud and abuse detection for AI app builders. Score the accounts hitting
    your AI features and catch the abuse draining your inference budget.
servers:
  - url: https://api.vectoral.cloud
    description: Hosted
  - url: http://localhost:8080
    description: Self-hosted (default bind)
security:
  - bearerAuth: []
paths:
  /v1/integration/status:
    get:
      tags:
        - Integration
      summary: Integration coverage
      description: >-
        Which signals your live requests actually carry, and which abuse
        patterns you consequently cannot detect. Answers "what could I send" and
        "what am I sending" in one call, so it is useful **before** you have
        sent anything — every field is listed even at `calls: 0`.


        Detection identifiers in `detects` are a stable contract. The internal
        features implementing them are not, and are never named in a response.
        New identifiers may appear as detections are added, so treat an
        unrecognised one as informational rather than an error.


        Always available — not behind the import flag. Counts **live** traffic
        only; imported rows never appear here.
      operationId: integrationStatus
      parameters:
        - name: window
          in: query
          schema:
            type: string
            enum:
              - 1h
              - 24h
              - 7d
              - 30d
            default: 7d
          description: >-
            Lookback window. Defaults to `7d` when omitted. Any other value —
            including an empty `window=` — is a `400`.
      responses:
        '200':
          description: Coverage report
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationStatus'
              example:
                window: 7d
                estimated: false
                detections_unavailable:
                  - account_farm_shared_script
                  - headless_usage
                payloads:
                  - endpoint: /v1/score
                    calls: 4210
                    signals:
                      - path: request.prompt_fingerprint.band_keys
                        tier: high_yield
                        present: 0
                        detects:
                          - account_farm_shared_script
                        sends_prompt_content: false
                        description: >-
                          16 LSH band keys derived from the prompt's MinHash, as
                          decimal strings. Produced by the same library as the
                          fingerprint.
                        note: >-
                          Optional inside the fingerprint block and the single
                          highest-yield signal here.
                  - endpoint: /v1/events/post-call
                    calls: 4180
                    signals: []
                  - endpoint: /v1/identity
                    calls: 0
                    signals:
                      - path: account_id
                        tier: required
                        present: null
                        detects: []
                        sends_prompt_content: false
                        description: The account this identity event belongs to.
                        note: >-
                          Required, and it must match the identifier you use on
                          score calls.
        '400':
          description: '`window` is not one of the allowed values.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: window must be one of 1h, 24h, 7d, 30d
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          description: Server-side failure computing the report.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: read integration status
components:
  schemas:
    IntegrationStatus:
      type: object
      properties:
        window:
          type: string
          enum:
            - 1h
            - 24h
            - 7d
            - 30d
          description: Echo of the requested window, or `7d` when none was given.
          example: 7d
        estimated:
          type: boolean
          description: >-
            `true` when any payload had more than 1,000,000 calls in the window,
            in which case its per-signal counts came from an approximately 1%
            table sample.
          example: false
        detections_unavailable:
          type: array
          items:
            type: string
          description: >-
            Detections nothing in the window backs. A **set**, not a count.
            Empty when you have no traffic at all — absence of data is not
            absence of signal. A payload at `calls: 0` contributes nothing here.
          example:
            - account_farm_shared_script
            - headless_usage
        payloads:
          type: array
          items:
            $ref: '#/components/schemas/IntegrationPayload'
          description: >-
            Always three entries, in this order: `/v1/score`,
            `/v1/events/post-call`, `/v1/identity`.
      required:
        - window
        - estimated
        - detections_unavailable
        - payloads
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: account_id required
          description: Human-readable message. Not stable — don't parse it.
      required:
        - error
      description: >-
        Uniform error envelope. The message is for humans and is not stable;
        branch on the HTTP status.
    IntegrationPayload:
      type: object
      properties:
        endpoint:
          type: string
          enum:
            - /v1/score
            - /v1/events/post-call
            - /v1/identity
          description: 'All three are always listed, even at `calls: 0`.'
          example: /v1/score
        calls:
          type: integer
          description: >-
            Live calls to that endpoint in the window. **Its own denominator** —
            imported rows never count. For score and post-call, calls with no
            stored request body are excluded rather than counted as absent.
          example: 4210
        signals:
          type: array
          items:
            $ref: '#/components/schemas/IntegrationSignal'
          description: >-
            Every catalogued signal for that endpoint, ordered `required` →
            `high_yield` → `optional`. Listed even at `calls: 0`.
      required:
        - endpoint
        - calls
        - signals
    IntegrationSignal:
      type: object
      properties:
        path:
          type: string
          description: >-
            Dotted path into that endpoint's body. `/v1/identity` stores no
            request body, so its `ip` and `ip_hash` are reported jointly as
            `ip_or_ip_hash` — both are stored hashed and we cannot tell which
            form you sent.
          example: request.prompt_fingerprint.band_keys
        tier:
          type: string
          enum:
            - required
            - high_yield
            - optional
          description: The order to do the work in.
          example: high_yield
        present:
          type:
            - number
            - 'null'
          description: >-
            Fraction of that payload's calls carrying the signal. **`null` when
            `calls` is 0** — that means "no traffic in this window", not "you
            are not sending it".
          example: 0
        detects:
          type: array
          items:
            type: string
          description: >-
            Detection identifiers this signal enables — `[]` when it backs none.
            **Stable — safe to depend on.** The set is open: treat an
            unrecognised identifier as informational.
          example:
            - account_farm_shared_script
        sends_prompt_content:
          type: boolean
          description: >-
            `true` if the signal transmits prompt content, so you can route it
            through a policy review.
          example: false
        description:
          type: string
          description: What the field is. **Informational only — do not parse.**
        note:
          type: string
          description: Our guidance on sending it. **Informational only — do not parse.**
      required:
        - path
        - tier
        - present
        - detects
        - sends_prompt_content
        - description
        - note
  responses:
    Unauthorized:
      description: Missing, malformed, unknown, expired, or revoked API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missing:
              summary: No or malformed Authorization header
              value:
                error: 'missing or malformed Authorization: Bearer <api key>'
            invalid:
              summary: Unknown, expired, or revoked key
              value:
                error: invalid, expired, or revoked api key
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your secret API key: `vg_live_` followed by 43 base64url characters.
        Send it as `Authorization: Bearer vg_live_…` on every `/v1` request
        (except `POST /v1/sensor/collect`, which uses a publishable site key in
        the body).

Search guides, concepts, and API endpoints.