---
title: "Queue a prompt for a session"
method: POST
path: "/session/{session_id}/prompt_async"
tags: ["Sessions"]
---

# Queue a prompt for a session

`POST /session/{session_id}/prompt_async`

## Path parameters

- `session_id` string, required

## Request body

- PromptRequest
  - `model` object, required
    - `modelID` string, required
  - `parts` object[], required
    - `type` 'text', required
    - `text` string, required

## Response `204`

Prompt queued

## Other responses

- `401` — Unauthorized
- `404` — Session not found

---

[API](https://skmtc.net/litellm-agent-platform/apis/litellm-agent-platform-api.md) · [All operations](https://skmtc.net/litellm-agent-platform/apis/litellm-agent-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/litellm-agent-platform/litellm-agent-platform-api/versions/92039c29a228/schema)
