httpRequest.json•11 kB
{
"nodeType": "n8n-nodes-base.httpRequest",
"displayName": "HttpRequest",
"description": null,
"version": "4.2",
"properties": [
{
"name": "curlImport",
"displayName": "",
"type": "curlImport",
"default": ""
},
{
"name": "method",
"displayName": "Method",
"type": "options",
"default": "GET",
"description": "The request method to use",
"options": [
{
"name": "DELETE",
"value": "DELETE"
},
{
"name": "GET",
"value": "GET"
},
{
"name": "HEAD",
"value": "HEAD"
},
{
"name": "OPTIONS",
"value": "OPTIONS"
},
{
"name": "PATCH",
"value": "PATCH"
},
{
"name": "POST",
"value": "POST"
},
{
"name": "PUT",
"value": "PUT"
}
]
},
{
"name": "url",
"displayName": "URL",
"type": "string",
"default": "",
"description": "The URL to make the request to",
"placeholder": "http://example.com/index.html",
"required": true
},
{
"name": "authentication",
"displayName": "Authentication",
"type": "options",
"default": "none",
"description": "We've already implemented auth for many services so that you don't have to set it up manually",
"options": [
{
"name": "None",
"value": "none"
},
{
"name": "Predefined Credential Type",
"value": "predefinedCredentialType",
"description": "We've already implemented auth for many services so that you don't have to set it up manually"
},
{
"name": "Generic Credential Type",
"value": "genericCredentialType",
"description": "Fully customizable. Choose between basic, header, OAuth2, etc."
}
]
},
{
"name": "nodeCredentialType",
"displayName": "Credential Type",
"type": "credentialsSelect",
"default": "",
"required": true,
"displayOptions": {
"show": {
"authentication": [
"predefinedCredentialType"
]
}
}
},
{
"name": "googleApiWarning",
"displayName": "Make sure you have specified the scope(s) for the Service Account in the credential",
"type": "notice",
"default": "",
"displayOptions": {
"show": {
"nodeCredentialType": [
"googleApi"
]
}
}
},
{
"name": "genericAuthType",
"displayName": "Generic Auth Type",
"type": "credentialsSelect",
"default": "",
"required": true,
"displayOptions": {
"show": {
"authentication": [
"genericCredentialType"
]
}
}
},
{
"name": "provideSslCertificates",
"displayName": "SSL Certificates",
"type": "boolean",
"default": false
},
{
"name": "provideSslCertificatesNotice",
"displayName": "Provide certificates in node's 'Credential for SSL Certificates' parameter",
"type": "notice",
"default": "",
"displayOptions": {
"show": {
"provideSslCertificates": [
true
]
}
}
},
{
"name": "sslCertificate",
"displayName": "SSL Certificate",
"type": "credentials",
"default": "",
"displayOptions": {
"show": {
"provideSslCertificates": [
true
]
}
}
},
{
"name": "sendQuery",
"displayName": "Send Query Parameters",
"type": "boolean",
"default": false,
"description": "Whether the request has query params or not"
},
{
"name": "specifyQuery",
"displayName": "Specify Query Parameters",
"type": "options",
"default": "keypair",
"options": [
{
"name": "Using Fields Below",
"value": "keypair"
},
{
"name": "Using JSON",
"value": "json"
}
],
"displayOptions": {
"show": {
"sendQuery": [
true
]
}
}
},
{
"name": "queryParameters",
"displayName": "Query Parameters",
"type": "fixedCollection",
"default": {},
"placeholder": "Add Parameter",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"sendQuery": [
true
],
"specifyQuery": [
"keypair"
]
}
}
},
{
"name": "jsonQuery",
"displayName": "JSON",
"type": "json",
"default": "",
"displayOptions": {
"show": {
"sendQuery": [
true
],
"specifyQuery": [
"json"
]
}
}
},
{
"name": "sendHeaders",
"displayName": "Send Headers",
"type": "boolean",
"default": false,
"description": "Whether the request has headers or not"
},
{
"name": "specifyHeaders",
"displayName": "Specify Headers",
"type": "options",
"default": "keypair",
"options": [
{
"name": "Using Fields Below",
"value": "keypair"
},
{
"name": "Using JSON",
"value": "json"
}
],
"displayOptions": {
"show": {
"sendHeaders": [
true
]
}
}
},
{
"name": "headerParameters",
"displayName": "Header Parameters",
"type": "fixedCollection",
"default": {},
"placeholder": "Add Parameter",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"sendHeaders": [
true
],
"specifyHeaders": [
"keypair"
]
}
}
},
{
"name": "jsonHeaders",
"displayName": "JSON",
"type": "json",
"default": "",
"displayOptions": {
"show": {
"sendHeaders": [
true
],
"specifyHeaders": [
"json"
]
}
}
},
{
"name": "sendBody",
"displayName": "Send Body",
"type": "boolean",
"default": false,
"description": "Whether the request has a body or not"
},
{
"name": "contentType",
"displayName": "Body Content Type",
"type": "options",
"default": "json",
"description": "Content-Type to use to send body parameters",
"options": [
{
"name": "Form Urlencoded",
"value": "form-urlencoded"
},
{
"name": "Form-Data",
"value": "multipart-form-data"
},
{
"name": "JSON",
"value": "json"
},
{
"name": "n8n Binary File",
"value": "binaryData"
},
{
"name": "Raw",
"value": "raw"
}
],
"displayOptions": {
"show": {
"sendBody": [
true
]
}
}
},
{
"name": "specifyBody",
"displayName": "Specify Body",
"type": "options",
"default": "keypair",
"description": "The body can be specified using explicit fields (<code>keypair</code>) or using a JavaScript object (<code>json</code>)",
"options": [
{
"name": "Using Fields Below",
"value": "keypair"
},
{
"name": "Using JSON",
"value": "json"
}
],
"displayOptions": {
"show": {
"sendBody": [
true
],
"contentType": [
"json"
]
}
}
},
{
"name": "bodyParameters",
"displayName": "Body Parameters",
"type": "fixedCollection",
"default": {},
"description": "ID of the field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"placeholder": "Add Parameter",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"sendBody": [
true
],
"contentType": [
"json"
],
"specifyBody": [
"keypair"
]
}
}
},
{
"name": "jsonBody",
"displayName": "JSON",
"type": "json",
"default": "",
"displayOptions": {
"show": {
"sendBody": [
true
],
"contentType": [
"json"
],
"specifyBody": [
"json"
]
}
}
},
{
"name": "body",
"displayName": "Body",
"type": "string",
"default": "",
"placeholder": "field1=value1&field2=value2",
"displayOptions": {
"show": {
"sendBody": [
true
],
"specifyBody": [
"string"
]
}
}
},
{
"name": "inputDataFieldName",
"displayName": "Input Data Field Name",
"type": "string",
"default": "",
"description": "The name of the incoming field containing the binary file data to be processed",
"displayOptions": {
"show": {
"sendBody": [
true
],
"contentType": [
"binaryData"
]
}
}
},
{
"name": "rawContentType",
"displayName": "Content Type",
"type": "string",
"default": "",
"placeholder": "text/html",
"displayOptions": {
"show": {
"sendBody": [
true
],
"contentType": [
"raw"
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Input will be split in batches to throttle requests. -1 for disabled. 0 will be treated as 1.",
"placeholder": "Add option",
"required": true,
"displayOptions": {
"show": {
"/sendQuery": [
true
]
}
}
},
{
"name": "infoMessage",
"displayName": "You can view the raw requests this node makes in your browser's developer console",
"type": "notice",
"default": ""
}
],
"credentialsConfig": [
{
"name": "httpSslAuth",
"required": true
}
],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}