Send Input
POST
/v1/openai-agents/sessions/{session-id}/inputPOST
/v1/openai-agents/sessions/{session-id}/inputYour instance endpoint, shown on the instance page in the dashboard. Each instance has its own host; there is no shared API host.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
session-id | path | string | Yes |
Request Body
JSON request bodies are capped at 2 MiB.
| Property | Type | Required | Description |
|---|---|---|---|
idempotency_key | string | Yes | |
input | object | Yes |
Responses
202 Success
| Property | Type | Description |
|---|---|---|
accepted | boolean |
400 Invalid request
| Property | Type | Description |
|---|---|---|
error | object |
403 Permission denied
| Property | Type | Description |
|---|---|---|
error | object |
404 Not found
| Property | Type | Description |
|---|---|---|
error | object |
500 Internal error
| Property | Type | Description |
|---|---|---|
error | object |
503 Unavailable
| Property | Type | Description |
|---|---|---|
error | object |
Request
curl -X POST "http://localhost:8089/v1/openai-agents/sessions/{session-id}/input" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"idempotency_key":"string"}'const response = await fetch("http://localhost:8089/v1/openai-agents/sessions/{session-id}/input", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"idempotency_key": "string"
}),
});
const data = await response.json();import requests
response = requests.post(
"http://localhost:8089/v1/openai-agents/sessions/{session-id}/input",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"idempotency_key": "string"
},
)
data = response.json()Response
{
"accepted": true
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}
