keys.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. {
  2. "get": {
  3. "tags": ["Projects"],
  4. "description": "Return a list of client keys bound to a project.",
  5. "operationId": "List a Project's Client Keys",
  6. "parameters": [
  7. {
  8. "name": "organization_slug",
  9. "in": "path",
  10. "description": "The slug of the organization the client keys belong to.",
  11. "required": true,
  12. "schema": {
  13. "type": "string"
  14. }
  15. },
  16. {
  17. "name": "project_slug",
  18. "in": "path",
  19. "description": "The slug of the project the client keys belong to.",
  20. "required": true,
  21. "schema": {
  22. "type": "string"
  23. }
  24. },
  25. {
  26. "$ref": "../../components/parameters/pagination-cursor.json#/PaginationCursor"
  27. }
  28. ],
  29. "responses": {
  30. "200": {
  31. "description": "Success",
  32. "content": {
  33. "application/json": {
  34. "schema": {
  35. "type": "array",
  36. "items": {
  37. "$ref": "../../components/schemas/key.json#/Key"
  38. }
  39. },
  40. "example": [
  41. {
  42. "browserSdk": {
  43. "choices": [
  44. ["latest", "latest"],
  45. ["4.x", "4.x"]
  46. ]
  47. },
  48. "browserSdkVersion": "4.x",
  49. "dateCreated": "2018-11-06T21:20:07.941Z",
  50. "dsn": {
  51. "cdn": "https://sentry.io/js-sdk-loader/cec9dfceb0b74c1c9a5e3c135585f364.min.js",
  52. "csp": "https://sentry.io/api/2/csp-report/?sentry_key=cec9dfceb0b74c1c9a5e3c135585f364",
  53. "minidump": "https://sentry.io/api/2/minidump/?sentry_key=cec9dfceb0b74c1c9a5e3c135585f364",
  54. "public": "https://cec9dfceb0b74c1c9a5e3c135585f364@sentry.io/2",
  55. "secret": "https://cec9dfceb0b74c1c9a5e3c135585f364:4f6a592349e249c5906918393766718d@sentry.io/2",
  56. "security": "https://sentry.io/api/2/security/?sentry_key=cec9dfceb0b74c1c9a5e3c135585f364"
  57. },
  58. "id": "cec9dfceb0b74c1c9a5e3c135585f364",
  59. "isActive": true,
  60. "label": "Fabulous Key",
  61. "name": "Fabulous Key",
  62. "projectId": 2,
  63. "public": "cec9dfceb0b74c1c9a5e3c135585f364",
  64. "rateLimit": null,
  65. "secret": "4f6a592349e249c5906918393766718d"
  66. }
  67. ]
  68. }
  69. }
  70. },
  71. "403": {
  72. "description": "Forbidden"
  73. }
  74. },
  75. "security": [
  76. {
  77. "auth_token": ["project:read"]
  78. }
  79. ]
  80. },
  81. "post": {
  82. "tags": ["Projects"],
  83. "description": "Create a new client key bound to a project. The key's secret and public key are generated by the server.",
  84. "operationId": "Create a New Client Key",
  85. "parameters": [
  86. {
  87. "name": "organization_slug",
  88. "in": "path",
  89. "description": "The slug of the organization the client keys belong to.",
  90. "required": true,
  91. "schema": {
  92. "type": "string"
  93. }
  94. },
  95. {
  96. "name": "project_slug",
  97. "in": "path",
  98. "description": "The slug of the project the client keys belong to.",
  99. "required": true,
  100. "schema": {
  101. "type": "string"
  102. }
  103. }
  104. ],
  105. "requestBody": {
  106. "content": {
  107. "application/json": {
  108. "schema": {
  109. "required": ["name"],
  110. "type": "object",
  111. "properties": {
  112. "name": {
  113. "type": "string",
  114. "description": "The name for the new key."
  115. }
  116. }
  117. },
  118. "example": {
  119. "name": "Fabulous Key"
  120. }
  121. }
  122. },
  123. "required": true
  124. },
  125. "responses": {
  126. "201": {
  127. "description": "Success",
  128. "content": {
  129. "application/json": {
  130. "schema": {
  131. "$ref": "../../components/schemas/key.json#/Key"
  132. },
  133. "example": {
  134. "browserSdk": {
  135. "choices": [
  136. ["latest", "latest"],
  137. ["4.x", "4.x"]
  138. ]
  139. },
  140. "browserSdkVersion": "4.x",
  141. "dateCreated": "2018-11-06T21:20:07.941Z",
  142. "dsn": {
  143. "cdn": "https://sentry.io/js-sdk-loader/cec9dfceb0b74c1c9a5e3c135585f364.min.js",
  144. "csp": "https://sentry.io/api/2/csp-report/?sentry_key=cec9dfceb0b74c1c9a5e3c135585f364",
  145. "minidump": "https://sentry.io/api/2/minidump/?sentry_key=cec9dfceb0b74c1c9a5e3c135585f364",
  146. "public": "https://cec9dfceb0b74c1c9a5e3c135585f364@sentry.io/2",
  147. "secret": "https://cec9dfceb0b74c1c9a5e3c135585f364:4f6a592349e249c5906918393766718d@sentry.io/2",
  148. "security": "https://sentry.io/api/2/security/?sentry_key=cec9dfceb0b74c1c9a5e3c135585f364"
  149. },
  150. "id": "cec9dfceb0b74c1c9a5e3c135585f364",
  151. "isActive": true,
  152. "label": "Fabulous Key",
  153. "name": "Fabulous Key",
  154. "projectId": 2,
  155. "public": "cec9dfceb0b74c1c9a5e3c135585f364",
  156. "rateLimit": null,
  157. "secret": "4f6a592349e249c5906918393766718d"
  158. }
  159. }
  160. }
  161. },
  162. "403": {
  163. "description": "Forbidden"
  164. },
  165. "404": {
  166. "description": "The requested resource does not exist"
  167. }
  168. },
  169. "security": [
  170. {
  171. "auth_token": ["project:write"]
  172. }
  173. ]
  174. }
  175. }