---
title: "POST agent_environment_failed"
method: POST
path: "agent_environment_failed"
---

# POST agent_environment_failed

`POST agent_environment_failed` (webhook)

Sent when setup fails for a prewarmed OpenAI-hosted environment before it is attached to a session.

## Payload

- WebhookAgentEnvironmentFailed: Sent when setup fails for a prewarmed OpenAI-hosted environment before it is attached to a session.
  - `id` string, required: The unique ID of the event.
  - `object` 'event', required: The object type. Always `event`.
  - `created_at` integer, required: The Unix timestamp, in seconds, when the event was created.
  - `type` 'agent.environment.failed', required: The event type. Always `agent.environment.failed`.
  - `data` AgentEnvironmentEvent, required: Identifies the environment whose lifecycle changed.
    - `id` string, required: The ID of the environment.

## Acknowledgement `200`

Return a 200 status code to acknowledge receipt of the event. Non-200
status codes will be retried.

---

[API](https://skmtc.dev/openai/apis/openapi.md) - [All operations](https://skmtc.dev/openai/apis/openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/openai/apis/openapi/revisions/b7f3ab500153?raw)
