---
title: "Get scan schedules"
method: POST
path: "/api/v1/scans/get-schedule"
tags: ["Scans"]
---

# Get scan schedules

`POST /api/v1/scans/get-schedule`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v1/scans/get-schedule`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

## Request body

- GetSchedulesInput
  - `organizationId` string
  - `repositoryId` string, required

## Response `200`

Scan schedule

- ScanSchedule[]
  - `repoId` string
  - `scanBranch` string, nullable
  - `executionCriteriaCrontab` string
  - `id` string
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `codeScans` string[]
  - `stagedCodeScans` string[]

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/zeropath/apis/zeropath-api-2.md) - [All operations](https://skmtc.dev/zeropath/apis/zeropath-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/zeropath/apis/zeropath-api-2/revisions/ea6ae4b68cd3?raw)
