The API block is our most powerful non-model block. You can encrypt API keys using the Secrets section, add a URL, add headers, and select an API method when using this block.
The API Block allows you to call any API endpoint using the REST architecture. This means you can choose between a variety of methods that match your API endpoint.
Secrets are where you can store any API Keys you need to call your API. Anything stored in secrets is encrypted and will not be shared when spells are published publicly.
In the URL section, you can create a HTTP request. When you add inputs to your API block, they become available in the “input” section as buttons. Similarly, any secrets become available as a button in the “secrets” section. These buttons can be used as variable in the URL.
The headers section can be edited similar to the URL section. Any secrets or inputs added to the API block will be accessible in the editor. These buttons can be used as a variable.