Make API request

Fetch response from an API request

This transformation enables communicating with an external API. It's extremely valuable to gather extra context into your chain like getting search engine results and wikipedia pages. The response of the API request is then provided in the output to be used in other steps.

Screenshot of the API request transformation in the Relevance AI Notebook

Screenshot of the API request transformation in the Notebook

Common errors

  • API request failure



URLThe URL endpoint to triggerStringβœ…
MethodThe fetch method to useEnumβœ…
HeadersThe headers to send in the requestObject?
BodyThe body to send to the requestObject?
Response typeThe type to process the response withEnum?


Response bodyThe body of the API responseUndefined
StatusThe status code of the API responseNumber