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

# Obter sequência

> Use este endpoint para obter uma sequência na Avala API usando GET em /datasets/{owner_name}/{dataset_slug}/sequences/{uid}/.



## OpenAPI

````yaml pt/api-reference/openapi.json GET /datasets/{owner_name}/{dataset_slug}/sequences/{uid}/
openapi: 3.0.0
info:
  title: Avala API
  description: >

    # Autenticação


    ## Como gerar uma chave de API


    O SDK da Avala usa chaves de API para autenticar requisições. Você pode
    criar e gerenciar suas chaves de API na página de

    Configurações do Mission Control.


    Siga estas etapas para gerar uma nova chave de API:


    1. Abra sua página de configurações clicando no avatar do seu usuário,
    localizado no canto superior direito de qualquer
        tela do Mission Control, e selecione `Settings`.
    2. No submenu à esquerda, selecione `Security & Identity`.

    3. Clique em `New API Key`, digite um nome para a chave e clique em `Create
    key`.


    A nova chave será copiada automaticamente para a área de transferência.
    Observe que, por motivos de segurança, a chave

    não ficará acessível depois que você fechar a janela. Certifique-se de
    armazená-la em um local seguro antes de fechar

    a janela modal.


    ### Vídeo passo a passo da geração da chave de API


    <iframe src="https://www.youtube.com/embed/TYdLhkAAbLA" title="Como gerar
    uma chave de API" width="854" height="480" allowfullscreen></iframe>



    ## Autenticando com uma chave de API


    Esta é a parte mais fácil! Basta adicionar um cabeçalho chamado
    `X-Avala-Api-Key` às suas requisições e definir a

    chave de API gerada anteriormente como valor.
  termsOfService: https://avala.ai/legal/terms
  contact:
    email: support@avala.ai
  version: v1
servers:
  - url: https://api.avala.ai/api/v1
security:
  - API_Key: []
  - JWT: []
tags:
  - name: datasets
    description: A ser concluído...
  - name: projects
    description: A ser concluído...
  - name: tasks
    description: Lista e recupera tarefas de anotação.
  - name: exports
    description: A ser concluído...
paths:
  /datasets/{owner_name}/{dataset_slug}/sequences/{uid}/:
    parameters:
      - name: owner_name
        in: path
        required: true
        schema:
          type: string
      - name: dataset_slug
        in: path
        required: true
        schema:
          type: string
      - name: uid
        in: path
        required: true
        schema:
          type: string
    get:
      tags:
        - datasets
      operationId: datasets_sequences_read
      parameters:
        - name: load
          in: query
          description: 'Quadros a carregar, por exemplo: 0,5,10-15'
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SequenceDetailResponse'
components:
  schemas:
    SequenceDetailResponse:
      required:
        - key
      type: object
      properties:
        uid:
          title: Uid
          type: string
          format: uuid
          readOnly: true
        key:
          title: Chave
          type: string
          maxLength: 1024
          minLength: 1
        status:
          title: Status
          type: string
          readOnly: true
          minLength: 1
          nullable: true
        is_workflow_terminal:
          title: É terminal de fluxo de trabalho
          type: boolean
          readOnly: true
        sequence_status_workflow:
          $ref: '#/components/schemas/SequenceStatusWorkflow'
        sequence_deliverable_workflow:
          $ref: '#/components/schemas/SequenceDeliverableWorkflow'
        predefined_labels:
          type: array
          items:
            $ref: '#/components/schemas/DatasetSequencePredefinedLabel'
          readOnly: true
        frames:
          type: array
          items:
            $ref: '#/components/schemas/DatasetSequenceFrame'
          readOnly: true
        annotation_storage:
          title: Armazenamento de anotações
          type: object
          readOnly: true
        metrics:
          title: Métricas
          type: object
        dataset_uid:
          title: UID do conjunto de dados
          type: string
          readOnly: true
        dataset_data_type:
          title: Tipo de dados do conjunto de dados
          type: string
          readOnly: true
          minLength: 1
        device_id:
          title: ID do dispositivo
          type: string
          maxLength: 255
          nullable: true
        allow_lidar_calibration:
          title: Permitir calibração de lidar
          type: boolean
        lidar_calibration_enabled:
          title: Calibração de lidar habilitada
          type: boolean
          readOnly: true
        camera_calibration_enabled:
          title: Calibração de câmera habilitada
          type: boolean
          readOnly: true
        camera_calibration:
          description: >
            A calibração de câmera que se aplica a *esta* sequência, e de onde
            veio cada valor.

                    Pertence à sequência, e não ao conjunto de dados: é uma informação por sequência, e
                    lê-la a partir do conjunto de dados é exatamente o motivo de 243 sequências do Serve terem acabado compartilhando a calibração de um único
                    robô. Os valores são brutos (sem correção de deslocamento de tempo por quadro incorporada) —
                    é isto que o editor de calibração edita; a forma corrigida, por quadro, acompanha
                    cada quadro em ``camera_calibration_data``.

                    Uma única consulta, em um serializador somente de recuperação, portanto não há N+1 de visualização em lista com que se preocupar.
          type: array
          items:
            type: object
            additionalProperties:
              type: string
              nullable: true
          readOnly: true
        crop_data:
          $ref: '#/components/schemas/DatasetItemCrop'
        coc_timeline:
          description: >
            Linha do tempo de autorrotulagem Chain-of-Causation — **somente para
            a equipe interna**.


            Lido do campo durável ``DatasetSequence.metadata`` JSON (NOT

            ``metrics``, que é sobrescrito por

            ``update_lidar_phase_4_sequence_metrics`` quando há atividade de
            anotação). Estes

            são rótulos *rascunho* gerados por máquina pelo autorrotulador
            Alpamayo CoC e

            nunca devem chegar a anotadores ou clientes, por isso restringimos o
            acesso com base em ``is_staff`` e

            retornamos ``None`` para todos os demais — o campo fica, então,
            ausente para o FE,

            o que mantém oculta a aba "Chain of Causation" do Mission Control.
          type: array
          items:
            type: object
            additionalProperties:
              type: string
              nullable: true
          readOnly: true
    SequenceStatusWorkflow:
      required:
        - workflow_revision_uid
        - initial_status
        - terminal_status
        - statuses
      type: object
      properties:
        workflow_revision_uid:
          title: Uid da revisão do fluxo de trabalho
          type: string
          format: uuid
          nullable: true
        initial_status:
          title: Status inicial
          type: string
          minLength: 1
        terminal_status:
          title: Status do terminal
          type: string
          minLength: 1
        statuses:
          type: array
          items:
            $ref: '#/components/schemas/SequenceStatusDefinition'
      nullable: true
    SequenceDeliverableWorkflow:
      required:
        - schema_version
        - workflow_revision_uid
        - is_complete
        - deliverables
      type: object
      properties:
        schema_version:
          title: Versão do esquema
          type: integer
        workflow_revision_uid:
          title: Uid da revisão do fluxo de trabalho
          type: string
          format: uuid
        is_complete:
          title: Está completo
          type: boolean
        deliverables:
          type: array
          items:
            $ref: '#/components/schemas/SequenceDeliverableDefinition'
      nullable: true
    DatasetSequencePredefinedLabel:
      type: object
      properties:
        uid:
          title: Uid
          type: string
          format: uuid
          readOnly: true
        code:
          title: Código
          type: integer
          readOnly: true
          nullable: true
        name:
          title: Nome
          type: string
          readOnly: true
        color:
          title: Cor
          type: string
          readOnly: true
          nullable: true
        icon_name:
          title: Nome do ícone
          type: string
          maxLength: 100
          nullable: true
        article_uid:
          title: UID do artigo
          type: string
          format: uuid
          readOnly: true
          nullable: true
        locked:
          title: Bloqueado
          type: boolean
          readOnly: true
        is_countable:
          title: É contável
          type: boolean
          readOnly: true
        tool_availability:
          type: array
          items:
            type: string
          readOnly: true
    DatasetSequenceFrame:
      required:
        - uid
        - index
        - key
        - asset_url
        - image_urls
      type: object
      properties:
        uid:
          title: Uid
          type: string
          format: uuid
        index:
          title: Índice
          type: integer
        key:
          title: Chave
          type: string
          minLength: 1
        asset_url:
          title: URL do ativo
          type: string
          minLength: 1
        image_urls:
          type: array
          items:
            type: string
            minLength: 1
        image_sensor_ids:
          description: >-
            Códigos de sensor ALP paralelos a image_urls. Um slot nulo é uma
            câmera de índice; um array ausente significa desconhecido.
          type: array
          items:
            type: string
            minLength: 1
            nullable: true
          readOnly: true
          nullable: true
        image_item_refs:
          type: array
          items:
            $ref: '#/components/schemas/DatasetSequenceImageItemRef'
          readOnly: true
        image_source_indices:
          description: >-
            Slots originais de câmera ALP, paralelos ao array image_urls
            retornado.
          type: array
          items:
            type: integer
            minimum: 0
          readOnly: true
        gpu_texture_urls:
          type: array
          items:
            type: string
            minLength: 1
          nullable: true
        gpu_texture_source_indices:
          description: >-
            Slots originais de câmera ALP, paralelos ao array gpu_texture_urls
            retornado.
          type: array
          items:
            type: integer
            minimum: 0
          readOnly: true
        phase_1_labels_url:
          title: URL dos rótulos da fase 1
          type: string
          minLength: 1
          nullable: true
        phase_1_colors_url:
          title: URL das cores da fase 1
          type: string
          minLength: 1
          nullable: true
        phase_1_intensities_url:
          title: URL das intensidades da fase 1
          type: string
          minLength: 1
          nullable: true
        phase_1_cuboids_url:
          title: URL dos cuboides da fase 1
          type: string
          minLength: 1
          nullable: true
        total_points:
          title: Total de pontos
          type: integer
          nullable: true
        frame_box:
          title: Caixa do quadro
          type: object
          additionalProperties:
            type: string
            nullable: true
          nullable: true
        export_snippet:
          title: Exportar trecho
          type: object
          additionalProperties:
            type: string
            nullable: true
          nullable: true
        calibration_data:
          $ref: '#/components/schemas/LidarCalibrationData'
        camera_calibration_data:
          title: Dados de calibração da câmera
          type: object
          additionalProperties:
            $ref: '#/components/schemas/CameraCalibrationData'
          nullable: true
        sensor_position:
          title: Posição do sensor
          type: object
          additionalProperties:
            type: string
            nullable: true
          nullable: true
        sensor_heading:
          title: Direção do sensor
          type: object
          additionalProperties:
            type: string
            nullable: true
          nullable: true
        asset_version:
          title: Versão do ativo
          type: string
          minLength: 1
          nullable: true
        phase_1_labels_version:
          title: Versão dos rótulos da fase 1
          type: string
          minLength: 1
          nullable: true
        phase_1_intensities_version:
          title: Versão das intensidades da fase 1
          type: string
          minLength: 1
          nullable: true
        phase_1_ground_url:
          title: URL do solo da fase 1
          type: string
          minLength: 1
          nullable: true
        phase_1_ground_version:
          title: Versão do solo da fase 1
          type: string
          minLength: 1
          nullable: true
        phase_1_frame_ground_url:
          title: URL do solo por quadro da fase 1
          type: string
          minLength: 1
          nullable: true
        phase_1_frame_ground_version:
          title: Versão do solo por quadro da fase 1
          type: string
          minLength: 1
          nullable: true
    DatasetItemCrop:
      type: object
      properties:
        crop_annotations_in_2d:
          type: array
          items:
            $ref: '#/components/schemas/CropAnnotationsIn2dSerailizer'
          nullable: true
        crop_annotations_polygon_mask:
          description: >-
            Lista de coordenadas da máscara de polígono no formato: [[x1, y1],
            ..., [xN, yN]].
          type: array
          items:
            type: array
            items:
              type: number
            maxItems: 2
            minItems: 2
          readOnly: true
          minItems: 3
          nullable: true
        where:
          title: Onde
          type: string
          enum:
            - dataset
            - sequence
            - frame
            - dataset_item
          nullable: true
    SequenceStatusDefinition:
      required:
        - id
        - label
        - order
        - is_terminal
      type: object
      properties:
        id:
          title: ID
          type: string
          minLength: 1
        label:
          title: Rótulo
          type: string
          minLength: 1
        order:
          title: Ordem
          type: integer
        is_terminal:
          title: É terminal
          type: boolean
    SequenceDeliverableDefinition:
      required:
        - id
        - label
        - order
        - annotation_scope
        - required
        - is_unlocked
        - workflow_state
        - approval_state
        - approval_outcome
        - workflow_states
        - approval_states
      type: object
      properties:
        id:
          title: ID
          type: string
          minLength: 1
        label:
          title: Rótulo
          type: string
          minLength: 1
        order:
          title: Ordem
          type: integer
        annotation_scope:
          title: Escopo da anotação
          type: string
          minLength: 1
        required:
          title: Obrigatório
          type: boolean
        is_unlocked:
          title: Está desbloqueado
          type: boolean
        workflow_state:
          title: Estado do fluxo de trabalho
          type: string
          minLength: 1
          nullable: true
        approval_state:
          title: Estado da aprovação
          type: string
          minLength: 1
          nullable: true
        approval_outcome:
          title: Resultado da aprovação
          type: string
          minLength: 1
          nullable: true
        workflow_states:
          type: array
          items:
            $ref: '#/components/schemas/SequenceDeliverableStateDefinition'
        approval_states:
          type: array
          items:
            $ref: '#/components/schemas/SequenceDeliverableStateDefinition'
    DatasetSequenceImageItemRef:
      type: object
      properties:
        image_index:
          title: Índice da imagem
          type: integer
          readOnly: true
          minimum: 0
        dataset_uid:
          title: UID do conjunto de dados
          type: string
          format: uuid
          readOnly: true
        item_uid:
          title: UID do item
          type: string
          format: uuid
          readOnly: true
        owner_name:
          title: Nome do proprietário
          description: >-
            Rota canônica do proprietário do conjunto de dados de origem. Nulo
            quando nenhuma rota canônica segura está disponível.
          type: string
          readOnly: true
          minLength: 1
          nullable: true
        dataset_slug:
          title: Slug do conjunto de dados
          description: >-
            Slug do conjunto de dados de origem. Nulo quando não há rota
            canônica segura disponível.
          type: string
          readOnly: true
          minLength: 1
          nullable: true
    LidarCalibrationData:
      required:
        - dx
        - dy
        - dz
        - qx
        - qy
        - qz
        - qw
        - frame_index
      type: object
      properties:
        dx:
          title: Dx
          type: number
        dy:
          title: Dy
          type: number
        dz:
          title: Dz
          type: number
        qx:
          title: Qx
          type: number
        qy:
          title: Qy
          type: number
        qz:
          title: Qz
          type: number
        qw:
          title: Qw
          type: number
        frame_index:
          title: Índice do quadro
          type: integer
        reference_figures:
          type: array
          items:
            $ref: '#/components/schemas/LidarCalibrationReferenceFigureAtFrame'
          nullable: true
      nullable: true
    CameraCalibrationData:
      required:
        - dx
        - dy
        - dz
        - qx
        - qy
        - qz
        - qw
      type: object
      properties:
        dx:
          title: Dx
          type: number
        dy:
          title: Dy
          type: number
        dz:
          title: Dz
          type: number
        qx:
          title: Qx
          type: number
        qy:
          title: Qy
          type: number
        qz:
          title: Qz
          type: number
        qw:
          title: Qw
          type: number
        sensor_id:
          title: ID do sensor
          type: string
          maxLength: 255
          minLength: 1
          nullable: true
    CropAnnotationsIn2dSerailizer:
      required:
        - z
        - classes
      type: object
      properties:
        z:
          title: Z
          type: number
        classes:
          type: array
          items:
            type: string
            minLength: 1
          minItems: 1
      nullable: true
    SequenceDeliverableStateDefinition:
      required:
        - id
        - label
        - order
        - is_terminal
      type: object
      properties:
        id:
          title: ID
          type: string
          minLength: 1
        label:
          title: Rótulo
          type: string
          minLength: 1
        order:
          title: Ordem
          type: integer
        is_terminal:
          title: É terminal
          type: boolean
        outcome:
          title: Resultado
          type: string
          minLength: 1
    LidarCalibrationReferenceFigureAtFrame:
      required:
        - cross_frames_uid
        - type
        - figure_data
      type: object
      properties:
        cross_frames_uid:
          title: UID de quadros cruzados
          type: string
          minLength: 1
        type:
          title: Tipo
          type: string
          enum:
            - 3d_plane
        figure_data:
          title: Dados da figura
          type: object
          additionalProperties:
            type: string
            nullable: true
      nullable: true
  securitySchemes:
    API_Key:
      type: apiKey
      name: X-Avala-Api-Key
      in: header
      description: >-
        Chave de API para autenticação. Para gerar uma, abra Configurações e
        selecione Segurança e identidade no Mission Control.
    JWT:
      type: apiKey
      name: Authorization
      in: header
      description: >-
        Token JWT com prefixo 'JWT', por exemplo, 'JWT
        eyJhbGciOiJIUzI1NiIsInR...'

````