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
* Custom integrations are external APIs that have been pre-configured by a workspace administrator who imports an OpenAPI specification. Each integration is identified by a slug and exposes operations defined in the specification.
59
-
*
60
-
* Requests are proxied through Base44's backend, so API credentials aren't exposed. That means you can safely use this method to call external APIs from frontend code.
61
-
*
62
-
* @param slug - The integration's unique identifier, as defined by the workspace admin.
63
-
* @param operationId - The operation ID from the OpenAPI specification, such as `"listIssues"` or `"getUser"`.
64
-
* @param params - Optional parameters to send to the external API.
93
+
* @param slug - The integration's unique identifier (slug), as defined by the workspace admin.
94
+
* @param endpoint - The endpoint in `method:path` format (e.g., `"get:/contacts"`, `"post:/users/{id}"`). The method is the HTTP verb (lowercase) and the path matches the OpenAPI specification.
95
+
* @param params - Optional parameters including payload, pathParams, and queryParams.
65
96
* @returns Promise resolving to the integration call response.
66
97
*
67
98
* @throws {Error} If slug is not provided.
68
-
* @throws {Error} If operationId is not provided.
69
-
* @throws {Base44Error} If the integration or operation is not found (404).
99
+
* @throws {Error} If endpoint is not provided.
100
+
* @throws {Base44Error} If the integration or endpoint is not found (404).
70
101
* @throws {Base44Error} If the external API call fails (502).
71
102
* @throws {Base44Error} If the request times out (504).
* Integrations module for calling integration methods.
354
+
* Integrations module for calling integration endpoints.
355
355
*
356
-
* This module provides access to integration methods for interacting with external services. Unlike the connectors module that gives you raw OAuth tokens, integrations provide pre-built functions that Base44 executes on your behalf.
356
+
* This module provides access to integration endpoints for interacting with external
357
+
* services. Integrations are organized into packages. Base44 provides built-in integrations
358
+
* in the `Core` package.
357
359
*
358
-
* There are two types of integrations:
360
+
* Unlike the connectors module that gives you raw OAuth tokens, integrations provide
361
+
* pre-built functions that Base44 executes on your behalf.
359
362
*
360
-
* - **Built-in integrations** (`Core`): Pre-built functions provided by Base44 for common tasks such as AI-powered text generation, image creation, file uploads, and email. Access core integration methods using:
361
-
* ```
362
-
* base44.integrations.Core.FunctionName(params)
363
-
* ```
364
-
*
365
-
* - **Custom integrations** (`custom`): Pre-configured external APIs. Custom integration calls are proxied through Base44's backend, so credentials are never exposed to the frontend. Access custom integration methods using:
* This module is available to use with a client in all authentication modes:
373
367
*
374
-
* - **Anonymous or User authentication** (`base44.integrations`): Integration methods are invoked with the current user's permissions. Anonymous users invoke methods without authentication, while authenticated users invoke methods with their authentication context.
375
-
* - **Service role authentication** (`base44.asServiceRole.integrations`): Integration methods are invoked with elevated admin-level permissions. The methods execute with admin authentication context.
368
+
* - **Anonymous or User authentication** (`base44.integrations`): Integration endpoints are invoked with the current user's permissions. Anonymous users invoke endpoints without authentication, while authenticated users invoke endpoints with their authentication context.
369
+
* - **Service role authentication** (`base44.asServiceRole.integrations`): Integration endpoints are invoked with elevated admin-level permissions. The endpoints execute with admin authentication context.
376
370
*/
377
371
exporttypeIntegrationsModule={
378
372
/**
@@ -381,7 +375,22 @@ export type IntegrationsModule = {
381
375
Core: CoreIntegrations;
382
376
383
377
/**
384
-
* Custom integrations module for calling pre-configured external APIs.
378
+
* Custom integrations module for calling workspace-level API integrations.
379
+
*
380
+
* Allows calling external APIs that workspace admins have configured
0 commit comments