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

# Get the installation

> Returns the id and name of the installation the API key belongs to. Requires the `installation:read` scope.



## OpenAPI

````yaml https://apex.federalaccess.cl/public/v1/openapi.yaml get /public/v1/installation
openapi: 3.0.1
info:
  title: Federal Access Public API
  version: v1
  description: >
    Public API for third-party integrations with Federal Access.


    **Authentication.** Send your API key as `Authorization: Bearer <key>`. Each
    endpoint requires a scope, named in its description.


    **Errors.** Errors share one JSON envelope: `{ "error": { "code", "message",
    "request_id", "details" } }`. `details` appears only on some errors. Unknown
    paths answer 404 with code `not_found`, and malformed request bodies answer
    400 with code `bad_request`.


    **Rate limiting.** Requests are rate-limited per installation. Going over
    the limit answers 429 with a `Retry-After` header.
servers:
  - url: https://apex.federalaccess.cl
    description: Production
security: []
paths:
  /public/v1/installation:
    get:
      tags:
        - Installation
      summary: Get the installation
      description: >-
        Returns the id and name of the installation the API key belongs to.
        Requires the `installation:read` scope.
      responses:
        '200':
          description: The installation
          content:
            application/json:
              example:
                data:
                  id: 42
                  name: Torre Central
              schema:
                $ref: '#/components/schemas/InstallationResponse'
        '401':
          description: >-
            Unauthorized. Every authentication failure answers this same
            response: a missing or malformed Authorization header, an unknown or
            revoked key, or an installation that cannot use the API.
          headers:
            WWW-Authenticate:
              schema:
                type: string
                example: Bearer realm="public_api"
              description: Always present on a 401
          content:
            application/json:
              example:
                error:
                  code: unauthorized
                  message: Invalid or missing API key.
                  request_id: 7f3c1d2e-4b5a-4c6d-8e9f-0a1b2c3d4e5f
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Forbidden: the API key lacks the required scope, or the installation
            is inactive
          content:
            application/json:
              examples:
                missing_scope:
                  summary: The key lacks the required scope
                  value:
                    error:
                      code: forbidden
                      message: >-
                        Forbidden. The API key lacks the required scope:
                        installation:read.
                      request_id: 7f3c1d2e-4b5a-4c6d-8e9f-0a1b2c3d4e5f
                inactive_installation:
                  summary: The installation is inactive
                  value:
                    error:
                      code: forbidden
                      message: Forbidden. Installation is inactive.
                      request_id: 7f3c1d2e-4b5a-4c6d-8e9f-0a1b2c3d4e5f
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            Too many requests. The installation went over the rate limit: retry
            after the seconds in `Retry-After`.
          headers:
            Retry-After:
              schema:
                type: integer
                example: 600
              description: Seconds until requests are accepted again
          content:
            application/json:
              example:
                error:
                  code: too_many_requests
                  message: Rate limit exceeded. Retry after 600 seconds.
                  request_id: 7f3c1d2e-4b5a-4c6d-8e9f-0a1b2c3d4e5f
                  details:
                    retry_after: 600
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    InstallationResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Installation'
      required:
        - data
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: unauthorized
              description: Stable, machine-readable error code
            message:
              type: string
              example: Invalid or missing API key.
              description: Human-readable message
            request_id:
              type: string
              example: 7f3c1d2e-4b5a-4c6d-8e9f-0a1b2c3d4e5f
              description: The request's X-Request-Id, useful when contacting support
            details:
              type: object
              additionalProperties: true
              example:
                retry_after: 600
              description: Extra information, present only on some errors
          required:
            - code
            - message
            - request_id
      required:
        - error
    Installation:
      type: object
      properties:
        id:
          type: integer
          example: 42
          description: Installation identifier
        name:
          type: string
          example: Torre Central
          description: Installation name
      required:
        - id
        - name
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'API key sent as `Authorization: Bearer <key>`.'

````

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