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

# Get Resource Directory

> Returns a directory of available API resources based on the current user and their permissions



## OpenAPI

````yaml api-reference/openapi.json GET /
openapi: 3.0.3
info:
  title: Payroll Integrations Public API
  version: 1.0.0
  description: Public API for Payroll Integrations platform
  license:
    name: MIT
servers:
  - url: https://api.payrollintegrationsapp.com
    description: Production
security: []
tags:
  - name: auth
  - name: employer-identifiers
  - name: meta
  - name: payroll-connections
  - name: payroll-platforms
  - name: roles
  - name: users
  - name: webhooks
paths:
  /:
    get:
      tags:
        - meta
      description: >-
        Returns a directory of available API resources based on the current user
        and their permissions
      operationId: get
      responses:
        '200':
          description: Resource directory retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceDirectory'
              example:
                resources:
                  - method: GET
                    url: https://api.example.com/v1/employer-identifiers
                  - method: GET
                    url: https://api.example.com/v1/users
                  - method: POST
                    url: https://api.example.com/v1/users
        '401':
          description: Invalid or missing token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers:
            WWW-Authenticate:
              schema:
                description: Authentication challenge (Bearer)
                type: string
              description: Authentication challenge (Bearer)
        '403':
          description: Insufficient permissions or access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers:
            Retry-After:
              schema:
                description: Number of seconds to wait before retrying
                type: string
              description: Number of seconds to wait before retrying
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ResourceDirectory:
      type: object
      properties:
        resources:
          description: Sorted list of accessible resources.
          type: array
          items:
            type: object
            properties:
              method:
                type: string
                enum:
                  - DELETE
                  - GET
                  - HEAD
                  - OPTIONS
                  - PATCH
                  - POST
                  - PUT
              url:
                type: string
                format: uri
            required:
              - method
              - url
            additionalProperties: false
      required:
        - resources
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        message:
          description: Human-readable error message
          type: string
        errors:
          description: Array of specific error details
          type: array
          items:
            type: string
      required:
        - message
        - errors
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer token obtained from the /v1/auth/token endpoint. Send as:
        Authorization: Bearer <token>.

````