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

# Obter status de job

> Retorna o status e progresso de um job em execução ou concluído



## OpenAPI

````yaml https://raw.githubusercontent.com/prefeitura-rio/app-go-api/refs/heads/main/docs/openapi-v3.json get /api/v1/jobs/{jobId}/status
openapi: 3.0.0
info:
  description: API de serviços para aplicativos da Prefeitura do Rio
  title: API Go
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: https://iplan.rio
    email: frederico.zolio@prefeitura.rio
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: https://services.pref.rio/go
    description: Production
  - url: https://services.staging.app.dados.rio/go
    description: Staging
security:
  - BearerAuth: []
paths:
  /api/v1/jobs/{jobId}/status:
    get:
      tags:
        - jobs
      summary: Obter status de job
      description: Retorna o status e progresso de um job em execução ou concluído
      parameters:
        - description: ID do job (UUID)
          name: jobId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.Job'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    models.Job:
      type: object
      properties:
        completed_at:
          description: Data/hora de conclusão
          type: string
        created_at:
          description: Data/hora de criação
          type: string
        error_count:
          description: Quantidade de registros com erro
          type: integer
          example: 2
        errors:
          description: Lista de erros detalhados por linha
          type: array
          items:
            type: object
        id:
          description: ID único do job
          type: string
        metadata:
          description: Metadata adicional (curso_id, file_name, etc)
          type: object
        progress:
          description: Progresso em porcentagem (0-100)
          type: integer
          example: 100
        result:
          description: Resultado final do processamento
          type: object
        status:
          description: 'Status: pending, processing, completed, failed'
          type: string
          example: completed
        success_count:
          description: Quantidade de registros processados com sucesso
          type: integer
          example: 8
        total_records:
          description: Total de registros a processar
          type: integer
          example: 10
        type:
          description: Tipo de job (enrollment_import, etc)
          type: string
          example: enrollment_import
        updated_at:
          description: Data/hora da última atualização
          type: string
    models.ErrorResponse:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````