---
title: "POST agent_session_created"
method: POST
path: "agent_session_created"
---

# POST agent_session_created

`POST agent_session_created` (webhook)

Sent when an agent session is created.

## Payload

- WebhookAgentSessionCreated — Sent when an agent session is created.
  - `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.session.created', required — The event type. Always `agent.session.created`.
  - `data` AgentSessionCreatedPayloadResource, required
    - `id` string, required — The ID of the session.
    - `environment_id` string — The ID of the environment, when one exists.
    - `environment_type` string, required — The environment type: `none`, `openai_hosted`, or `self_hosted`.
    - `connect` AgentSessionConnectPayloadResource
      - `remote_url` string, required — The URL used to connect the self-hosted 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/2cf225eb2eb4?raw)
