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

# Check an import

> Progress of an import: processing, completed, failed or aborted, with the rows that failed.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/link-templates/imports/{jobId}
openapi: 3.1.0
info:
  title: rial API
  version: 0.1.0
  description: 'Prove a photo is real. Base URL: https://api.rial.io'
  contact:
    name: rial-platform team
    url: https://github.com/Rial-ventures-Inc/rial-platform
  license:
    name: UNLICENSED — proprietary, internal use only
servers:
  - url: https://api.rial.io
    description: Production
security: []
tags:
  - name: Verifications
    description: >-
      Create, fetch, list, and finalize verifications. The core of the API —
      every tenant integration starts here.
  - name: Templates
    description: >-
      Publish, update, revoke and inspect link templates — the reusable capture
      links behind `/l/{token}` (a compact JWT carrying the org and template
      slugs; the legacy `/l/{org}/{slug}` keeps resolving). Callable with a
      secret key; each publish snapshots a versioned capture spec (GET-83).
  - name: Databases
    description: >-
      Create, update, inspect and synchronize tenant-scoped databases used by
      reusable verification templates. Callable with a dashboard session or
      secret API key.
paths:
  /v1/link-templates/imports/{jobId}:
    get:
      tags:
        - Templates
      summary: Check an import
      description: >-
        Progress of an import: processing, completed, failed or aborted, with
        the rows that failed.
      parameters:
        - schema:
            type: string
            example: imp_01HXYZABCDEFGHJKMNPQRSTVWX
          required: true
          name: jobId
          in: path
      responses:
        '200':
          description: Current job state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkTemplateImportJob'
              example:
                id: imp_01HXYZABCDEFGHJKMNPQRSTVWX
                template_slug: warehouse-intake
                status: completed
                total_rows: 2
                imported_rows: 2
                invalid_rows: []
                requested_at: '2026-07-30T12:00:00.000Z'
                completed_at: '2026-07-30T12:00:05.000Z'
        '404':
          description: No template with that slug for the authenticated tenant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: not_found
                  message: Resource not found
        '503':
          description: The template store is unreachable — retry with backoff.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  cause:
                    type: string
                required:
                  - error
              example:
                error: storage_unavailable
      security:
        - bearerApiKey: []
components:
  schemas:
    LinkTemplateImportJob:
      type: object
      properties:
        id:
          type: string
        template_slug:
          type: string
        status:
          type: string
          enum:
            - processing
            - completed
            - failed
            - aborted
        total_rows:
          type: integer
        imported_rows:
          type: integer
        invalid_rows:
          type: array
          items:
            type: object
            properties:
              row:
                type: integer
              reason:
                type: string
            required:
              - row
              - reason
            description: 1-based CSV row (header is row 1) and why it was rejected.
        requested_at:
          type: string
          format: date-time
        completed_at:
          type: string
          format: date-time
        failure_reason:
          type: string
      required:
        - id
        - template_slug
        - status
        - total_rows
        - imported_rows
        - invalid_rows
        - requested_at
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            fields:
              type: array
              items:
                type: object
                properties:
                  path:
                    type: string
                  message:
                    type: string
                required:
                  - path
                  - message
          required:
            - code
            - message
      required:
        - error
      description: >-
        Uniform error envelope. `code` is the stable string SDKs branch on
        (`invalid_request`, `unauthorized`, `not_found`, `expired`, `step_full`,
        `unknown_step`, `steps_incomplete`, `already_finalized`,
        `too_many_requests`, `storage_unavailable`, `internal_error`). `fields`
        is only present on `invalid_request` validation failures.
  securitySchemes:
    bearerApiKey:
      type: http
      scheme: bearer
      bearerFormat: rk_secret_<key>
      description: >-
        Secret API key, created in the dashboard under Settings → API. Send it
        as `Authorization: Bearer rk_secret_…` from your server only.
        Publishable keys (`pk_live_…`) are for the native SDKs and reach the
        capture endpoints alone. An unknown key returns 401.

````