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

# Queue cross-integration canonical_id reconciliation (Wirespeed internal only)

> Always runs for the **current team** from the authenticated request (CLS `teamId`); the job payload does not accept a team id. `FunctionService.sendJob` attaches that team id to the background job. Each requested scope is enqueued as its own background job (one scope per BullMQ job).



## OpenAPI

````yaml https://api.wirespeed.co/v1/openapi.json post /v1/team/reconcile-canonical-assets
openapi: 3.0.0
info:
  title: Wirespeed API
  description: The public Wirespeed API. v1 is the first stable contract.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.wirespeed.co
security: []
tags: []
paths:
  /v1/team/reconcile-canonical-assets:
    post:
      tags:
        - Team
      summary: >-
        Queue cross-integration canonical_id reconciliation (Wirespeed internal
        only)
      description: >-
        Always runs for the **current team** from the authenticated request (CLS
        `teamId`); the job payload does not accept a team id.
        `FunctionService.sendJob` attaches that team id to the background job.
        Each requested scope is enqueued as its own background job (one scope
        per BullMQ job).
      operationId: TeamController_queueReconcileCanonicalAssets
      parameters: []
      requestBody:
        required: true
        description: >-
          Optional `scopes` only. Reconciliation targets the current team, not a
          team id in the body.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReconcileCanonicalAssetsBodyDto'
      responses:
        '202':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReconcileCanonicalAssetsQueuedResponse'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
      security:
        - bearer: []
components:
  schemas:
    ReconcileCanonicalAssetsBodyDto:
      type: object
      properties:
        scopes:
          type: array
          description: >-
            Which asset kinds to reconcile for the **current team** (from auth
            context). When omitted, both directory users and endpoints are
            included.
          items:
            type: string
            enum:
              - users
              - endpoints
    ReconcileCanonicalAssetsQueuedResponse:
      type: object
      properties:
        accepted:
          type: boolean
          description: Job was accepted onto the background queue
      required:
        - accepted
    HttpError:
      type: object
      properties:
        message:
          type: string
        statusCode:
          type: number
      required:
        - message
        - statusCode
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````