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

# Get an employer’s site

> Read one workplace of an employer, with the same fields as the list. A site of another employer returns 404. Needs the OSHA dataset enabled for your organization. Read-only; private, no-store. 



## OpenAPI

````yaml /openapi.json get /insurance/employers/{employerId}/sites/{siteId}
openapi: 3.0.3
info:
  title: Effective API
  version: 2.0.0
  description: The public Effective REST API. Authenticate using an Effective API key.
servers:
  - url: https://api.effectiveai.app/api/v2
    description: Production
security:
  - bearerAuth: []
paths:
  /insurance/employers/{employerId}/sites/{siteId}:
    get:
      tags:
        - OSHA
      summary: Get an employer’s site
      description: >-
        Read one workplace of an employer, with the same fields as the list. A
        site of another employer returns 404. Needs the OSHA dataset enabled for
        your organization. Read-only; private, no-store. 
      operationId: getEmployerSite
      parameters:
        - schema:
            type: string
            pattern: ^emp_[0-9a-f]{20}$
            description: 'Effective employer ID: emp_ followed by 20 hex characters.'
          required: true
          description: 'Effective employer ID: emp_ followed by 20 hex characters.'
          name: employerId
          in: path
        - schema:
            type: string
            pattern: ^site_[0-9a-f]{20}$
            description: 'Effective site ID: site_ followed by 20 hex characters.'
          required: true
          description: 'Effective site ID: site_ followed by 20 hex characters.'
          name: siteId
          in: path
      responses:
        '200':
          description: The site.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2EmployerSite'
        '400':
          description: >-
            invalid_request for invalid, unknown or repeated inputs;
            invalid_cursor means restart the list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '403':
          description: >-
            dataset_not_enabled: the OSHA dataset is not enabled for this
            organization. Other credential restrictions use forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '404':
          description: 'not_found: no such employer, site or OSHA row.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '500':
          description: Unexpected server failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '503':
          description: A dependency is unavailable; respect Retry-After.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
      security:
        - bearerAuth: []
components:
  schemas:
    V2EmployerSite:
      type: object
      properties:
        id:
          type: string
          pattern: ^site_[0-9a-f]{20}$
          description: 'Effective site ID: site_ followed by 20 hex characters.'
        employerId:
          type: string
          pattern: ^emp_[0-9a-f]{20}$
          description: 'Effective employer ID: emp_ followed by 20 hex characters.'
        name:
          type: string
          description: Most recent name OSHA has on file at this site.
        address:
          type: string
          nullable: true
        city:
          type: string
          nullable: true
        state:
          type: string
          nullable: true
        zip:
          type: string
          nullable: true
          description: Five-digit ZIP code.
        naics:
          type: string
          nullable: true
        identifiers:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
                enum:
                  - fein
                  - osha_establishment
                description: >-
                  fein: FEIN from a Form 300A at this site. osha_establishment:
                  OSHA ITA establishment ID. OSHA can issue a new establishment
                  ID for the same workplace, so a site can carry several.
              value:
                type: string
            required:
              - type
              - value
        latestHeadcount:
          type: number
          nullable: true
          description: >-
            Annual average employees from the site’s latest Form 300A, or null
            if none.
        firstSeen:
          type: string
          nullable: true
          description: Earliest OSHA event date at this site.
        lastSeen:
          type: string
          nullable: true
          description: Latest OSHA event date at this site.
      required:
        - id
        - employerId
        - name
        - address
        - city
        - state
        - zip
        - naics
        - identifiers
        - latestHeadcount
        - firstSeen
        - lastSeen
    V2CodedError:
      allOf:
        - $ref: '#/components/schemas/V2Error'
        - type: object
          properties:
            code:
              type: string
              minLength: 1
              description: Stable error code. Clients must tolerate unknown future codes.
            details:
              type: array
              items:
                type: object
                properties:
                  location:
                    type: string
                    enum:
                      - path
                      - query
                      - header
                      - body
                  path:
                    type: array
                    items:
                      type: string
                      maxLength: 64
                    maxItems: 12
                  code:
                    type: string
                    enum:
                      - required
                      - invalid_type
                      - invalid_value
                      - unknown_field
                  message:
                    type: string
                    minLength: 1
                    maxLength: 200
                required:
                  - location
                  - path
                  - code
                  - message
              minItems: 1
              maxItems: 20
              description: Bounded safe validation issues; may omit some invalid fields.
            requestId:
              type: string
              minLength: 1
              maxLength: 128
              description: >-
                Existing server correlation for this HTTP attempt, when
                available.
            dataset:
              type: string
              enum:
                - naic
                - osha
              description: Dataset needed for dataset_not_enabled.
            accessUrl:
              type: string
              nullable: true
              format: uri
              description: >-
                Where to add the product to your account, for
                product_access_required.
          required:
            - code
    V2Error:
      type: object
      properties:
        error:
          type: string
          minLength: 1
          description: Human-readable explanation of the failure.
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Effective API key. Send Authorization: Bearer sk-eai-...'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.