You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Returns the API keys for a specific app. API keys are used to authenticate requests to the Spice runtime.",
17
+
"security": [
18
+
{
19
+
"BearerAuth": []
20
+
}
21
+
],
22
+
"parameters": [
23
+
{
24
+
"in": "path",
25
+
"name": "appId",
26
+
"required": true,
27
+
"schema": {
28
+
"type": "integer"
29
+
},
30
+
"description": "The ID of the app"
31
+
}
32
+
],
33
+
"responses": {
34
+
"200": {
35
+
"description": "API keys for the app",
36
+
"content": {
37
+
"application/json": {
38
+
"schema": {
39
+
"type": "object",
40
+
"properties": {
41
+
"api_key": {
42
+
"type": "string",
43
+
"nullable": true,
44
+
"description": "Primary API key"
45
+
},
46
+
"api_key_2": {
47
+
"type": "string",
48
+
"nullable": true,
49
+
"description": "Secondary API key (for key rotation)"
50
+
}
51
+
}
52
+
}
53
+
}
54
+
}
55
+
},
56
+
"401": {
57
+
"description": "Unauthorized"
58
+
},
59
+
"403": {
60
+
"description": "Insufficient scope"
61
+
},
62
+
"404": {
63
+
"description": "App not found"
64
+
}
65
+
},
66
+
"tags": ["API Keys"]
67
+
},
68
+
"post": {
69
+
"summary": "Regenerate API key",
70
+
"description": "Regenerates an API key for the specified app. This invalidates the previous key. Use key_number to specify which key to regenerate (0 for both, 1 for primary, 2 for secondary).",
71
+
"security": [
72
+
{
73
+
"BearerAuth": []
74
+
}
75
+
],
76
+
"parameters": [
77
+
{
78
+
"in": "path",
79
+
"name": "appId",
80
+
"required": true,
81
+
"schema": {
82
+
"type": "integer"
83
+
},
84
+
"description": "The ID of the app"
85
+
}
86
+
],
87
+
"requestBody": {
88
+
"required": false,
89
+
"content": {
90
+
"application/json": {
91
+
"schema": {
92
+
"type": "object",
93
+
"properties": {
94
+
"key_number": {
95
+
"type": "integer",
96
+
"enum": [0, 1, 2],
97
+
"default": 1,
98
+
"description": "Which API key to regenerate (0 = both, 1 = primary, 2 = secondary)"
0 commit comments