This feature isn’t available on every plan.
Refer to your pricing plan to see if it’s included.
Create a code transformation
- Go to the Algolia dashboard and select your Algolia .
- On the left sidebar, select Data sources.
- Open the Connectors page.
- Select a connector and click Connect to start creating your task.
- Create a new source or select an existing one.
- To create a transformation function, click Create transformation.
Retrieve and store secrets
External APIs may require credentials such as an API key, a username and password, or an OAuth access token. You can store these credentials as a secret and reference them in your transformation code.- Obtain an API key or other required credentials from the third-party provider.
- In your code transformation, click Secret.
- Paste the API key or credentials, enter a name for the secret, then click Add.
JavaScript
SECRET_NAME with the name you assigned to the secret.
Use Fetch helper functions
- Click Helper Functions.
- Select Fetch / API.
- Select a helper and click Add.
Predefined third-party APIs
Generic Fetch helpers
These functions let you connect to a service with an API. They support the following authentication methods:There’s a timeout and response size limit on all transformations that include Fetch requests.