---
title: "Submit network information"
method: POST
path: "/agents/{agentId}/streams/{streamId}/ice"
tags: ["Agents Streams"]
---

# Submit network information

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

Updates the server with a WebRTC ICE candidate. If the candidate parameter is missing or a value of null is given the added ICE candidate is an "end-of-candidates" indicator.

## Path parameters

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

## Request body

- union
  - object
    - `candidate` string, required — A string representing the transport address for the candidate that can be used for connectivity checks. The format of this address is a candidate-attribute as defined in RFC 5245. This string is empty ("") if the RTCIceCandidate is an "end of candidates" indicator.
    - `sdpMid` string, required — A string specifying the candidate's media stream identification tag which uniquely identifies the media stream within the component with which the candidate is associated, or null if no such association exists.
    - `sdpMLineIndex` number, double, required — If not null, sdpMLineIndex indicates the zero-based index number of the media description (as defined in RFC 4566) in the SDP with which the candidate is associated.
    - `session_id` string — Session identifier information, should be returned in the body of all streaming requests (from the response of the POST /streams)
  - object
    - `session_id` string — Session identifier information, should be returned in the body of all streaming requests (from the response of the POST /streams)

## 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)
