Get session by ID

Request URL

GEThttps://api.webrtc.bandwidth.com/v1/accounts/{accountId}/accounts/{accountId}/sessions/{sessionId}

Basic Authentication

Bandwidth WebRTC API leverages Basic Authentication with your Dashboard API Credentials. Read more about how Bandwidth secures endpoints in the Security & Credentials document.


Response Attributes

Property Description
id Unique id of the session
participants The list of participants associated with this session
tag User defined tag to associate with the session

Example: Get session by ID

curl -X GET 
  --url 'https://api.webrtc.bandwidth.com/v1/accounts/{accountId}/sessions/{sessionId}' 
  -u '{username}:{password}' 
  -H 'Content-type: application/json'

Responds

{
  "id"                  : "75c21163-e110-41bc-bd76-1bb428ec85d5",
  "participants"        : [
      "c0c0dcfd-4ce4-4752-a8d9-b6ddeb72bead",
      "320e2af6-13ec-498d-8b51-daba52c37853"
 ],
  "tag"                 : "session1"
}

Potential Error Responses

HTTP/1.1 400 (Bad Request)
Content-Type: application/json
HTTP/1.1 401 (Unauthorized)
Content-Type: application/json
HTTP/1.1 403 (Access Denied)
Content-Type: application/json
HTTP/1.1 50x (Unexpected Error)
Content-Type: application/json

results matching ""

    No results matching ""