# Get permanence timeframe

Returns the client reception (permanence) slots configured for an agency,
grouped by day of week.
Requires `SITE_CALENDAR:READ`.

Endpoint: GET /calendar/permanences/timeframe
Version: 1.4.0
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer opaque

## Query parameters:

  - `agency_id` (integer, required)
    Target agency ID whose permanence configuration is requested.
Must belong to the agencies the authenticated client can read,
otherwise a 403 is returned.

## Response 200:

  - `200` (unknown)
    Permanence timeframe grouped by day

## Response 200 fields (application/json):

  - `data` (object)
    Client reception (permanence) slots, grouped by day of week
(`MO`, `TU`, `WE`, `TH`, `FR`, `SA`, `SU`). Each day holds a list of time ranges.
    Example: {"MO":[{"start":{"hours":9,"minutes":0},"end":{"hours":12,"minutes":0}}],"TU":[]}

## Response 401:

  - `401` (unknown)
    Authentication required

## Response 401 fields (application/json):

  - `error` (object)

  - `error.code` (string, required)

  - `error.message` (string, required)

## Response 403:

  - `403` (unknown)
    Insufficient permissions

## Response 403 fields (application/json):

  - `error` (object)

  - `error.code` (string, required)

  - `error.message` (string, required)

## Response 422:

  - `422` (unknown)
    Validation failed

## Response 422 fields (application/json):

  - `error` (object)

  - `error.code` (string)
    Enum: "VALIDATION_ERROR"

  - `error.message` (string)

  - `error.details` (array)

  - `error.details.field` (string)

  - `error.details.message` (string)

