Otter Framework API (1.0)

Download OpenAPI specification:Download

License: Apache 2.0

The Otter Framework REST API is for API consumers creating and manipulating room resources for peer to peer video communications.

Errors

The API uses standard HTTP status codes to indicate the success or failure of the API call. The body of the response will be JSON in the following format:

{
  "message": "resource not found"
}

Fetch or create a new room

Sending POST request with an optional Room identifier to this endpoint will first check if the Room exists. If it does, the room resource will be returned. If it doesn't exist, a new room resource will be created and returned to the consumer.

Request Body schema: application/json

(Optional) Specify the name for the new room. If there is no request body, a new room without a name will be created.

uniqueName
string

Responses

Request samples

Content type
application/json
{
  • "uniqueName": "otter"
}

Response samples

Content type
application/json
Example
{
  • "id": "34895d14-870c-415a-9559-c85fb6f3ad26",
  • "unique_name": "",
  • "status": "open",
  • "created_at": "Fri, 03 Mar 2023 17:28:11 GMT",
  • "updated_at": "Fri, 03 Mar 2023 17:28:11 GMT"
}

Fetch a Room resource

Fetch a specific Room resource by a unique room identifier (can be room_id or room_name).

path Parameters
uniqueIdentifier
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "34895d14-870c-415a-9559-c85fb6f3ad26",
  • "unique_name": "otter",
  • "status": "open",
  • "created_at": "Fri, 03 Mar 2023 17:28:11 GMT",
  • "updated_at": "Fri, 03 Mar 2023 17:28:11 GMT"
}

Get WebRTC configurations and credentials

Responses