Elffuss BraidHub

kikocis/continue public

main · 17.5 KiBRawPermalink
1openapi: 3.0.0
2info:
3 title: Continue Hub IDE API
4 description: |
5 API for Continue IDE to fetch assistants and other related information.
6 These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains.
7 version: 1.0.0
8 contact:
9 name: Continue Dev Team
10 url: https://continue.dev
11servers:
12 - url: https://api.continue.dev
13 description: Production server
14 - url: http://localhost:3001
15 description: Local development server
16paths:
17 /ide/list-assistants:
18 get:
19 summary: List assistants for IDE
20 description: |
21 Returns a complete list of assistants available to the user, with their full configurations,
22 icons, and other metadata needed by the IDE to display and use them.
23
24 This endpoint performs a full refresh of the list of assistants, including unrolling
25 configurations and resolving secrets.
26 operationId: listAssistants
27 parameters:
28 - name: alwaysUseProxy
29 in: query
30 description: Whether to always use the Continue-managed proxy for model requests
31 required: false
32 schema:
33 type: string
34 enum: ["true", "false"]
35 - name: organizationId
36 in: query
37 description: ID of the organization to scope assistants to. If not provided, personal assistants are returned.
38 required: false
39 schema:
40 type: string
41 security:
42 - apiKeyAuth: []
43 responses:
44 "200":
45 description: Successfully retrieved assistants
46 content:
47 application/json:
48 schema:
49 type: array
50 items:
51 type: object
52 required:
53 - configResult
54 - ownerSlug
55 - packageSlug
56 properties:
57 configResult:
58 type: object
59 required:
60 - config
61 - configLoadInterrupted
62 properties:
63 config:
64 type: object
65 description: The unrolled assistant configuration
66 nullable: true
67 configLoadInterrupted:
68 type: boolean
69 description: Whether the configuration loading was interrupted
70 errors:
71 type: array
72 items:
73 type: string
74 nullable: true
75 description: Any errors that occurred during configuration loading
76 ownerSlug:
77 type: string
78 description: Slug of the user or organization that owns the assistant
79 packageSlug:
80 type: string
81 description: Slug of the assistant package
82 iconUrl:
83 type: string
84 nullable: true
85 description: Pre-signed URL for the assistant's icon
86 onPremProxyUrl:
87 type: string
88 nullable: true
89 description: URL of the on-premises proxy if the organization uses one
90 useOnPremProxy:
91 type: boolean
92 nullable: true
93 description: Whether the organization uses an on-premises proxy
94 rawYaml:
95 type: string
96 description: Raw YAML configuration of the assistant
97 "401":
98 description: Unauthorized - Authentication failed
99 content:
100 application/json:
101 schema:
102 type: object
103 properties:
104 message:
105 type: string
106 example: "Unauthorized"
107 "404":
108 description: User not found
109 content:
110 application/json:
111 schema:
112 type: object
113 properties:
114 message:
115 type: string
116 example: "User not found"
117
118 /ide/get-assistant/{ownerSlug}/{packageSlug}:
119 get:
120 summary: Get a specific assistant by slug
121 description: |
122 Returns a single assistant configuration by its owner and package slug.
123 This endpoint is useful when you need to retrieve or refresh a specific assistant
124 without fetching the entire list.
125 operationId: getAssistant
126 parameters:
127 - name: ownerSlug
128 in: path
129 description: Slug of the user or organization that owns the assistant
130 required: true
131 schema:
132 type: string
133 - name: packageSlug
134 in: path
135 description: Slug of the assistant package
136 required: true
137 schema:
138 type: string
139 - name: alwaysUseProxy
140 in: query
141 description: Whether to always use the Continue-managed proxy for model requests
142 required: false
143 schema:
144 type: string
145 enum: ["true", "false"]
146 - name: organizationId
147 in: query
148 description: ID of the organization to scope assistants to. If not provided, personal assistants are returned.
149 required: false
150 schema:
151 type: string
152 security:
153 - apiKeyAuth: []
154 responses:
155 "200":
156 description: Successfully retrieved assistant
157 content:
158 application/json:
159 schema:
160 type: object
161 nullable: true
162 required:
163 - configResult
164 - ownerSlug
165 - packageSlug
166 properties:
167 configResult:
168 type: object
169 required:
170 - config
171 - configLoadInterrupted
172 properties:
173 config:
174 type: object
175 description: The unrolled assistant configuration
176 nullable: true
177 configLoadInterrupted:
178 type: boolean
179 description: Whether the configuration loading was interrupted
180 errors:
181 type: array
182 items:
183 type: string
184 nullable: true
185 description: Any errors that occurred during configuration loading
186 ownerSlug:
187 type: string
188 description: Slug of the user or organization that owns the assistant
189 packageSlug:
190 type: string
191 description: Slug of the assistant package
192 iconUrl:
193 type: string
194 nullable: true
195 description: Pre-signed URL for the assistant's icon
196 onPremProxyUrl:
197 type: string
198 nullable: true
199 description: URL of the on-premises proxy if the organization uses one
200 useOnPremProxy:
201 type: boolean
202 nullable: true
203 description: Whether the organization uses an on-premises proxy
204 rawYaml:
205 type: string
206 description: Raw YAML configuration of the assistant
207 "401":
208 description: Unauthorized - Authentication failed
209 content:
210 application/json:
211 schema:
212 type: object
213 properties:
214 message:
215 type: string
216 example: "Unauthorized"
217 "403":
218 description: Forbidden - Assistant not allowed in organization
219 content:
220 application/json:
221 schema:
222 type: object
223 properties:
224 message:
225 type: string
226 example: "This assistant is not allowed in this organization"
227 "404":
228 description: User or assistant not found
229 content:
230 application/json:
231 schema:
232 type: object
233 properties:
234 message:
235 type: string
236 example: "Assistant not found"
237
238 /ide/free-trial-status:
239 get:
240 summary: Get free trial status for user
241 description: |
242 Returns the current free trial status for the authenticated user, including
243 usage counts and limits for chat and autocomplete features.
244 operationId: getFreeTrialStatus
245 security:
246 - apiKeyAuth: []
247 responses:
248 "200":
249 description: Successfully retrieved free trial status
250 content:
251 application/json:
252 schema:
253 type: object
254 required:
255 - optedInToFreeTrial
256 - chatLimit
257 - autocompleteLimit
258 properties:
259 optedInToFreeTrial:
260 type: boolean
261 description: Whether the user has opted into the free trial
262 chatCount:
263 type: number
264 nullable: true
265 description: Current number of chat messages used
266 autocompleteCount:
267 type: number
268 nullable: true
269 description: Current number of autocomplete requests used
270 chatLimit:
271 type: number
272 description: Maximum number of chat messages allowed in free trial
273 autocompleteLimit:
274 type: number
275 description: Maximum number of autocomplete requests allowed in free trial
276 "404":
277 description: User not found
278 content:
279 application/json:
280 schema:
281 type: object
282 properties:
283 message:
284 type: string
285 example: "User not found"
286
287 /ide/get-models-add-on-checkout-url:
288 get:
289 summary: Get Stripe checkout URL for models add-on
290 description: |
291 Creates a Stripe checkout session for the models add-on subscription
292 and returns the checkout URL.
293 operationId: getModelsAddOnCheckoutUrl
294 parameters:
295 - name: profile_id
296 in: query
297 description: Profile ID to include in the callback URL
298 required: false
299 schema:
300 type: string
301 - name: vscode_uri_scheme
302 in: query
303 description: VS Code URI scheme to include in the callback URL
304 required: false
305 schema:
306 type: string
307 security:
308 - apiKeyAuth: []
309 responses:
310 "200":
311 description: Successfully created checkout session
312 content:
313 application/json:
314 schema:
315 type: object
316 required:
317 - url
318 properties:
319 url:
320 type: string
321 description: Stripe checkout session URL
322 "404":
323 description: User not found
324 content:
325 application/json:
326 schema:
327 type: object
328 properties:
329 message:
330 type: string
331 example: "User not found"
332 "500":
333 description: Failed to create checkout session
334 content:
335 application/json:
336 schema:
337 type: object
338 properties:
339 message:
340 type: string
341 example: "Failed to create checkout session"
342
343 /ide/policy:
344 get:
345 summary: Get organization policy
346 description: |
347 Returns the policy configuration for the first organization
348 that the user belongs to which has a policy configured.
349 operationId: getPolicy
350 security:
351 - apiKeyAuth: []
352 responses:
353 "200":
354 description: Successfully retrieved policy
355 content:
356 application/json:
357 schema:
358 type: object
359 properties:
360 policy:
361 type: object
362 nullable: true
363 description: Organization policy configuration
364 orgSlug:
365 type: string
366 nullable: true
367 description: Slug of the organization that has the policy
368 "404":
369 description: User not found
370 content:
371 application/json:
372 schema:
373 type: object
374 properties:
375 message:
376 type: string
377 example: "User not found"
378
379 /ide/sync-secrets:
380 post:
381 summary: Synchronize secrets for user
382 description: |
383 Resolves and synchronizes secrets for the authenticated user based on
384 the provided Fully Qualified Secret Names (FQSNs).
385 operationId: syncSecrets
386 requestBody:
387 required: true
388 content:
389 application/json:
390 schema:
391 type: object
392 required:
393 - fqsns
394 properties:
395 fqsns:
396 type: array
397 items:
398 type: object
399 description: Array of Fully Qualified Secret Names to resolve
400 orgScopeId:
401 type: string
402 nullable: true
403 description: Organization ID to scope secret resolution to
404 orgScopeSlug:
405 type: string
406 nullable: true
407 description: Organization slug to scope secret resolution to
408 security:
409 - apiKeyAuth: []
410 responses:
411 "200":
412 description: Successfully resolved secrets
413 content:
414 application/json:
415 schema:
416 type: array
417 items:
418 type: object
419 nullable: true
420 description: Resolved secret result or undefined if not found
421 "404":
422 description: User not found
423 content:
424 application/json:
425 schema:
426 type: object
427 properties:
428 message:
429 type: string
430 example: "User not found"
431
432 /ide/list-assistant-full-slugs:
433 get:
434 summary: List assistant full slugs (currently returns 429)
435 description: |
436 This endpoint is temporarily disabled and returns a 429 status code
437 to prevent constant refreshes of the full assistant list until a
438 fixed client version can be deployed.
439 operationId: listAssistantFullSlugs
440 security:
441 - apiKeyAuth: []
442 responses:
443 "429":
444 description: Too many requests - endpoint temporarily disabled
445 content:
446 application/json:
447 schema:
448 type: object
449 properties:
450 message:
451 type: string
452 example: "Too many requests"
453
454 /ide/list-organizations:
455 get:
456 summary: List organizations for user
457 description: |
458 Returns a list of organizations that the authenticated user belongs to,
459 including organization metadata and pre-signed icon URLs.
460 operationId: listOrganizations
461 security:
462 - apiKeyAuth: []
463 responses:
464 "200":
465 description: Successfully retrieved organizations
466 content:
467 application/json:
468 schema:
469 type: object
470 required:
471 - organizations
472 properties:
473 organizations:
474 type: array
475 items:
476 type: object
477 required:
478 - id
479 - name
480 - slug
481 properties:
482 id:
483 type: string
484 description: Organization ID
485 name:
486 type: string
487 description: Organization name
488 iconUrl:
489 type: string
490 nullable: true
491 description: Pre-signed URL for the organization's icon
492 slug:
493 type: string
494 description: Organization slug
495 "404":
496 description: User not found
497 content:
498 application/json:
499 schema:
500 type: object
501 properties:
502 message:
503 type: string
504 example: "User not found"
505
506components:
507 securitySchemes:
508 apiKeyAuth:
509 type: http
510 scheme: bearer
511 description: |
512 API Key Authentication
513
514 API keys must be prefixed with "con_" and provided in the Authorization header.
515 Example: `Authorization: Bearer con_your_api_key_here`
516
517 API keys can be generated in the Continue Hub web interface under account settings.