I am trying to setup a langsmith to GCS destination in n8n. I have python code that works but I am new to n8n and I was trying to make a workflow for this.
Here is the curl command that I am trying to implement.
curl --request POST \
--url 'https://api.smith.langchain.com/api/v1/bulk-exports/destinations' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'X-Tenant-Id: YOUR_WORKSPACE_ID' \
--data '{
"destination_type": "s3",
"display_name": "My S3 Destination",
"config": {
"bucket_name": "your-s3-bucket-name",
"prefix": "root_folder_prefix",
"region": "your aws s3 region",
"endpoint_url": "your endpoint url for s3 compatible buckets"
},
"credentials": {
"access_key_id": "YOUR_S3_ACCESS_KEY_ID",
"secret_access_key": "YOUR_S3_SECRET_ACCESS_KEY"
}
}'
We are self hosting n8n and I cannot create variables if I understood correctly. I am concerned with protecting my credentials.
I can create a custom auth including the headers. But I cannot add the data part.
{
“headers”: {
“X-API-Key”:“YOUR_API_KEY”,
“X-Tenant-Id”:“YOUR_WORKSPACE_ID”}
}
{
"headers": {
"X-API-Key":"YOUR_API_KEY",
"X-Tenant-Id":"YOUR_WORKSPACE_ID"
},
"body":{
"data": {
"destination_type": "s3",
"display_name": "My S3 Destination",
"config": {
"bucket_name": "your-s3-bucket-name",
"prefix": "root_folder_prefix",
"endpoint_url": "your endpoint url for s3 compatible buckets"
},
"credentials": {
"access_key_id": "YOUR_S3_ACCESS_KEY_ID",
"secret_access_key": "YOUR_S3_SECRET_ACCESS_KEY"
}
}
}
}
Is it possible to send something like this with the custom auth?
