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

# Retrieve participant breakdown by external ID

> Lee el desglose de participaciones del evento de Marketing con filtros opcionales por el par de externalAccountId y externalEventId.

export const ScopesList = ({scopes = [], description = "Esta API requiere uno de los siguientes ámbitos:"}) => {
  if (!scopes || scopes.length === 0) {
    return null;
  }
  const sortedScopes = scopes.sort((a, b) => a.localeCompare(b));
  return <div>
      <div className="text-sm mb-2">{description}</div>
      <div>
        {sortedScopes.map((scope, index) => <div key={index}>
            <code>
              <span className="text-xs">{scope}</span>
            </code>
          </div>)}
      </div>
    </div>;
};

export const SupportedProducts = ({marketing, sales, service, cms, marketingLevel, salesLevel, serviceLevel, cmsLevel}) => {
  const translations = {
    header: "Productos compatibles",
    description: "Se requiere uno de los siguientes productos o productos de ediciones superiores.",
    productNames: {
      marketing: "Marketing Hub",
      sales: "Sales Hub",
      service: "Service Hub",
      cms: "Content Hub"
    },
    tiers: {
      free: "Gratuito",
      starter: "Starter",
      professional: "Pro",
      enterprise: "Enterprise"
    }
  };
  const translateTier = tier => {
    if (!tier) return '';
    const lowerTier = tier.toLowerCase();
    return translations.tiers[lowerTier] || tier;
  };
  const products = [{
    name: marketing ? translations.productNames.marketing : '',
    level: translateTier(marketingLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/marketing-bolt.svg",
    alt: "Marketing Hub"
  }, {
    name: sales ? translations.productNames.sales : '',
    level: translateTier(salesLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/sales-star.svg",
    alt: "Sales Hub"
  }, {
    name: service ? translations.productNames.service : '',
    level: translateTier(serviceLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/service-heart.svg",
    alt: "Service Hub"
  }, {
    name: cms ? translations.productNames.cms : '',
    level: translateTier(cmsLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/content-play.svg",
    alt: "Content Hub"
  }].filter(product => product.name && product.level);
  if (products.length === 0) return null;
  return <div>
      <div className="text-sm mb-2">{translations.description}</div>
      <div className={`grid ${products.length === 1 ? 'grid-cols-1' : 'grid-cols-2'} gap-1.5`}>
        {products.map((product, index) => <div key={index} style={{
    display: 'flex',
    alignItems: 'center'
  }}>
            <img src={product.icon} alt={product.alt} className="w-3.5 h-3.5 mr-1.5 mt-2.5 mb-2.5 flex-shrink-0 align-middle" />
            <span className="font-medium mr-1 text-sm">{product.name} -</span>
            <span className="text-sm">{product.level}</span>
          </div>)}
      </div>
    </div>;
};

<AccordionGroup>
  <Accordion title="Supported products" defaultOpen="true" icon="cubes">
    <SupportedProducts marketing={true} sales={true} service={true} cms={true} marketingLevel="FREE" salesLevel="FREE" serviceLevel="FREE" cmsLevel="FREE" />
  </Accordion>

  <Accordion title="Required Scopes" icon="key">
    <ScopesList
      scopes={[
  'crm.objects.marketing_events.read'
]}
    />
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml specs/legacy/v3/marketing-marketing-events-v3.json GET /marketing/v3/marketing-events/participations/{externalAccountId}/{externalEventId}/breakdown
openapi: 3.0.1
info:
  title: Marketing Marketing Events
  description: Basepom for all HubSpot Projects
  version: v3
  x-hubspot-product-tier-requirements:
    marketing: FREE
    sales: FREE
    service: FREE
    cms: FREE
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
  x-hubspot-related-documentation:
    - name: Marketing Events Guide
      url: >-
        https://developers.hubspot.com/docs/guides/api/marketing/marketing-events
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Basic
  - name: Batch
  - name: Event Attendees
  - name: Event Status
  - name: Identifiers
  - name: List Associations
  - name: Participant State
  - name: Settings
  - name: Subscriber State Changes
paths:
  /marketing/v3/marketing-events/participations/{externalAccountId}/{externalEventId}/breakdown:
    get:
      tags:
        - Participant State
      summary: >-
        Leer el desglose de participaciones por el identificador externo del
        Evento de Marketing
      description: >-
        Lee el desglose de participaciones del evento de Marketing con filtros
        opcionales por el par de externalAccountId y externalEventId.
      operationId: >-
        get-/marketing/v3/marketing-events/participations/{externalAccountId}/{externalEventId}/breakdown_getParticipationsBreakdownByExternalEventId
      parameters:
        - name: externalAccountId
          in: path
          description: >-
            El accountId que está asociado con este evento de marketing en la
            aplicación de eventos externos.
          required: true
          style: simple
          explode: false
          schema:
            type: string
        - name: externalEventId
          in: path
          description: El id del evento de marketing en la aplicación de eventos externos.
          required: true
          style: simple
          explode: false
          schema:
            type: string
        - name: after
          in: query
          description: El cursor que indica la posición del último elemento recuperado.
          required: false
          style: form
          explode: true
          schema:
            type: string
        - name: contactIdentifier
          in: query
          description: El identificador del contacto. Puede ser un correo o un id interno.
          required: false
          style: form
          explode: true
          schema:
            type: string
        - name: limit
          in: query
          description: >-
            El límite para el tamaño de la respuesta. El valor predeterminado es
            10; el número máximo es 100.
          required: false
          style: form
          explode: true
          schema:
            type: integer
            format: int32
            default: 10
        - name: state
          in: query
          description: >-
            El valor del estado de participación. Puede ser REGISTERED,
            CANCELLED, ATTENDED, NO_SHOW
          required: false
          style: form
          explode: true
          schema:
            type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/CollectionResponseWithTotalParticipationBreakdown
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - crm.objects.marketing_events.read
components:
  schemas:
    CollectionResponseWithTotalParticipationBreakdown:
      required:
        - results
        - total
      type: object
      properties:
        paging:
          $ref: '#/components/schemas/Paging'
        results:
          type: array
          items:
            $ref: '#/components/schemas/ParticipationBreakdown'
        total:
          type: integer
          format: int32
    Paging:
      type: object
      properties:
        next:
          $ref: '#/components/schemas/NextPage'
        prev:
          $ref: '#/components/schemas/PreviousPage'
    ParticipationBreakdown:
      required:
        - associations
        - createdAt
        - id
        - properties
      type: object
      properties:
        associations:
          $ref: '#/components/schemas/ParticipationAssociations'
        createdAt:
          type: string
          description: La fecha y hora de creación del evento de marketing objetivo
          format: date-time
        id:
          type: string
          description: El ID interno del evento de marketing objetivo
        properties:
          $ref: '#/components/schemas/ParticipationProperties'
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: La categoría del error
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Contexto de la condición de error
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: >-
            Un identificador único para la solicitud. Incluye este valor con
            cualquier informe de error o ticket de asistencia.
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: información adicional acerca del error
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: >-
            Un mapa de nombres de enlaces a las URI asociadas que contienen
            documentación sobre el error o los pasos recomendados para
            solucionarlo
        message:
          type: string
          description: >-
            Un mensaje legible en el que se describa el error y los pasos para
            solucionarlo, si procede
          example: An error occurred
        subCategory:
          type: string
          description: >-
            Una categoría específica que contiene detalles más concretos acerca
            del error
      example:
        message: Invalid input (details will vary based on the error)
        correlationId: aeb5f871-7f07-4993-9211-075dc63e7cbf
        category: VALIDATION_ERROR
        links:
          knowledge-base: https://www.hubspot.com/products/service/knowledge-base
    NextPage:
      required:
        - after
      type: object
      properties:
        after:
          type: string
          description: El elemento ID al principio de la página
        link:
          type: string
          description: Enlace a la página siguiente
      description: >-
        Especifica la información de paginación necesaria para obtener el
        siguiente conjunto de resultados en una respuesta paginada de la API
    PreviousPage:
      required:
        - before
      type: object
      properties:
        before:
          type: string
          description: A paging cursor token for retrieving previous pages.
        link:
          type: string
          description: A URL that can be used to retrieve the previous pages' results.
      description: >-
        specifies the paging information needed to retrieve the previous set of
        results in a paginated API response
    ParticipationAssociations:
      required:
        - contact
        - marketingEvent
      type: object
      properties:
        contact:
          $ref: '#/components/schemas/ContactAssociation'
        marketingEvent:
          $ref: '#/components/schemas/MarketingEventAssociation'
    ParticipationProperties:
      required:
        - attendanceState
        - occurredAt
      type: object
      properties:
        attendanceDurationSeconds:
          type: integer
          description: El número de segundos que duró la participación
          format: int32
        attendancePercentage:
          type: string
          description: >-
            Porcentaje de duración de la participación respecto a la duración
            del evento
        attendanceState:
          type: string
          description: El estado de la participación
          enum:
            - ATTENDED
            - CANCELLED
            - EMPTY
            - NO_SHOW
            - REGISTERED
        occurredAt:
          type: integer
          description: Marca de tiempo de cuando se produjo la participación
          format: int64
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: El código de estado asociado al detalle del error
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Contexto de la condición de error
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: El nombre del campo o parámetro en el que se encontró el error.
        message:
          type: string
          description: >-
            Un mensaje legible en el que se describa el error y los pasos para
            solucionarlo, si procede
        subCategory:
          type: string
          description: >-
            Una categoría específica que contiene detalles más concretos acerca
            del error
    ContactAssociation:
      required:
        - contactId
        - email
      type: object
      properties:
        contactId:
          type: string
          description: El ID interno del contacto en HubSpot
        email:
          type: string
          description: El correo electrónico del contacto en HubSpot
        firstname:
          type: string
          description: El nombre del contacto en HubSpot
        lastname:
          type: string
          description: Los apellidos del contacto en HubSpot
    MarketingEventAssociation:
      required:
        - marketingEventId
        - name
      type: object
      properties:
        externalAccountId:
          type: string
          description: >-
            El ID de la cuenta que está asociado con este evento de marketing en
            la aplicación de eventos externos
        externalEventId:
          type: string
          description: >-
            El ID del evento que está asociado con este evento de marketing en
            la aplicación de eventos externos
        marketingEventId:
          type: string
          description: El ID interno del evento de marketing en HubSpot
        name:
          type: string
          description: El nombre del evento de marketing en HubSpot
  responses:
    Error:
      description: An error occurred.
      content:
        '*/*':
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.hubspot.com/oauth/authorize
          tokenUrl: https://api.hubapi.com/oauth/v1/token
          scopes:
            crm.objects.marketing_events.read: ''
            crm.objects.marketing_events.write: ''
            developers-read: ''
            developers-write: ''

````