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

# Get Sync Error Digest

> Get a bounded digest of classified, redacted recent errors rather than raw log pages.



## OpenAPI

````yaml https://spec.speakeasy.com/conductor-one/conductorone/my-source-with-code-samples get /api/v1/apps/{app_id}/connectors/{connector_id}/sync_diagnostics/error_digest
openapi: 3.1.0
info:
  description: The C1 API is a HTTP API for managing C1 resources.
  title: C1 API
  version: 0.1.0-alpha
servers:
  - description: The C1 API server for the current tenant.
    url: https://{tenantDomain}.conductor.one
    variables:
      tenantDomain:
        default: example
        description: The domain of the tenant to use for this request.
security:
  - bearerAuth: []
    oauth: []
paths:
  /api/v1/apps/{app_id}/connectors/{connector_id}/sync_diagnostics/error_digest:
    get:
      tags:
        - Connector Sync Diagnostics
      summary: Get Sync Error Digest
      description: >-
        Get a bounded digest of classified, redacted recent errors rather than
        raw log pages.
      operationId: c1.api.app.v1.ConnectorSyncDiagnosticsService.GetSyncErrorDigest
      parameters:
        - in: path
          name: app_id
          required: true
          schema:
            description: Application containing the connector.
            type: string
        - in: path
          name: connector_id
          required: true
          schema:
            description: Connector whose recent errors are requested.
            type: string
        - in: query
          name: top_k
          schema:
            description: Maximum distinct messages, up to 20; zero uses the default.
            format: int32
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/c1.api.app.v1.GetSyncErrorDigestResponse'
          description: >-
            GetSyncErrorDigestResponse contains a fresh bounded summary of
            recent errors, using structured errors and heuristic activity
            matching.
      x-codeSamples:
        - lang: go
          label: GetSyncErrorDigest
          source: "package main\n\nimport(\n\t\"context\"\n\t\"github.com/conductorone/conductorone-sdk-go/pkg/models/shared\"\n\tconductoronesdkgo \"github.com/conductorone/conductorone-sdk-go\"\n\t\"github.com/conductorone/conductorone-sdk-go/pkg/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n    ctx := context.Background()\n\n    s := conductoronesdkgo.New(\n        conductoronesdkgo.WithSecurity(shared.Security{\n            BearerAuth: \"<YOUR_BEARER_TOKEN_HERE>\",\n            Oauth: \"<YOUR_OAUTH_HERE>\",\n        }),\n    )\n\n    res, err := s.ConnectorSyncDiagnostics.GetSyncErrorDigest(ctx, operations.C1APIAppV1ConnectorSyncDiagnosticsServiceGetSyncErrorDigestRequest{\n        AppID: \"<id>\",\n        ConnectorID: \"<id>\",\n    })\n    if err != nil {\n        log.Fatal(err)\n    }\n    if res.GetSyncErrorDigestResponse != nil {\n        // handle response\n    }\n}"
components:
  schemas:
    c1.api.app.v1.GetSyncErrorDigestResponse:
      description: >-
        GetSyncErrorDigestResponse contains a fresh bounded summary of recent
        errors, using structured errors and heuristic activity matching.
      properties:
        entries:
          description: >-
            Most frequent distinct redacted messages, with deterministic tie
            ordering.
          items:
            $ref: '#/components/schemas/c1.api.app.v1.SyncErrorDigestEntry'
          type:
            - array
            - 'null'
      title: Get Sync Error Digest Response
      type: object
      x-speakeasy-name-override: GetSyncErrorDigestResponse
    c1.api.app.v1.SyncErrorDigestEntry:
      description: SyncErrorDigestEntry groups occurrences sharing the same redacted text.
      properties:
        count:
          description: >-
            Occurrences observed in the bounded scan, not an exhaustive log
            count.
          format: int32
          type: integer
        errorClass:
          description: Likely failure family.
          enum:
            - SYNC_ERROR_CLASS_UNSPECIFIED
            - SYNC_ERROR_CLASS_AUTH_OR_SCOPE
            - SYNC_ERROR_CLASS_RATE_LIMIT
            - SYNC_ERROR_CLASS_TIMEOUT
            - SYNC_ERROR_CLASS_UPSTREAM_CONSISTENCY
            - SYNC_ERROR_CLASS_CONNECTOR_BUG
            - SYNC_ERROR_CLASS_STORAGE
            - SYNC_ERROR_CLASS_DATA_ANOMALY
            - SYNC_ERROR_CLASS_RUNTIME_REFUSED
            - SYNC_ERROR_CLASS_DEPLOYMENT
            - SYNC_ERROR_CLASS_UNKNOWN
          type: string
          x-speakeasy-unknown-values: allow
        firstSeenAt:
          format: date-time
          type:
            - string
            - 'null'
        lastSeenAt:
          format: date-time
          type:
            - string
            - 'null'
        step:
          description: Known sync step name, absent if it cannot be established.
          type: string
        summary:
          description: Distinct redacted message, capped at 256 bytes.
          type: string
      title: Sync Error Digest Entry
      type: object
      x-speakeasy-name-override: SyncErrorDigestEntry
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http
    oauth:
      description: >-
        This API uses OAuth2 with the Client Credential flow.

        Client Credentials must be sent in the BODY, not the headers.

        For an example of how to implement this, refer to the
        [c1TokenSource.Token()](https://github.com/ConductorOne/conductorone-sdk-go/blob/3375fe7c0126d17e7ec4e711693dee7b791023aa/token_source.go#L101-L187)
        function.
      flows:
        clientCredentials:
          scopes: {}
          tokenUrl: /auth/v1/token
      type: oauth2

````