---
title: "Get the partner's default pentest duration"
method: GET
path: "/v1/settings/default-pentest-duration/"
tags: ["settings"]
---

# Get the partner's default pentest duration

`GET /v1/settings/default-pentest-duration/`

## Request

- Base URL: `https://api.ethiack.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ethiack.com/v1/settings/default-pentest-duration/`
- Auth: none declared

Return the default pentest duration for the caller's partner.

Restricted to integrators (the ``get_integrator_partner_id`` dependency
resolves and validates the owning partner). The value comes from the
partner's active subscription.

Args:
    db (AsyncSession): Request-scoped database session.
    context (ActiveContext): Resolved caller identity and scope.
    partner_id (int): The integrator's resolved partner id.

Returns:
    DefaultPentestDurationResponse: The configured default duration and
        whether the integrator may change it.

## Response `200`

Successful Response

- DefaultPentestDurationResponse: Response for the default pentest duration setting. Attributes: default_pentest_duration_days (int): Default number of days for integrator pentests. editable (bool): Whether the integrator can modify the pentest duration for their organizations. Also served: ``duration`` and ``unit``, the names this setting has always been read under.
  - `default_pentest_duration_days` integer, required
  - `editable` boolean, required
  - `duration` integer, required: Previous name for default_pentest_duration_days.
  - `unit` string, required: Unit of `duration`. Always `days`.

---

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