---
title: "GET /api/v2/owner/{owner}/target"
method: GET
path: "/api/v2/owner/{owner}/target"
tags: ["target"]
---

# GET /api/v2/owner/{owner}/target

`GET /api/v2/owner/{owner}/target`

## Path parameters

- `owner` string, required

## Query parameters

- `archived` boolean
- `include_archived` boolean
- `matching_type` 'code' | 'api'
- `offset` integer
- `per_page` integer
- `q` string

## Response `200`

Returns viewable targets by the caller for projects belonging to 'owner'.

    By default returns non-archived (active) targets. Pass archived=true
    to list archived targets, or include_archived=true to list both.

    Note: the route preserves the functionality for admin users, i.e., admin
    users will only see the projects they have been given access to.

- TargetList
  - `api_count` integer
  - `code_count` integer
  - `count` integer
  - `targets` Target[]
    - `archived_at` string, date-time, nullable
    - `created_at` string, date-time
    - `is_archived` boolean
    - `is_deleted` boolean
    - `latest_active_run` RunGet
      - `advanced_triage_run_valgrind` boolean
      - `api_run` GetApiRun
        - `cli_command` string[], nullable
        - `cli_command_secrets` string[], nullable
        - `created_at` string, date-time
        - `duration_mode` 'AUTOMATIC' | 'TIME' | 'GOAL', required
        - `endpoint_coverage` EndpointCoverage
          - `V1` EndpointCoverageV1, required
            - `entries` EndpointCoverageV1Entry[], required
              - …
        - `endpoint_latency` EndpointLatency
          - `V1` EndpointLatencyV1, required
            - `entries` EndpointLatencyV1Entry[], required
              - …
        - `has_request_stats` boolean
        - `html_report_sha` string
        - `junit_sha` string
        - `latency_p50_millis` integer
        - `latency_p90_millis` integer
        - `latency_p99_millis` integer
        - `no_defects_endpoint_count` integer
        - `passing_endpoint_count` integer
        - `progress_percent` number, required
        - `progress_sec` integer, required
        - `reports_zip_sha` string
        - `sarif_sha` string
        - `spec_source` 'OPENAPI' | 'HAR_OPENAPI' | 'POSTMANCOLLECTION_OPENAPI' | 'SWAGGERV2_OPENAPI' | 'POSTMANCOLLECTION' | 'REPLAY' | 'UNKNOWN'
        - `specification_url` string
        - `status` 'PENDING' | 'RUNNING' | 'COMPLETE' | 'CANCELLED' | 'FAILED', required
        - `total_endpoint_count` integer
        - `unauthed_endpoint_count` integer
        - `unsuccessful_endpoint_count` integer
        - `updated_at` string, date-time
        - `url` string
      - `base_testsuite_id` integer, nullable
      - `branch_name` string, nullable
      - `build_id` string
      - `ci_type` string, nullable
      - `ci_url` string, url, nullable
      - `cli_version` string, nullable
      - `cputime` integer
      - `created_at` string, date-time
      - `current_workers` integer
      - `description` string
      - `desired_workers` integer
      - `docker_pullable` string
      - `docker_registry_id` integer, nullable
      - `docker_registry_url` string
      - `duration` integer, nullable
      - `edges_covered` integer
      - `elapsed_real_time` integer, nullable
      - `ended` boolean
      - `ended_at` string, date-time, nullable
      - `failed` boolean
      - `fetched_docker_image_digest` string
      - `has_critical_errors` boolean
      - `interface_info` object
      - `is_deleted` boolean
      - `is_mayhem_bot` boolean
      - `is_pure_docker` boolean
      - `merge_base_branch_name` string, nullable
      - `n_behavior_crash_reports` integer
      - `n_behavior_defects` integer
      - `n_behavior_testcase_reports` integer
      - `n_behavior_valgrind_errors` integer
      - `n_crash_reports` integer
      - `n_defects` integer
      - `n_desired_cpu` integer
      - `n_desired_memory` number
      - `n_exploitability_factors_passing` integer
      - `n_exploitability_factors_total` integer
      - `n_optimized_set_testcases` integer
      - `n_regression_crash_reports` integer
      - `n_regression_defect_reports` integer
      - `n_regression_defects` integer
      - `n_regression_testcase_reports` integer
      - `n_regression_valgrind_errors` integer
      - `n_starting_testcases` integer, nullable
      - `n_testcase_reports` integer
      - `n_total_cpu` integer
      - `n_total_memory` number
      - `n_valgrind_errors` integer
      - `name` string
      - `output_testsuite_id` integer, nullable
      - `owner` string
      - `owner_name` string
      - `parent_revision` string, nullable
      - `pending` boolean
      - `phase` RunPhaseCurrent
        - `description` string
        - `duration` integer, nullable
        - `elapsed_real_time` integer, nullable
        - `ended_at` string, date-time, nullable
        - `failed` boolean
        - `finalizing_at` string, date-time, nullable
        - `msg` string
        - `name` string
        - `pending_status` string
        - `phase_name` string
        - `preparing_at` string, date-time, nullable
        - `smoketesting_succeeded` boolean, nullable
        - `started_at` string, date-time, nullable
        - `status` string
        - `stopped` boolean
        - `value` number, nullable
      - `phases` RunPhase[]
        - `duration` integer, nullable
        - `elapsed_real_time` integer, nullable
        - `ended_at` string, date-time, nullable
        - `failed` boolean
        - `finalizing_at` string, date-time, nullable
        - `msg` string
        - `pending_status` string
        - `phase_name` string
        - `preparing_at` string, date-time, nullable
        - `smoketesting_succeeded` boolean, nullable
        - `started_at` string, date-time, nullable
        - `status` string
        - `stopped` boolean
      - `project_name` string
      - `project_slug` string
      - `revision` string, nullable
      - `run_attributes` object, nullable
      - `run_id` integer, required
      - `run_number` integer
      - `scm_commit_author` string, nullable
      - `scm_commit_author_email` string, nullable
      - `scm_commit_subject` string, nullable
      - `scm_remote_origin` string, nullable
      - `started` boolean
      - `started_at` string, date-time, nullable
      - `started_by` string
      - `stopped` boolean
      - `target_id` integer, required
      - `target_name` string
      - `target_slug` string
      - `task_id` string
      - `tests_per_second` number
      - `tests_run` integer
      - `tests_run_honggfuzz` integer
      - `tests_run_libfuzz` integer
      - `tests_run_mfuzz` integer
      - `tests_run_symexec` integer
      - `updated_at` string, date-time
      - `user_testsuite_id` integer, nullable
    - `n_runs` integer
    - `owner` string
    - `project_id` integer
    - `project_slug` string
    - `slug` string
    - `target_id` integer
    - `target_name` string, required
    - `type` 'code' | 'api'
    - `updated_at` string, date-time
    - `url` string, nullable

## Other responses

- `400` — Input parameters are referencing incorrect/non-existing objects.
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Resource not found.
- `409` — Resource exists.
- `422` — Input parameters fail validation.
- `429` — Too many requests

---

[API](https://skmtc.dev/mayhem/apis/mayhem-api.md) · [All operations](https://skmtc.dev/mayhem/apis/mayhem-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mayhem/mayhem-api/revisions/7bc7386815cd/schema)
