You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. swagger: "2.0"
  2. info:
  3. description: "Documents the REST calls used by Jitsi Meet to integrate with other services"
  4. version: "1.0.0"
  5. title: "Swagger Video"
  6. termsOfService: "https://jitsi.org/CloudAPITOS/"
  7. contact:
  8. email: "team@jitsi.org"
  9. host: "jitsi-api.jitsi.org"
  10. basePath: "/"
  11. tags:
  12. - name: "conferenceMapper"
  13. description: "Conference to ID Mapper"
  14. externalDocs:
  15. description: "Conference API Details"
  16. url: "https://jitsi.org/CloudAPI"
  17. - name: "phoneNumberList"
  18. description: "List of dial-in numbers"
  19. schemes:
  20. - "https"
  21. paths:
  22. /conferenceMapper:
  23. get:
  24. tags:
  25. - "conferenceMapper"
  26. summary: "Create or retrieve conference ID mapping"
  27. description: "When called with a conference, creates a new ID and both stores and returns the result. When called with an ID, returns the mapping if previously created."
  28. operationId: "GETconferenceMapper"
  29. consumes:
  30. - "application/json"
  31. produces:
  32. - "application/json"
  33. parameters:
  34. - in: "query"
  35. name: "conference"
  36. type: "string"
  37. format: "JID"
  38. description: "Full JID (room@conference.server.domain) for the conference to create or return existing conference mapping. Used preferentially over all other input parameters (search by conference)"
  39. - in: "query"
  40. name: "id"
  41. type: "number"
  42. description: "ID to search for existing conference mapping. Only used when provided alone (search by ID)"
  43. responses:
  44. 200:
  45. description: "mapping search performed"
  46. schema:
  47. $ref: "#/definitions/ConferenceMapperDetails"
  48. 405:
  49. description: "Invalid input"
  50. post:
  51. tags:
  52. - "conferenceMapper"
  53. summary: "Create or retrieve conference ID mapping"
  54. description: "When called with a conference, creates a new ID and both stores and returns the result. When called with an ID, returns the mapping if previously created."
  55. operationId: "POSTconferenceMapper"
  56. consumes:
  57. - "application/json"
  58. produces:
  59. - "application/json"
  60. parameters:
  61. - in: "body"
  62. name: "body"
  63. description: "Conference Mapper Request"
  64. required: true
  65. schema:
  66. $ref: "#/definitions/ConferenceMapperRequest"
  67. responses:
  68. 200:
  69. description: "mapping search performed"
  70. schema:
  71. $ref: "#/definitions/ConferenceMapperDetails"
  72. 405:
  73. description: "Invalid input"
  74. /phoneNumberList:
  75. get:
  76. tags:
  77. - "phoneNumberList"
  78. summary: "Returns a list phone numbers by country"
  79. description: "Used to populate the Share The Link section of jitsi-meet"
  80. operationId: "phoneNumberList"
  81. produces:
  82. - "application/json"
  83. responses:
  84. 200:
  85. description: "successful operation"
  86. schema:
  87. type: array
  88. items:
  89. $ref: "#/definitions/PhoneNumberListAnswer"
  90. /waiting-queue/golive:
  91. post:
  92. tags:
  93. - waitingQueueGoLive
  94. summary: Post a go live request
  95. description: Mark the conference as live, notify all visitors waiting.
  96. operationId: goLive
  97. consumes:
  98. - "application/json"
  99. parameters:
  100. - in: "body"
  101. name: "body"
  102. description: "Go Live Request"
  103. required: true
  104. schema:
  105. "$ref": "#/definitions/GoLiveRequest"
  106. responses:
  107. '200':
  108. description: Successful operation
  109. '404':
  110. description: Missing conference
  111. '500':
  112. description: Failed operation
  113. securityDefinitions:
  114. token:
  115. type: "apiKey"
  116. name: "token"
  117. in: "query"
  118. Bearer:
  119. type: "apiKey"
  120. name: "Authorization"
  121. in: "header"
  122. definitions:
  123. ConferenceMapperRequest:
  124. description: "Request to create or find a conference mapping"
  125. type: "object"
  126. properties:
  127. id:
  128. type: "number"
  129. description: "ID to search for existing conference mapping. Only used when provided alone (search by ID)"
  130. conference:
  131. type: "string"
  132. format: "JID"
  133. description: "Full JID (room@conference.server.domain) for the conference to create or return existing conference mapping. Used preferentially over all other input parameters (search by conference)"
  134. room:
  135. type: "string"
  136. description: "Room part of the conference. Required if 'conference' is not provided. Used to generate a 'conference' value (search by conference)"
  137. domain:
  138. type: "string"
  139. description: "Domain part of the conference. Used if 'conference' is not provided. Defaults to domain of the API endpoint. Used to generate a 'conference' value (search by conference)"
  140. ConferenceMapperDetails:
  141. description: "Conference mapping between conference JID and numeric ID"
  142. type: "object"
  143. properties:
  144. id:
  145. type: "number"
  146. description: "Unique ID mapped to conference"
  147. conference:
  148. type: "string"
  149. format: "JID"
  150. description: "Full JID for the conference OR boolean false if no conference was found (search by ID)"
  151. PhoneNumberListAnswer:
  152. description: "Answer with Phone number list and additional information"
  153. type: "object"
  154. properties:
  155. countryCode:
  156. type: string
  157. formattedNumber:
  158. type: string
  159. tollFree:
  160. type: boolean
  161. example:
  162. - {"countryCode":"US","tollFree":false,"formattedNumber":"+1 123-456-7890"}
  163. - {"countryCode":"UK","tollFree":true,"formattedNumber":"+44 123 456 7890"}
  164. GoLiveRequest:
  165. type: object
  166. properties:
  167. conference:
  168. type: string
  169. externalDocs:
  170. description: "Find out more about the Jitsi Cloud API"
  171. url: "https://jitsi.org/CloudAPI"