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

# Get brand-adherence verdict

> Returns the verdict for a brand-adherence job: one `score`, the `recommendations`, and the `fixes`.

The verdict streams in: while the job runs you may receive a `200` with a partial verdict (components the run has not produced yet stay `null` or empty), and before the first component lands you receive `409 NOT_READY`. Keep polling until `status` is `completed`. A failed job returns `424` and will never produce a verdict, so stop polling on it.

Authentication is optional here: with a valid key you can read your own jobs; without one, only jobs made public are returned.



## OpenAPI

````yaml api-reference/openapi.json GET /judge/brand-adherence/{job_id}/result
openapi: 3.1.0
info:
  title: Taste Engine Design API
  version: 1.0.0
  description: >-
    Public REST API for the Taste Engine. Submit a URL, extract a structured
    design system from any website, search the brand corpus by aesthetic, and
    ground prompts in real brand profiles.


    All requests are authenticated with an API key sent in the `X-API-Key`
    header. Create one directly in the Engine dashboard at
    https://engine.tastelabs.com/app/api-keys.
  contact:
    name: Taste Engine Support
    email: support@thetaste.ai
servers:
  - url: https://api.tastelabs.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Account
    description: Identity of the authenticated API key holder.
  - name: Submissions
    description: >-
      Create and track extraction jobs, then retrieve the resulting design
      system.
  - name: Prompts
    description: Rewrite prompts grounded in an extracted brand profile.
  - name: Search
    description: >-
      Find brands in the curated corpus by describing an aesthetic, or by
      similarity to one of your own extractions.
  - name: Brand adherence
    description: >-
      Judge how well a page adheres to a reference site's brand: submit a pair
      of URLs, poll the job, then read the verdict.
paths:
  /judge/brand-adherence/{job_id}/result:
    get:
      tags:
        - Brand adherence
      summary: Get brand-adherence verdict
      description: >-
        Returns the verdict for a brand-adherence job: one `score`, the
        `recommendations`, and the `fixes`.


        The verdict streams in: while the job runs you may receive a `200` with
        a partial verdict (components the run has not produced yet stay `null`
        or empty), and before the first component lands you receive `409
        NOT_READY`. Keep polling until `status` is `completed`. A failed job
        returns `424` and will never produce a verdict, so stop polling on it.


        Authentication is optional here: with a valid key you can read your own
        jobs; without one, only jobs made public are returned.
      operationId: getBrandAdherenceVerdict
      parameters:
        - $ref: '#/components/parameters/AdherenceJobId'
      responses:
        '200':
          description: The verdict. May be partial while the job runs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdherenceVerdict'
              example:
                job_id: 0f5b2c9a-6a1e-4b0e-9f0e-1c2d3e4f5a6b
                status: completed
                reference_url: https://stripe.com
                source_url: https://staging.example.com
                is_public: false
                accepted_at: '2026-08-25T12:00:00Z'
                completed_at: '2026-08-25T12:01:10Z'
                score: 0.85
                recommendations:
                  - >-
                    Snap the hero heading from 44px to 48px to match the
                    reference type scale.
                fixes:
                  - action: snap_to_token
                    property: font_size
                    from: 44px
                    to_value: 48px
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: The verdict is not ready yet. Keep polling.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail:
                  error: NOT_READY
                  message: Brand adherence job is extracting
        '424':
          description: >-
            The job failed permanently. No verdict will be produced, so stop
            polling.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail:
                  error: BRAND_ADHERENCE_FAILED
                  message: Brand adherence job failed
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - ApiKeyAuth: []
        - {}
components:
  parameters:
    AdherenceJobId:
      name: job_id
      in: path
      required: true
      description: >-
        Brand-adherence job identifier, as returned by `POST
        /judge/brand-adherence`.
      schema:
        type: string
  schemas:
    AdherenceVerdict:
      type: object
      description: >-
        The verdict for a brand-adherence job: one score plus recommendations
        and fixes.
      properties:
        job_id:
          type: string
        status:
          $ref: '#/components/schemas/AdherenceStatus'
        reference_url:
          type: string
          format: uri
        source_url:
          type: string
          format: uri
        is_public:
          type: boolean
        accepted_at:
          type: string
          format: date-time
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
        score:
          type:
            - number
            - 'null'
          minimum: 0
          maximum: 1
          description: >-
            How well the source page follows the reference brand. `null` until
            the run has produced at least one scored component.
        recommendations:
          type: array
          items:
            type: string
          description: >-
            Recommendation strings, worst-first, with exact target values.
            Capped at 20.
        fixes:
          type: array
          items:
            type: object
            additionalProperties: true
          description: >-
            Structured fix objects, worst-first, capped at 20. Each carries an
            `action` discriminator (e.g. `snap_to_token`, `add_color_token`)
            plus fields specific to that action.
      required:
        - job_id
        - status
        - reference_url
        - source_url
        - accepted_at
        - score
        - recommendations
        - fixes
    Error:
      type: object
      description: >-
        Standard error envelope for non-2xx responses: the machine-readable
        `error` code and the human-readable `message` are nested under `detail`.
        Validation errors (`422`) and search failures (`502`, `503`) shape
        `detail` differently; see those responses.
      properties:
        detail:
          type: object
          properties:
            error:
              type: string
              description: Machine-readable error code.
              examples:
                - UNAUTHORIZED
                - FORBIDDEN
                - NOT_FOUND
                - NOT_READY
            message:
              type: string
              description: Human-readable explanation of the error.
          required:
            - error
            - message
          additionalProperties: true
      required:
        - detail
    AdherenceStatus:
      type: string
      description: Lifecycle status of a brand-adherence job.
      enum:
        - accepted
        - extracting
        - judging
        - completed
        - failed
  responses:
    NotFound:
      description: The resource was not found or is not accessible with these credentials.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            detail:
              error: NOT_FOUND
              message: Submission not found
    InternalError:
      description: An unexpected server error occurred. The body is plain text.
      content:
        text/plain:
          example: Internal Server Error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key issued by the Taste Engine. Create one in the dashboard at
        https://engine.tastelabs.com/app/api-keys.

````