# Retrieve an access schedule

`GET https://api.cademi.com.br/api/v3/products/{product_id}/access-schedules/{access_schedule_id}`

Operation ID: `products.access_schedules.get` · API v3

Retrieves an access schedule by its public ID, including the deliveries that use it (`deliveries[]`).

The response includes an `ETag` representing the current revision of the access schedule. Send this value in the `If-Match` header when updating the access schedule or its release rules to avoid overwriting a newer version.

Required permissions: `access_schedules.read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `product_id` | path | string | yes |  |
| `access_schedule_id` | path | string | yes |  |

## Responses

### 200

Returns the requested access schedule.

Body: `data`: AccessSchedule.

Fields of AccessSchedule:

| Field | Type | Required | Description |
|---|---|---|---|
| `created_at` | string (date-time) | yes |  |
| `default` | boolean | yes |  |
| `deleted` | boolean | yes |  |
| `deliveries` | array of object or null | no | Deliveries that apply this access schedule's tag. Returned only when retrieving a single access schedule. |
| `deliveries_count` | integer | yes |  |
| `id` | string | yes |  |
| `name` | string | yes |  |
| `object` | string, one of `access_schedule` | yes |  |
| `product_id` | string | yes |  |
| `revision` | string | yes |  |
| `rules_count` | integer | yes |  |
| `tag_id` | string or null | yes |  |
| `updated_at` | string (date-time) | yes |  |

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The access schedule was not found for this product or is not accessible with the current credentials.

Body: Error.

Full schema: https://cademi.dev/openapi/v3.json
