You can add API requests and reference their responses elsewhere in your notebook to create an interactive experience. For example, you can add an input block for your API consumer's email address and use a request block to send them a welcome message.
To add a request block, do the following:
You can reference your request block by name. For example, if you name your request block "user", you can reference its response in another request block with the syntax {{user}}
. Or you can reference it in a code runner block with the syntax $user
.
You can also use dot notation to reference data within the response. For example, in another request block, you can reference the user's first email with the syntax {{user.emails.0}}
. Or in a code runner block, you can reference the same value with the syntax $user.emails[0]
.
Last modified: 2025/07/28