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

# Generate Reports Link

> Generate a link that automatically signs in an employer and redirects them to their Zeal Reports Dashboard, where they can view all reports. This link can only be generated in production and expires exactly 7 days after generation.



## OpenAPI

````yaml openapi/zeal-api.json post /authLinks/reports
openapi: 3.1.0
info:
  title: zeal-api
  version: '1.0'
servers:
  - url: https://api.zeal.com
security:
  - sec0: []
paths:
  /authLinks/reports:
    post:
      summary: Generate Reports Link
      description: >-
        Generates a link that signs in an employer to their Zeal Reports
        Dashboard.
      operationId: get-reports-link
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - partnerID
                - companyID
              properties:
                partnerID:
                  type: string
                  description: PartnerID of the Zeal Partner
                companyID:
                  type: string
                  description: ID of the Company
            examples:
              Request Example:
                value:
                  companyID: fc2ccf012b2342cc342ca082f357715bcfa
                  partnerID: c133eed233c9b8419ba4452cc059bd445a
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    success: true
                    url: >-
                      https://payroll.yourdomain.com/token-auth?redirectUrl=%2Freports&routeFilter=%2Freports&token=<accessToken>
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                    default: true
                  url:
                    type: string
                    example: >-
                      https://payroll.yourdomain.com/token-auth?redirectUrl=%2Freports&routeFilter=%2Freports&token=<accessToken>
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    success: false
                    errors:
                      - success: false
                        message: No user with this company ID exists.
                        code: 4
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                    default: true
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        success:
                          type: boolean
                          example: false
                          default: true
                        message:
                          type: string
                          example: No user with this company ID exists.
                        code:
                          type: integer
                          example: 4
                          default: 0
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: Authorization
      x-bearer-format: bearer

````