When Membrane makes requests to your API, it will use configuration from the Internal API settings in your workspaceDocumentation Index
Fetch the complete documentation index at: https://docs.getmembrane.com/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
In the API client section of the Internal API settings, you can configure a base URL (e.g.https://api.yourdomain.com) for your Internal API. Once set, the base URL is automatically prepended to relative URIs in your api-request-to-your-app actions.
For example, if your base URL is https://api.yourdomain.com and your action’s request.uri is /notifications, the final request will be sent to https://api.yourdomain.com/notifications.
Configuring the base URL once lets you reuse it across all your actions and keeps action definitions portable when migrating workspaces between environments.
Authentication and API Client
You can configure how Membrane will authenticate with your API by choosing an authentication method and providing the necessary configuration. This configuration follows the same structure as Authentication in Connector Builder in connectors.Credentials
Since there is no explicit process of creating a connection between Membrane and your API, you need to provide initial credentials yourself.Credentials Schema
Credentials Schema is a JSON Schema that describes the structure of credentials you need to authenticate requests to your API.Initializing Credentials
There are a few ways of initializing the user’s credentials. Providing credentials when initializing Membrane Javascript SDK:fetchCredentials method that returns credentials asynchronously:
Whenever you provide
credentials or fetchCredentials, the SDK will associate them with the current user and use them to authenticate requests going forward.
You can also update credentials for the current user at any time via SDK or API: