| 1 | # openapi_client.DefaultApi |
| 2 | |
| 3 | All URIs are relative to *https://api.continue.dev* |
| 4 | |
| 5 | | Method | HTTP request | Description | |
| 6 | | ---------------------------------------------------------------------------------- | ---------------------------------------------------- | ------------------------------------------------- | |
| 7 | | [**get_assistant**](DefaultApi.md#get_assistant) | **GET** /ide/get-assistant/{ownerSlug}/{packageSlug} | Get a specific agent by slug | |
| 8 | | [**get_free_trial_status**](DefaultApi.md#get_free_trial_status) | **GET** /ide/free-trial-status | Get free trial status for user | |
| 9 | | [**get_models_add_on_checkout_url**](DefaultApi.md#get_models_add_on_checkout_url) | **GET** /ide/get-models-add-on-checkout-url | Get Stripe checkout URL for models add-on | |
| 10 | | [**get_policy**](DefaultApi.md#get_policy) | **GET** /ide/policy | Get organization policy | |
| 11 | | [**list_assistant_full_slugs**](DefaultApi.md#list_assistant_full_slugs) | **GET** /ide/list-assistant-full-slugs | List agent full slugs (currently returns 429) | |
| 12 | | [**list_assistants**](DefaultApi.md#list_assistants) | **GET** /ide/list-assistants | List agents for IDE | |
| 13 | | [**list_organizations**](DefaultApi.md#list_organizations) | **GET** /ide/list-organizations | List organizations for user | |
| 14 | | [**sync_secrets**](DefaultApi.md#sync_secrets) | **POST** /ide/sync-secrets | Synchronize secrets for user | |
| 15 | |
| 16 | # **get_assistant** |
| 17 | |
| 18 | > GetAssistant200Response get_assistant(owner_slug, package_slug, always_use_proxy=always_use_proxy, organization_id=organization_id) |
| 19 | |
| 20 | Get a specific agent by slug |
| 21 | |
| 22 | Returns a single agent configuration by its owner and package slug. |
| 23 | This endpoint is useful when you need to retrieve or refresh a specific agent |
| 24 | without fetching the entire list. |
| 25 | |
| 26 | ### Example |
| 27 | |
| 28 | - Bearer Authentication (apiKeyAuth): |
| 29 | |
| 30 | ```python |
| 31 | import openapi_client |
| 32 | from openapi_client.models.get_assistant200_response import GetAssistant200Response |
| 33 | from openapi_client.rest import ApiException |
| 34 | from pprint import pprint |
| 35 | |
| 36 | # Defining the host is optional and defaults to https://api.continue.dev |
| 37 | # See configuration.py for a list of all supported configuration parameters. |
| 38 | configuration = openapi_client.Configuration( |
| 39 | host = "https://api.continue.dev" |
| 40 | ) |
| 41 | |
| 42 | # The client must configure the authentication and authorization parameters |
| 43 | # in accordance with the API server security policy. |
| 44 | # Examples for each auth method are provided below, use the example that |
| 45 | # satisfies your auth use case. |
| 46 | |
| 47 | # Configure Bearer authorization: apiKeyAuth |
| 48 | configuration = openapi_client.Configuration( |
| 49 | access_token = os.environ["BEARER_TOKEN"] |
| 50 | ) |
| 51 | |
| 52 | # Enter a context with an instance of the API client |
| 53 | with openapi_client.ApiClient(configuration) as api_client: |
| 54 | # Create an instance of the API class |
| 55 | api_instance = openapi_client.DefaultApi(api_client) |
| 56 | owner_slug = 'owner_slug_example' # str | Slug of the user or organization that owns the agent |
| 57 | package_slug = 'package_slug_example' # str | Slug of the agent package |
| 58 | always_use_proxy = 'always_use_proxy_example' # str | Whether to always use the Continue-managed proxy for model requests (optional) |
| 59 | organization_id = 'organization_id_example' # str | ID of the organization to scope agents to. If not provided, personal agents are returned. (optional) |
| 60 | |
| 61 | try: |
| 62 | # Get a specific agent by slug |
| 63 | api_response = api_instance.get_assistant(owner_slug, package_slug, always_use_proxy=always_use_proxy, organization_id=organization_id) |
| 64 | print("The response of DefaultApi->get_assistant:\n") |
| 65 | pprint(api_response) |
| 66 | except Exception as e: |
| 67 | print("Exception when calling DefaultApi->get_assistant: %s\n" % e) |
| 68 | ``` |
| 69 | |
| 70 | ### Parameters |
| 71 | |
| 72 | | Name | Type | Description | Notes | |
| 73 | | -------------------- | ------- | ------------------------------------------------------------------------------------------------- | ---------- | |
| 74 | | **owner_slug** | **str** | Slug of the user or organization that owns the agent | |
| 75 | | **package_slug** | **str** | Slug of the agent package | |
| 76 | | **always_use_proxy** | **str** | Whether to always use the Continue-managed proxy for model requests | [optional] | |
| 77 | | **organization_id** | **str** | ID of the organization to scope agents to. If not provided, personal agents are returned. | [optional] | |
| 78 | |
| 79 | ### Return type |
| 80 | |
| 81 | [**GetAssistant200Response**](GetAssistant200Response.md) |
| 82 | |
| 83 | ### Authorization |
| 84 | |
| 85 | [apiKeyAuth](../README.md#apiKeyAuth) |
| 86 | |
| 87 | ### HTTP request headers |
| 88 | |
| 89 | - **Content-Type**: Not defined |
| 90 | - **Accept**: application/json |
| 91 | |
| 92 | ### HTTP response details |
| 93 | |
| 94 | | Status code | Description | Response headers | |
| 95 | | ----------- | ------------------------------------------------- | ---------------- | |
| 96 | | **200** | Successfully retrieved agent | - | |
| 97 | | **401** | Unauthorized - Authentication failed | - | |
| 98 | | **403** | Forbidden - Assistant not allowed in organization | - | |
| 99 | | **404** | User or agent not found | - | |
| 100 | |
| 101 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 102 | |
| 103 | # **get_free_trial_status** |
| 104 | |
| 105 | > GetFreeTrialStatus200Response get_free_trial_status() |
| 106 | |
| 107 | Get free trial status for user |
| 108 | |
| 109 | Returns the current free trial status for the authenticated user, including |
| 110 | usage counts and limits for chat and autocomplete features. |
| 111 | |
| 112 | ### Example |
| 113 | |
| 114 | - Bearer Authentication (apiKeyAuth): |
| 115 | |
| 116 | ```python |
| 117 | import openapi_client |
| 118 | from openapi_client.models.get_free_trial_status200_response import GetFreeTrialStatus200Response |
| 119 | from openapi_client.rest import ApiException |
| 120 | from pprint import pprint |
| 121 | |
| 122 | # Defining the host is optional and defaults to https://api.continue.dev |
| 123 | # See configuration.py for a list of all supported configuration parameters. |
| 124 | configuration = openapi_client.Configuration( |
| 125 | host = "https://api.continue.dev" |
| 126 | ) |
| 127 | |
| 128 | # The client must configure the authentication and authorization parameters |
| 129 | # in accordance with the API server security policy. |
| 130 | # Examples for each auth method are provided below, use the example that |
| 131 | # satisfies your auth use case. |
| 132 | |
| 133 | # Configure Bearer authorization: apiKeyAuth |
| 134 | configuration = openapi_client.Configuration( |
| 135 | access_token = os.environ["BEARER_TOKEN"] |
| 136 | ) |
| 137 | |
| 138 | # Enter a context with an instance of the API client |
| 139 | with openapi_client.ApiClient(configuration) as api_client: |
| 140 | # Create an instance of the API class |
| 141 | api_instance = openapi_client.DefaultApi(api_client) |
| 142 | |
| 143 | try: |
| 144 | # Get free trial status for user |
| 145 | api_response = api_instance.get_free_trial_status() |
| 146 | print("The response of DefaultApi->get_free_trial_status:\n") |
| 147 | pprint(api_response) |
| 148 | except Exception as e: |
| 149 | print("Exception when calling DefaultApi->get_free_trial_status: %s\n" % e) |
| 150 | ``` |
| 151 | |
| 152 | ### Parameters |
| 153 | |
| 154 | This endpoint does not need any parameter. |
| 155 | |
| 156 | ### Return type |
| 157 | |
| 158 | [**GetFreeTrialStatus200Response**](GetFreeTrialStatus200Response.md) |
| 159 | |
| 160 | ### Authorization |
| 161 | |
| 162 | [apiKeyAuth](../README.md#apiKeyAuth) |
| 163 | |
| 164 | ### HTTP request headers |
| 165 | |
| 166 | - **Content-Type**: Not defined |
| 167 | - **Accept**: application/json |
| 168 | |
| 169 | ### HTTP response details |
| 170 | |
| 171 | | Status code | Description | Response headers | |
| 172 | | ----------- | ---------------------------------------- | ---------------- | |
| 173 | | **200** | Successfully retrieved free trial status | - | |
| 174 | | **404** | User not found | - | |
| 175 | |
| 176 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 177 | |
| 178 | # **get_models_add_on_checkout_url** |
| 179 | |
| 180 | > GetModelsAddOnCheckoutUrl200Response get_models_add_on_checkout_url(profile_id=profile_id, vscode_uri_scheme=vscode_uri_scheme) |
| 181 | |
| 182 | Get Stripe checkout URL for models add-on |
| 183 | |
| 184 | Creates a Stripe checkout session for the models add-on subscription |
| 185 | and returns the checkout URL. |
| 186 | |
| 187 | ### Example |
| 188 | |
| 189 | - Bearer Authentication (apiKeyAuth): |
| 190 | |
| 191 | ```python |
| 192 | import openapi_client |
| 193 | from openapi_client.models.get_models_add_on_checkout_url200_response import GetModelsAddOnCheckoutUrl200Response |
| 194 | from openapi_client.rest import ApiException |
| 195 | from pprint import pprint |
| 196 | |
| 197 | # Defining the host is optional and defaults to https://api.continue.dev |
| 198 | # See configuration.py for a list of all supported configuration parameters. |
| 199 | configuration = openapi_client.Configuration( |
| 200 | host = "https://api.continue.dev" |
| 201 | ) |
| 202 | |
| 203 | # The client must configure the authentication and authorization parameters |
| 204 | # in accordance with the API server security policy. |
| 205 | # Examples for each auth method are provided below, use the example that |
| 206 | # satisfies your auth use case. |
| 207 | |
| 208 | # Configure Bearer authorization: apiKeyAuth |
| 209 | configuration = openapi_client.Configuration( |
| 210 | access_token = os.environ["BEARER_TOKEN"] |
| 211 | ) |
| 212 | |
| 213 | # Enter a context with an instance of the API client |
| 214 | with openapi_client.ApiClient(configuration) as api_client: |
| 215 | # Create an instance of the API class |
| 216 | api_instance = openapi_client.DefaultApi(api_client) |
| 217 | profile_id = 'profile_id_example' # str | Profile ID to include in the callback URL (optional) |
| 218 | vscode_uri_scheme = 'vscode_uri_scheme_example' # str | VS Code URI scheme to include in the callback URL (optional) |
| 219 | |
| 220 | try: |
| 221 | # Get Stripe checkout URL for models add-on |
| 222 | api_response = api_instance.get_models_add_on_checkout_url(profile_id=profile_id, vscode_uri_scheme=vscode_uri_scheme) |
| 223 | print("The response of DefaultApi->get_models_add_on_checkout_url:\n") |
| 224 | pprint(api_response) |
| 225 | except Exception as e: |
| 226 | print("Exception when calling DefaultApi->get_models_add_on_checkout_url: %s\n" % e) |
| 227 | ``` |
| 228 | |
| 229 | ### Parameters |
| 230 | |
| 231 | | Name | Type | Description | Notes | |
| 232 | | --------------------- | ------- | ------------------------------------------------- | ---------- | |
| 233 | | **profile_id** | **str** | Profile ID to include in the callback URL | [optional] | |
| 234 | | **vscode_uri_scheme** | **str** | VS Code URI scheme to include in the callback URL | [optional] | |
| 235 | |
| 236 | ### Return type |
| 237 | |
| 238 | [**GetModelsAddOnCheckoutUrl200Response**](GetModelsAddOnCheckoutUrl200Response.md) |
| 239 | |
| 240 | ### Authorization |
| 241 | |
| 242 | [apiKeyAuth](../README.md#apiKeyAuth) |
| 243 | |
| 244 | ### HTTP request headers |
| 245 | |
| 246 | - **Content-Type**: Not defined |
| 247 | - **Accept**: application/json |
| 248 | |
| 249 | ### HTTP response details |
| 250 | |
| 251 | | Status code | Description | Response headers | |
| 252 | | ----------- | ------------------------------------- | ---------------- | |
| 253 | | **200** | Successfully created checkout session | - | |
| 254 | | **404** | User not found | - | |
| 255 | | **500** | Failed to create checkout session | - | |
| 256 | |
| 257 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 258 | |
| 259 | # **get_policy** |
| 260 | |
| 261 | > GetPolicy200Response get_policy() |
| 262 | |
| 263 | Get organization policy |
| 264 | |
| 265 | Returns the policy configuration for the first organization |
| 266 | that the user belongs to which has a policy configured. |
| 267 | |
| 268 | ### Example |
| 269 | |
| 270 | - Bearer Authentication (apiKeyAuth): |
| 271 | |
| 272 | ```python |
| 273 | import openapi_client |
| 274 | from openapi_client.models.get_policy200_response import GetPolicy200Response |
| 275 | from openapi_client.rest import ApiException |
| 276 | from pprint import pprint |
| 277 | |
| 278 | # Defining the host is optional and defaults to https://api.continue.dev |
| 279 | # See configuration.py for a list of all supported configuration parameters. |
| 280 | configuration = openapi_client.Configuration( |
| 281 | host = "https://api.continue.dev" |
| 282 | ) |
| 283 | |
| 284 | # The client must configure the authentication and authorization parameters |
| 285 | # in accordance with the API server security policy. |
| 286 | # Examples for each auth method are provided below, use the example that |
| 287 | # satisfies your auth use case. |
| 288 | |
| 289 | # Configure Bearer authorization: apiKeyAuth |
| 290 | configuration = openapi_client.Configuration( |
| 291 | access_token = os.environ["BEARER_TOKEN"] |
| 292 | ) |
| 293 | |
| 294 | # Enter a context with an instance of the API client |
| 295 | with openapi_client.ApiClient(configuration) as api_client: |
| 296 | # Create an instance of the API class |
| 297 | api_instance = openapi_client.DefaultApi(api_client) |
| 298 | |
| 299 | try: |
| 300 | # Get organization policy |
| 301 | api_response = api_instance.get_policy() |
| 302 | print("The response of DefaultApi->get_policy:\n") |
| 303 | pprint(api_response) |
| 304 | except Exception as e: |
| 305 | print("Exception when calling DefaultApi->get_policy: %s\n" % e) |
| 306 | ``` |
| 307 | |
| 308 | ### Parameters |
| 309 | |
| 310 | This endpoint does not need any parameter. |
| 311 | |
| 312 | ### Return type |
| 313 | |
| 314 | [**GetPolicy200Response**](GetPolicy200Response.md) |
| 315 | |
| 316 | ### Authorization |
| 317 | |
| 318 | [apiKeyAuth](../README.md#apiKeyAuth) |
| 319 | |
| 320 | ### HTTP request headers |
| 321 | |
| 322 | - **Content-Type**: Not defined |
| 323 | - **Accept**: application/json |
| 324 | |
| 325 | ### HTTP response details |
| 326 | |
| 327 | | Status code | Description | Response headers | |
| 328 | | ----------- | ----------------------------- | ---------------- | |
| 329 | | **200** | Successfully retrieved policy | - | |
| 330 | | **404** | User not found | - | |
| 331 | |
| 332 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 333 | |
| 334 | # **list_assistant_full_slugs** |
| 335 | |
| 336 | > list_assistant_full_slugs() |
| 337 | |
| 338 | List agent full slugs (currently returns 429) |
| 339 | |
| 340 | This endpoint is temporarily disabled and returns a 429 status code |
| 341 | to prevent constant refreshes of the full agent list until a |
| 342 | fixed client version can be deployed. |
| 343 | |
| 344 | ### Example |
| 345 | |
| 346 | - Bearer Authentication (apiKeyAuth): |
| 347 | |
| 348 | ```python |
| 349 | import openapi_client |
| 350 | from openapi_client.rest import ApiException |
| 351 | from pprint import pprint |
| 352 | |
| 353 | # Defining the host is optional and defaults to https://api.continue.dev |
| 354 | # See configuration.py for a list of all supported configuration parameters. |
| 355 | configuration = openapi_client.Configuration( |
| 356 | host = "https://api.continue.dev" |
| 357 | ) |
| 358 | |
| 359 | # The client must configure the authentication and authorization parameters |
| 360 | # in accordance with the API server security policy. |
| 361 | # Examples for each auth method are provided below, use the example that |
| 362 | # satisfies your auth use case. |
| 363 | |
| 364 | # Configure Bearer authorization: apiKeyAuth |
| 365 | configuration = openapi_client.Configuration( |
| 366 | access_token = os.environ["BEARER_TOKEN"] |
| 367 | ) |
| 368 | |
| 369 | # Enter a context with an instance of the API client |
| 370 | with openapi_client.ApiClient(configuration) as api_client: |
| 371 | # Create an instance of the API class |
| 372 | api_instance = openapi_client.DefaultApi(api_client) |
| 373 | |
| 374 | try: |
| 375 | # List agent full slugs (currently returns 429) |
| 376 | api_instance.list_assistant_full_slugs() |
| 377 | except Exception as e: |
| 378 | print("Exception when calling DefaultApi->list_assistant_full_slugs: %s\n" % e) |
| 379 | ``` |
| 380 | |
| 381 | ### Parameters |
| 382 | |
| 383 | This endpoint does not need any parameter. |
| 384 | |
| 385 | ### Return type |
| 386 | |
| 387 | void (empty response body) |
| 388 | |
| 389 | ### Authorization |
| 390 | |
| 391 | [apiKeyAuth](../README.md#apiKeyAuth) |
| 392 | |
| 393 | ### HTTP request headers |
| 394 | |
| 395 | - **Content-Type**: Not defined |
| 396 | - **Accept**: application/json |
| 397 | |
| 398 | ### HTTP response details |
| 399 | |
| 400 | | Status code | Description | Response headers | |
| 401 | | ----------- | ------------------------------------------------- | ---------------- | |
| 402 | | **429** | Too many requests - endpoint temporarily disabled | - | |
| 403 | |
| 404 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 405 | |
| 406 | # **list_assistants** |
| 407 | |
| 408 | > List[ListAssistants200ResponseInner] list_assistants(always_use_proxy=always_use_proxy, organization_id=organization_id) |
| 409 | |
| 410 | List agents for IDE |
| 411 | |
| 412 | Returns a complete list of agents available to the user, with their full configurations, |
| 413 | icons, and other metadata needed by the IDE to display and use them. |
| 414 | |
| 415 | This endpoint performs a full refresh of the list of agents, including unrolling |
| 416 | configurations and resolving secrets. |
| 417 | |
| 418 | ### Example |
| 419 | |
| 420 | - Bearer Authentication (apiKeyAuth): |
| 421 | |
| 422 | ```python |
| 423 | import openapi_client |
| 424 | from openapi_client.models.list_assistants200_response_inner import ListAssistants200ResponseInner |
| 425 | from openapi_client.rest import ApiException |
| 426 | from pprint import pprint |
| 427 | |
| 428 | # Defining the host is optional and defaults to https://api.continue.dev |
| 429 | # See configuration.py for a list of all supported configuration parameters. |
| 430 | configuration = openapi_client.Configuration( |
| 431 | host = "https://api.continue.dev" |
| 432 | ) |
| 433 | |
| 434 | # The client must configure the authentication and authorization parameters |
| 435 | # in accordance with the API server security policy. |
| 436 | # Examples for each auth method are provided below, use the example that |
| 437 | # satisfies your auth use case. |
| 438 | |
| 439 | # Configure Bearer authorization: apiKeyAuth |
| 440 | configuration = openapi_client.Configuration( |
| 441 | access_token = os.environ["BEARER_TOKEN"] |
| 442 | ) |
| 443 | |
| 444 | # Enter a context with an instance of the API client |
| 445 | with openapi_client.ApiClient(configuration) as api_client: |
| 446 | # Create an instance of the API class |
| 447 | api_instance = openapi_client.DefaultApi(api_client) |
| 448 | always_use_proxy = 'always_use_proxy_example' # str | Whether to always use the Continue-managed proxy for model requests (optional) |
| 449 | organization_id = 'organization_id_example' # str | ID of the organization to scope agents to. If not provided, personal agents are returned. (optional) |
| 450 | |
| 451 | try: |
| 452 | # List agents for IDE |
| 453 | api_response = api_instance.list_assistants(always_use_proxy=always_use_proxy, organization_id=organization_id) |
| 454 | print("The response of DefaultApi->list_assistants:\n") |
| 455 | pprint(api_response) |
| 456 | except Exception as e: |
| 457 | print("Exception when calling DefaultApi->list_assistants: %s\n" % e) |
| 458 | ``` |
| 459 | |
| 460 | ### Parameters |
| 461 | |
| 462 | | Name | Type | Description | Notes | |
| 463 | | -------------------- | ------- | ------------------------------------------------------------------------------------------------- | ---------- | |
| 464 | | **always_use_proxy** | **str** | Whether to always use the Continue-managed proxy for model requests | [optional] | |
| 465 | | **organization_id** | **str** | ID of the organization to scope agents to. If not provided, personal agents are returned. | [optional] | |
| 466 | |
| 467 | ### Return type |
| 468 | |
| 469 | [**List[ListAssistants200ResponseInner]**](ListAssistants200ResponseInner.md) |
| 470 | |
| 471 | ### Authorization |
| 472 | |
| 473 | [apiKeyAuth](../README.md#apiKeyAuth) |
| 474 | |
| 475 | ### HTTP request headers |
| 476 | |
| 477 | - **Content-Type**: Not defined |
| 478 | - **Accept**: application/json |
| 479 | |
| 480 | ### HTTP response details |
| 481 | |
| 482 | | Status code | Description | Response headers | |
| 483 | | ----------- | ------------------------------------ | ---------------- | |
| 484 | | **200** | Successfully retrieved agents | - | |
| 485 | | **401** | Unauthorized - Authentication failed | - | |
| 486 | | **404** | User not found | - | |
| 487 | |
| 488 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 489 | |
| 490 | # **list_organizations** |
| 491 | |
| 492 | > ListOrganizations200Response list_organizations() |
| 493 | |
| 494 | List organizations for user |
| 495 | |
| 496 | Returns a list of organizations that the authenticated user belongs to, |
| 497 | including organization metadata and pre-signed icon URLs. |
| 498 | |
| 499 | ### Example |
| 500 | |
| 501 | - Bearer Authentication (apiKeyAuth): |
| 502 | |
| 503 | ```python |
| 504 | import openapi_client |
| 505 | from openapi_client.models.list_organizations200_response import ListOrganizations200Response |
| 506 | from openapi_client.rest import ApiException |
| 507 | from pprint import pprint |
| 508 | |
| 509 | # Defining the host is optional and defaults to https://api.continue.dev |
| 510 | # See configuration.py for a list of all supported configuration parameters. |
| 511 | configuration = openapi_client.Configuration( |
| 512 | host = "https://api.continue.dev" |
| 513 | ) |
| 514 | |
| 515 | # The client must configure the authentication and authorization parameters |
| 516 | # in accordance with the API server security policy. |
| 517 | # Examples for each auth method are provided below, use the example that |
| 518 | # satisfies your auth use case. |
| 519 | |
| 520 | # Configure Bearer authorization: apiKeyAuth |
| 521 | configuration = openapi_client.Configuration( |
| 522 | access_token = os.environ["BEARER_TOKEN"] |
| 523 | ) |
| 524 | |
| 525 | # Enter a context with an instance of the API client |
| 526 | with openapi_client.ApiClient(configuration) as api_client: |
| 527 | # Create an instance of the API class |
| 528 | api_instance = openapi_client.DefaultApi(api_client) |
| 529 | |
| 530 | try: |
| 531 | # List organizations for user |
| 532 | api_response = api_instance.list_organizations() |
| 533 | print("The response of DefaultApi->list_organizations:\n") |
| 534 | pprint(api_response) |
| 535 | except Exception as e: |
| 536 | print("Exception when calling DefaultApi->list_organizations: %s\n" % e) |
| 537 | ``` |
| 538 | |
| 539 | ### Parameters |
| 540 | |
| 541 | This endpoint does not need any parameter. |
| 542 | |
| 543 | ### Return type |
| 544 | |
| 545 | [**ListOrganizations200Response**](ListOrganizations200Response.md) |
| 546 | |
| 547 | ### Authorization |
| 548 | |
| 549 | [apiKeyAuth](../README.md#apiKeyAuth) |
| 550 | |
| 551 | ### HTTP request headers |
| 552 | |
| 553 | - **Content-Type**: Not defined |
| 554 | - **Accept**: application/json |
| 555 | |
| 556 | ### HTTP response details |
| 557 | |
| 558 | | Status code | Description | Response headers | |
| 559 | | ----------- | ------------------------------------ | ---------------- | |
| 560 | | **200** | Successfully retrieved organizations | - | |
| 561 | | **404** | User not found | - | |
| 562 | |
| 563 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 564 | |
| 565 | # **sync_secrets** |
| 566 | |
| 567 | > List[Optional[object]] sync_secrets(sync_secrets_request) |
| 568 | |
| 569 | Synchronize secrets for user |
| 570 | |
| 571 | Resolves and synchronizes secrets for the authenticated user based on |
| 572 | the provided Fully Qualified Secret Names (FQSNs). |
| 573 | |
| 574 | ### Example |
| 575 | |
| 576 | - Bearer Authentication (apiKeyAuth): |
| 577 | |
| 578 | ```python |
| 579 | import openapi_client |
| 580 | from openapi_client.models.sync_secrets_request import SyncSecretsRequest |
| 581 | from openapi_client.rest import ApiException |
| 582 | from pprint import pprint |
| 583 | |
| 584 | # Defining the host is optional and defaults to https://api.continue.dev |
| 585 | # See configuration.py for a list of all supported configuration parameters. |
| 586 | configuration = openapi_client.Configuration( |
| 587 | host = "https://api.continue.dev" |
| 588 | ) |
| 589 | |
| 590 | # The client must configure the authentication and authorization parameters |
| 591 | # in accordance with the API server security policy. |
| 592 | # Examples for each auth method are provided below, use the example that |
| 593 | # satisfies your auth use case. |
| 594 | |
| 595 | # Configure Bearer authorization: apiKeyAuth |
| 596 | configuration = openapi_client.Configuration( |
| 597 | access_token = os.environ["BEARER_TOKEN"] |
| 598 | ) |
| 599 | |
| 600 | # Enter a context with an instance of the API client |
| 601 | with openapi_client.ApiClient(configuration) as api_client: |
| 602 | # Create an instance of the API class |
| 603 | api_instance = openapi_client.DefaultApi(api_client) |
| 604 | sync_secrets_request = openapi_client.SyncSecretsRequest() # SyncSecretsRequest | |
| 605 | |
| 606 | try: |
| 607 | # Synchronize secrets for user |
| 608 | api_response = api_instance.sync_secrets(sync_secrets_request) |
| 609 | print("The response of DefaultApi->sync_secrets:\n") |
| 610 | pprint(api_response) |
| 611 | except Exception as e: |
| 612 | print("Exception when calling DefaultApi->sync_secrets: %s\n" % e) |
| 613 | ``` |
| 614 | |
| 615 | ### Parameters |
| 616 | |
| 617 | | Name | Type | Description | Notes | |
| 618 | | ------------------------ | ----------------------------------------------- | ----------- | ----- | |
| 619 | | **sync_secrets_request** | [**SyncSecretsRequest**](SyncSecretsRequest.md) | | |
| 620 | |
| 621 | ### Return type |
| 622 | |
| 623 | **List[Optional[object]]** |
| 624 | |
| 625 | ### Authorization |
| 626 | |
| 627 | [apiKeyAuth](../README.md#apiKeyAuth) |
| 628 | |
| 629 | ### HTTP request headers |
| 630 | |
| 631 | - **Content-Type**: application/json |
| 632 | - **Accept**: application/json |
| 633 | |
| 634 | ### HTTP response details |
| 635 | |
| 636 | | Status code | Description | Response headers | |
| 637 | | ----------- | ----------------------------- | ---------------- | |
| 638 | | **200** | Successfully resolved secrets | - | |
| 639 | | **404** | User not found | - | |
| 640 | |
| 641 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |