API Node
vellum.workflows.nodes.APINode
Used to make HTTP requests to external APIs.
Attributes
url
The URL to send the request to.
method
The HTTP method to use for the request.
headers
The headers to send in the request.
data
The data to send in the request body.
json
The JSON data to send in the request body.
authorization_type
The type of authorization to use for the API call.
api_key_header_key
The header key to use for the API key authorization.
bearer_token_value
The bearer token value to use for the bearer token authorization.
timeout
The maximum number of seconds to wait for the API request to complete. If not specified, the request will use the default timeout behavior.
Outputs
status_code
The HTTP status code of the response
headers
The response headers
text
The raw text response body
json
The parsed JSON response body (if the response is JSON)