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

# List all analytics embeds for a business



## OpenAPI

````yaml /openapi.json get /businesses/{id}/analytics_embeds
openapi: 3.0.3
info:
  title: Pocketflows API
  version: 0.0.4
servers:
  - url: https://api.pocketflows.com
    description: Production server
security:
  - HttpBasicAuth: []
paths:
  /businesses/{id}/analytics_embeds:
    get:
      tags:
        - Analytics embeds
      summary: List all analytics embeds for a business
      parameters:
        - in: path
          name: id
          schema:
            type: string
          description: The ID of the business
          required: true
      responses:
        '200':
          description: >-
            A dictionary with an `analytics_embeds` property that contains an
            array of `AnalyticsEmbed` objects
          content:
            application/json:
              schema:
                type: object
                properties:
                  analytics_embeds:
                    type: array
                    items:
                      $ref: '#/components/schemas/AnalyticsEmbed'
                    description: List of analytics embeds
                required:
                  - analytics_embeds
components:
  schemas:
    AnalyticsEmbed:
      type: object
      properties:
        id:
          type: string
          description: The ID of the analytics embed
        business:
          type: string
          description: The business associated with this analytics embed
        created_at:
          type: string
          description: The creation date of the analytics embed in ISO 8601 format
        expires_at:
          type: string
          description: The expiration date of the analytics embed in ISO 8601 format
        website_url:
          type: string
          description: The website URL where the analytics script is installed
        last_script_request_at:
          type: string
          nullable: true
          description: The last time the analytics script was detected on the website
        last_event_at:
          type: string
          nullable: true
          description: The timestamp of the most recent attribution event
      required:
        - id
        - business
        - created_at
        - expires_at
        - website_url
        - last_script_request_at
        - last_event_at
      title: The Analytics Embed object
  securitySchemes:
    HttpBasicAuth:
      type: http
      scheme: basic

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.