---
title: "[Beta] Create the issues agent for a session"
method: POST
path: "/v1/platform/sessions/{session_id}/issues-agent"
tags: ["issues-agent"]
---

# [Beta] Create the issues agent for a session

`POST /v1/platform/sessions/{session_id}/issues-agent`

**Beta:** This endpoint is in active development and may change without notice.

Configures the issues agent for the given tracer session and enqueues
the initial scan. Fails if an agent already exists for the session.

## Path parameters

- `session_id` string, required

## Request body

- TracerSessionIssuesAgentCreateIssuesAgentRequest
  - `context_hub_repo_handle` string
  - `github_base_branch` string
  - `github_repo_subdir` string
  - `github_repo_url` string
  - `priorities` string[]

## Response `201`

Created

- TracerSessionIssuesAgentIssuesAgent
  - `agent_overview_accepted` boolean
  - `context_hub_repo_handle` string
  - `created_at` string
  - `cron_enabled` boolean
  - `cron_schedule` string
  - `github_base_branch` string
  - `github_repo_subdir` string
  - `github_repo_url` string
  - `id` string
  - `latest_run_id` string
  - `latest_thread_id` string — IDs of the latest run on LangSmith Deployments; NULL until first trigger.
  - `priorities` string[]
  - `session_agent_overview_repo_id` string
  - `session_id` string
  - `session_name` string — JOINed from tracer_session
  - `tenant_id` string
  - `updated_at` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `409` — Conflict
- `500` — Internal Server Error

---

[API](https://skmtc.net/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.net/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/versions/a0acb3a6a101/schema)
