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

# Get generated content processing status



## OpenAPI

````yaml /openapi.yaml get /generated-content/{id}
openapi: 3.0.1
info:
  title: Interchange Public API
  version: 0.4.0
servers:
  - url: https://api.interchange.lotiai.com/v1
    description: Production
  - url: https://preview.api.interchange.lotiai.com/v1
    description: Preview
security:
  - ApiKeyAuth: []
paths:
  /generated-content/{id}:
    get:
      tags:
        - Interchange
      summary: Get generated content processing status
      parameters:
        - schema:
            $ref: '#/components/schemas/UUIDv7'
          in: path
          name: id
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeneratedContentStatusResponse'
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: >-
            The server response budget was exceeded. The operation may still
            complete; check its state before retrying a non-idempotent request.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
                    enum:
                      - handler_timed_out
components:
  schemas:
    UUIDv7:
      type: string
      format: uuid
      pattern: >-
        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
    GeneratedContentStatusResponse:
      oneOf:
        - $ref: '#/components/schemas/__schema27'
        - $ref: '#/components/schemas/__schema28'
        - $ref: '#/components/schemas/__schema35'
      type: object
      discriminator:
        propertyName: status
        mapping:
          processing:
            $ref: '#/components/schemas/__schema27'
          completed:
            $ref: '#/components/schemas/__schema28'
          failed:
            $ref: '#/components/schemas/__schema35'
    Error:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/__schema21'
      required:
        - error
      additionalProperties: false
      description: Error payload with error message string.
    __schema27:
      type: object
      properties:
        status:
          type: string
          enum:
            - processing
      required:
        - status
      additionalProperties: false
    __schema28:
      type: object
      properties:
        status:
          type: string
          enum:
            - completed
        result:
          $ref: '#/components/schemas/PostGeneratedContentResponse'
      required:
        - status
        - result
      additionalProperties: false
    __schema35:
      type: object
      properties:
        status:
          type: string
          enum:
            - failed
        error:
          type: string
          enum:
            - generated_content_processing_failed
      required:
        - status
        - error
      additionalProperties: false
    __schema21:
      type: string
    PostGeneratedContentResponse:
      type: object
      properties:
        complianceResult:
          $ref: '#/components/schemas/ComplianceResult'
        complianceFailureReason:
          $ref: '#/components/schemas/__schema29'
        pricingResult:
          $ref: '#/components/schemas/__schema30'
      required:
        - complianceResult
        - complianceFailureReason
        - pricingResult
      additionalProperties: false
    ComplianceResult:
      type: string
      enum:
        - compliant
        - not_compliant
      description: >-
        Indicator of whether a prompt or generated content complies with
        detected identities' rules.
    __schema29:
      nullable: true
      type: string
    __schema30:
      nullable: true
      allOf:
        - $ref: '#/components/schemas/PricingResult'
    PricingResult:
      type: object
      properties:
        totalPriceMicros:
          $ref: '#/components/schemas/__schema31'
        priceMicrosByIdentity:
          $ref: '#/components/schemas/__schema32'
      required:
        - totalPriceMicros
        - priceMicrosByIdentity
      additionalProperties: false
      description: Aggregated pricing result mapped by identity.
    __schema31:
      nullable: true
      type: integer
      minimum: 0
      maximum: 9007199254740991
    __schema32:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/PricingComponent'
    PricingComponent:
      type: object
      properties:
        totalPriceMicros:
          $ref: '#/components/schemas/__schema33'
        rateCardId:
          $ref: '#/components/schemas/UUIDv7'
        name:
          $ref: '#/components/schemas/__schema34'
      required:
        - totalPriceMicros
        - rateCardId
        - name
      additionalProperties: false
      description: Breakdown of pricing for a single identity/rate card.
    __schema33:
      type: integer
      minimum: 0
      maximum: 9007199254740991
    __schema34:
      nullable: true
      type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key issued for Interchange; reach out to Loti to obtain an API key.

````