---
title: "Create Agent Insights job"
method: POST
path: "/v1/private/agent-insights/jobs/{projectId}"
tags: ["Agent Insights Jobs"]
---

# Create Agent Insights job

`POST /v1/private/agent-insights/jobs/{projectId}`

Creates the Agent Insights job for a project. 409 if one already exists.

## Path parameters

- `projectId` string, uuid, required

## Response `201`

Job created

- AgentInsightsJob
  - `id` string, uuid
  - `project_id` string, uuid, required
  - `status` 'enabled' | 'disabled'
  - `last_scan_at` string, date-time
  - `last_failure_reason` string
  - `last_failure_detail` string
  - `last_failed_at` string, date-time
  - `created_at` string, date-time
  - `created_by` string
  - `last_updated_at` string, date-time
  - `last_updated_by` string

## Other responses

- `404` — Project not found
- `409` — Job already exists

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/revisions/bcd13aadaaf8/schema)
