# List video conferences

GET https://%7BYour_Space_Name%7D.signalwire.com/api/video/conferences

List Video Conferences.

#### Permissions

The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Video_.

[Learn more about API scopes](/docs/platform/your-signalwire-api-space).

Reference: https://signalwire.com/docs/apis/rest/video/video-conferences/list-video-conferences

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: signalwire-rest
  version: 1.0.0
paths:
  /api/video/conferences:
    get:
      operationId: list-video-conferences
      summary: List video conferences
      description: >-
        List Video Conferences.


        #### Permissions


        The API token used to authenticate must have the following scope(s)
        enabled to make a successful request: _Video_.


        [Learn more about API scopes](/docs/platform/your-signalwire-api-space).
      tags:
        - subpackage_videoConferences
      parameters:
        - name: starts_after
          in: query
          description: >-
            Return conferences with a `join_from` time on or after this
            timestamp. Accepts RFC 3339 datetime or Unix timestamp.
          required: false
          schema:
            type: string
        - name: ends_before
          in: query
          description: >-
            Return conferences with a `join_until` time on or before this
            timestamp. Accepts RFC 3339 datetime or Unix timestamp.
          required: false
          schema:
            type: string
        - name: include_active_session
          in: query
          description: >-
            Specifies whether to include information about the conference's
            active session (if any).
          required: false
          schema:
            type: boolean
        - name: page_number
          in: query
          description: >-
            Page number to return. Requires `page_token` for values greater than
            0.
          required: false
          schema:
            type: integer
            default: 0
        - name: page_size
          in: query
          description: >-
            Specify the number of results to return on a single page. The
            default page size is `50` and the maximum is `1000`.
          required: false
          schema:
            type: integer
            default: 50
        - name: page_token
          in: query
          description: >-
            Token for cursor-based pagination. Required when `page_number` is
            greater than 0.
          required: false
          schema:
            type: string
        - name: Authorization
          in: header
          description: >-
            SignalWire Basic Authentication using Project ID and API Token.


            The client sends HTTP requests with the Authorization header
            containing

            the word Basic followed by a space and a base64-encoded string of
            project_id:token.

            The project ID will be used as the username and the API token as the
            password.


            Example:

            ```

            Authorization: Basic base64(project_id:token)

            ```
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Video.ListConferencesResponse'
        '400':
          description: The request is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode400'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode401'
        '422':
          description: The request contains invalid parameters. See errors for details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Video.VideoStatusCode422'
        '500':
          description: An internal server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode500'
servers:
  - url: https://%7BYour_Space_Name%7D.signalwire.com
components:
  schemas:
    Video.PaginationLinks:
      type: object
      properties:
        self:
          type: string
          description: Link to the current page.
        first:
          type: string
          description: Link to the first page.
        next:
          type: string
          description: Link to the next page.
        prev:
          type: string
          description: Link to the previous page.
      required:
        - self
        - first
      description: Pagination links for list responses.
      title: Video.PaginationLinks
    Video.VideoQuality:
      type: string
      enum:
        - 720p
        - 1080p
      description: Video quality resolution.
      title: Video.VideoQuality
    Video.VideoLayout:
      type: string
      enum:
        - grid-responsive
        - grid-responsive-mobile
        - highlight-1-responsive
        - 1x1
        - 2x1
        - 2x2
        - 5up
        - 3x3
        - 4x4
        - 5x5
        - 6x6
        - 8x8
        - 10x10
      description: Video room layout options.
      title: Video.VideoLayout
    Video.ConferenceSize:
      type: string
      enum:
        - small
        - medium
        - large
      description: Conference size options.
      title: Video.ConferenceSize
    VideoConferenceMeta:
      type: object
      properties: {}
      description: User-defined metadata for the conference.
      title: VideoConferenceMeta
    Video.VideoFps:
      type: string
      enum:
        - '20'
        - '30'
      description: Video frames per second.
      title: Video.VideoFps
    Video.RoomSessionStatus:
      type: string
      enum:
        - in-progress
        - completed
      description: Status of a room session.
      title: Video.RoomSessionStatus
    Video.ActiveSession:
      type: object
      properties:
        id:
          type: string
          description: Unique ID of the session.
        room_id:
          type: string
          description: >-
            Unique ID of the Room if the Session was created from a Room and was
            not an auto-created Session.
        name:
          type: string
          description: The named identifier of room session.
        display_name:
          type: string
          description: >-
            Display name of room, no character limitations. Maximum of 200
            characters. Defaults to the value of name.
        join_from:
          type: string
          format: date-time
          description: Room Session does not accept new Members before this time.
        join_until:
          type: string
          format: date-time
          description: Room Session stops accepting new Members at this time.
        remove_at:
          type: string
          format: date-time
          description: Remove Members from the Room Session at this time.
        remove_after_seconds_elapsed:
          type: integer
          description: Remove Members after they are in the Room Session for N seconds.
        layout:
          type: string
          description: >-
            The Room Session's initial layout. See documentation for a full list
            of supported layouts.
        max_members:
          type: integer
          description: The maximum number of members allowed in the room at a time.
        fps:
          $ref: '#/components/schemas/Video.VideoFps'
          description: The Room Session's frames per second.
        quality:
          $ref: '#/components/schemas/Video.VideoQuality'
          description: The Room Session's resolution.
        start_time:
          type: string
          format: date-time
          description: Start time of the session.
        end_time:
          type: string
          format: date-time
          description: End time of the session.
        duration:
          type: integer
          description: How long, in seconds, the Room Session lasted.
        status:
          $ref: '#/components/schemas/Video.RoomSessionStatus'
          description: Status of the session.
        record_on_start:
          type: boolean
          description: >-
            Whether a recording was automatically started when this Room Session
            began.
        enable_room_previews:
          type: boolean
          description: >-
            Whether a video with a preview of the content of the room is to be
            generated.
        preview_url:
          type: string
          description: >-
            If room previews are enabled and the room session is in progress,
            this is the URL of the preview video.
        audio_video_sync:
          type: boolean
          description: Enable/disable jitter buffer audio-video sync.
      description: Active session information for a room.
      title: Video.ActiveSession
    Video.Conference:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique ID of the video conference.
        name:
          type: string
          description: >-
            A named unique identifier for the conference. Allowed characters:
            `A-Za-z0-9_-`.
        display_name:
          type:
            - string
            - 'null'
          description: Display name of the video conference. Maximum of 200 characters.
        description:
          type:
            - string
            - 'null'
          description: Description of the conference. Maximum of 3000 characters.
        join_from:
          type:
            - string
            - 'null'
          format: date-time
          description: Conference does not accept new participants before this time.
        join_until:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Conference stops accepting new participants at this time, but keeps
            running until all participants leave.
        quality:
          $ref: '#/components/schemas/Video.VideoQuality'
          description: The conference's resolution.
        layout:
          $ref: '#/components/schemas/Video.VideoLayout'
          description: The conference's initial layout.
        size:
          oneOf:
            - $ref: '#/components/schemas/Video.ConferenceSize'
            - type: 'null'
          description: The size of the video conference.
        record_on_start:
          type: boolean
          description: Whether to start recording when a conference session begins.
        tone_on_entry_and_exit:
          type: boolean
          description: >-
            Whether a tone is played when a member enters or exits the
            conference.
        user_join_video_off:
          type: boolean
          description: Whether participants join with video off by user setting.
        room_join_video_off:
          type: boolean
          description: Whether participants join with video off by room setting.
        enable_chat:
          type: boolean
          description: Whether group chat is enabled for conference participants.
        enable_room_previews:
          type:
            - boolean
            - 'null'
          description: Whether a preview video of the conference content is generated.
        dark_primary:
          type:
            - string
            - 'null'
          description: CTA buttons and selected items color (dark theme).
        dark_background:
          type:
            - string
            - 'null'
          description: Main background color (dark theme).
        dark_foreground:
          type:
            - string
            - 'null'
          description: Main foreground color (dark theme).
        dark_success:
          type:
            - string
            - 'null'
          description: Success indication color (dark theme).
        dark_negative:
          type:
            - string
            - 'null'
          description: Error indication color (dark theme).
        light_primary:
          type:
            - string
            - 'null'
          description: CTA buttons and selected items color (light theme).
        light_background:
          type:
            - string
            - 'null'
          description: Main background color (light theme).
        light_foreground:
          type:
            - string
            - 'null'
          description: Main foreground color (light theme).
        light_success:
          type:
            - string
            - 'null'
          description: Success indication color (light theme).
        light_negative:
          type:
            - string
            - 'null'
          description: Error indication color (light theme).
        meta:
          oneOf:
            - $ref: '#/components/schemas/VideoConferenceMeta'
            - type: 'null'
          description: User-defined metadata for the conference.
        created_at:
          type: string
          format: date-time
          description: Timestamp when the conference was created.
        updated_at:
          type: string
          format: date-time
          description: Timestamp when the conference was last updated.
        active_session:
          $ref: '#/components/schemas/Video.ActiveSession'
          description: >-
            Active session information. Only present when requested via the
            `include_active_session` query parameter.
      required:
        - id
        - name
        - display_name
        - description
        - join_from
        - join_until
        - quality
        - layout
        - size
        - record_on_start
        - tone_on_entry_and_exit
        - user_join_video_off
        - room_join_video_off
        - enable_chat
        - enable_room_previews
        - dark_primary
        - dark_background
        - dark_foreground
        - dark_success
        - dark_negative
        - light_primary
        - light_background
        - light_foreground
        - light_success
        - light_negative
        - meta
        - created_at
        - updated_at
      description: Video conference response object.
      title: Video.Conference
    Video.ListConferencesResponse:
      type: object
      properties:
        links:
          $ref: '#/components/schemas/Video.PaginationLinks'
          description: Pagination links.
        data:
          type: array
          items:
            $ref: '#/components/schemas/Video.Conference'
          description: List of conferences.
      required:
        - links
        - data
      description: List conferences response.
      title: Video.ListConferencesResponse
    TypesStatusCodesStatusCode400Error:
      type: string
      enum:
        - Bad Request
      title: TypesStatusCodesStatusCode400Error
    Types.StatusCodes.StatusCode400:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/TypesStatusCodesStatusCode400Error'
      required:
        - error
      description: The request is invalid.
      title: Types.StatusCodes.StatusCode400
    TypesStatusCodesStatusCode401Error:
      type: string
      enum:
        - Unauthorized
      title: TypesStatusCodesStatusCode401Error
    Types.StatusCodes.StatusCode401:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/TypesStatusCodesStatusCode401Error'
      required:
        - error
      description: Access is unauthorized.
      title: Types.StatusCodes.StatusCode401
    Types.StatusCodes.RestApiErrorItem:
      type: object
      properties:
        type:
          type: string
          description: The category of error.
        code:
          type: string
          description: A specific error code.
        message:
          type: string
          description: A description of what caused the error.
        attribute:
          type:
            - string
            - 'null'
          description: The request parameter that caused the error, if applicable.
        url:
          type: string
          description: A link to documentation about this error.
      required:
        - type
        - code
        - message
        - url
      description: Details about a specific error.
      title: Types.StatusCodes.RestApiErrorItem
    Video.VideoStatusCode422:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Types.StatusCodes.RestApiErrorItem'
          description: List of validation errors.
      required:
        - errors
      description: The request contains invalid parameters. See errors for details.
      title: Video.VideoStatusCode422
    TypesStatusCodesStatusCode500Error:
      type: string
      enum:
        - Internal Server Error
      title: TypesStatusCodesStatusCode500Error
    Types.StatusCodes.StatusCode500:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/TypesStatusCodesStatusCode500Error'
      required:
        - error
      description: An internal server error occurred.
      title: Types.StatusCodes.StatusCode500
  securitySchemes:
    SignalWireBasicAuth:
      type: http
      scheme: basic
      description: >-
        SignalWire Basic Authentication using Project ID and API Token.


        The client sends HTTP requests with the Authorization header containing

        the word Basic followed by a space and a base64-encoded string of
        project_id:token.

        The project ID will be used as the username and the API token as the
        password.


        Example:

        ```

        Authorization: Basic base64(project_id:token)

        ```

```

## SDK Code Examples

```python
import requests
import base64

url = "https://{your_space_name}.signalwire.com/api/video/conferences"

credentials = base64.b64encode(f"<project_id>:<api_token>".encode()).decode()

headers = {"Authorization": f"Basic {credentials}"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://{your_space_name}.signalwire.com/api/video/conferences';
const credentials = btoa("<project_id>:<api_token>");

const options = {method: 'GET', headers: {Authorization: `Basic ${credentials}`}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://{your_space_name}.signalwire.com/api/video/conferences"

	req, _ := http.NewRequest("GET", url, nil)

	req.SetBasicAuth("<project_id>", "<api_token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'base64'
require 'net/http'

url = URI("https://{your_space_name}.signalwire.com/api/video/conferences")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = "Basic #{Base64.strict_encode64("<project_id>:<api_token>")}"

response = http.request(request)
puts response.read_body
```

```java
import java.util.Base64;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://{your_space_name}.signalwire.com/api/video/conferences")
  .header("Authorization", "Basic " + Base64.getEncoder().encodeToString("<project_id>:<api_token>".getBytes()))
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://{your_space_name}.signalwire.com/api/video/conferences', [
  'headers' => [
    'Authorization' => 'Basic ' . base64_encode('<project_id>:<api_token>'),
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;
using System;
using System.Text;

var client = new RestClient("https://{your_space_name}.signalwire.com/api/video/conferences");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes("<project_id>:<api_token>")));
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let credentials = Data("<project_id>:<api_token>".utf8).base64EncodedString()

let headers = ["Authorization": "Basic \(credentials)"]

let request = NSMutableURLRequest(url: NSURL(string: "https://{your_space_name}.signalwire.com/api/video/conferences")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```