---
title: "Start a WebRTC connection"
method: POST
path: "/agents/{agentId}/streams/{streamId}/sdp"
tags: ["Agents Streams"]
---

# Start a WebRTC connection

`POST /agents/{agentId}/streams/{streamId}/sdp`

Updates the server with the SDP answer to the SDP offer received from the initial call to the `/agents/{agentId}/streams` endpoint, during the offer/answer negotiation of a WebRTC connection.

## Path parameters

- `agentId` string, required
- `streamId` string, required

## Request body

- CreateStartStreamRequest
  - `session_id` string — Session identifier information, should be returned in the body of all streaming requests (from the response of the POST /streams)
  - `answer` AnswerJsep, required
    - `type` 'answer', required — The SDP contained in the sdp property is the definitive choice in the exchange. In other words, this session description describes the agreed-upon configuration, and is being sent to finalize negotiation.
    - `sdp` string, required — Describe the media communication sessions to accept the session the is being negotiated

## Response `200`

OK

- Status
  - `status` string

## Other responses

- `400` — SessionError
- `401` — AuthorizationError

---

[API](https://skmtc.net/d-id/apis/realtime-endpoints.md) · [All operations](https://skmtc.net/d-id/apis/realtime-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/d-id/realtime-endpoints/revisions/2f2425e1b6b6/schema)
