123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- {
- "get": {
- "tags": ["Projects"],
- "description": "Return a list of client keys bound to a project.",
- "operationId": "List a Project's Client Keys",
- "parameters": [
- {
- "name": "organization_slug",
- "in": "path",
- "description": "The slug of the organization the client keys belong to.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "project_slug",
- "in": "path",
- "description": "The slug of the project the client keys belong to.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "$ref": "../../components/parameters/pagination-cursor.json#/PaginationCursor"
- }
- ],
- "responses": {
- "200": {
- "description": "Success",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "../../components/schemas/key.json#/Key"
- }
- },
- "example": [
- {
- "browserSdk": {
- "choices": [
- ["latest", "latest"],
- ["4.x", "4.x"]
- ]
- },
- "browserSdkVersion": "4.x",
- "dateCreated": "2018-11-06T21:20:07.941Z",
- "dsn": {
- "cdn": "https://sentry.io/js-sdk-loader/cec9dfceb0b74c1c9a5e3c135585f364.min.js",
- "csp": "https://sentry.io/api/2/csp-report/?sentry_key=cec9dfceb0b74c1c9a5e3c135585f364",
- "minidump": "https://sentry.io/api/2/minidump/?sentry_key=cec9dfceb0b74c1c9a5e3c135585f364",
- "public": "https://cec9dfceb0b74c1c9a5e3c135585f364@sentry.io/2",
- "secret": "https://cec9dfceb0b74c1c9a5e3c135585f364:4f6a592349e249c5906918393766718d@sentry.io/2",
- "security": "https://sentry.io/api/2/security/?sentry_key=cec9dfceb0b74c1c9a5e3c135585f364"
- },
- "id": "cec9dfceb0b74c1c9a5e3c135585f364",
- "isActive": true,
- "label": "Fabulous Key",
- "name": "Fabulous Key",
- "projectId": 2,
- "public": "cec9dfceb0b74c1c9a5e3c135585f364",
- "rateLimit": null,
- "secret": "4f6a592349e249c5906918393766718d"
- }
- ]
- }
- }
- },
- "403": {
- "description": "Forbidden"
- }
- },
- "security": [
- {
- "auth_token": ["project:read"]
- }
- ]
- },
- "post": {
- "tags": ["Projects"],
- "description": "Create a new client key bound to a project. The key's secret and public key are generated by the server.",
- "operationId": "Create a New Client Key",
- "parameters": [
- {
- "name": "organization_slug",
- "in": "path",
- "description": "The slug of the organization the client keys belong to.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "project_slug",
- "in": "path",
- "description": "The slug of the project the client keys belong to.",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "required": ["name"],
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name for the new key."
- }
- }
- },
- "example": {
- "name": "Fabulous Key"
- }
- }
- },
- "required": true
- },
- "responses": {
- "201": {
- "description": "Success",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "../../components/schemas/key.json#/Key"
- },
- "example": {
- "browserSdk": {
- "choices": [
- ["latest", "latest"],
- ["4.x", "4.x"]
- ]
- },
- "browserSdkVersion": "4.x",
- "dateCreated": "2018-11-06T21:20:07.941Z",
- "dsn": {
- "cdn": "https://sentry.io/js-sdk-loader/cec9dfceb0b74c1c9a5e3c135585f364.min.js",
- "csp": "https://sentry.io/api/2/csp-report/?sentry_key=cec9dfceb0b74c1c9a5e3c135585f364",
- "minidump": "https://sentry.io/api/2/minidump/?sentry_key=cec9dfceb0b74c1c9a5e3c135585f364",
- "public": "https://cec9dfceb0b74c1c9a5e3c135585f364@sentry.io/2",
- "secret": "https://cec9dfceb0b74c1c9a5e3c135585f364:4f6a592349e249c5906918393766718d@sentry.io/2",
- "security": "https://sentry.io/api/2/security/?sentry_key=cec9dfceb0b74c1c9a5e3c135585f364"
- },
- "id": "cec9dfceb0b74c1c9a5e3c135585f364",
- "isActive": true,
- "label": "Fabulous Key",
- "name": "Fabulous Key",
- "projectId": 2,
- "public": "cec9dfceb0b74c1c9a5e3c135585f364",
- "rateLimit": null,
- "secret": "4f6a592349e249c5906918393766718d"
- }
- }
- }
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "The requested resource does not exist"
- }
- },
- "security": [
- {
- "auth_token": ["project:write"]
- }
- ]
- }
- }
|