Set credentials for an S3 source
curl --request PUT \
--url https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}/s3 \
--header 'Content-Type: application/json' \
--data '
{
"bucket": "<string>",
"region": "<string>",
"access_key_id": "<string>",
"secret_access_key": "<string>",
"prefix": "<string>",
"session_token": "<string>"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
bucket: '<string>',
region: '<string>',
access_key_id: '<string>',
secret_access_key: '<string>',
prefix: '<string>',
session_token: '<string>'
})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}/s3', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}/s3"
payload = {
"bucket": "<string>",
"region": "<string>",
"access_key_id": "<string>",
"secret_access_key": "<string>",
"prefix": "<string>",
"session_token": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){}Data workspace
Set credentials for an S3 source
Requires write access and the Ultimate plan or the Brain add-on; refused to connected OAuth agents (agent_not_permitted), so AWS keys are entered by a person or an API key. Stores the access key, secret and optional session token for the source named by bucket, region and prefix, AES-256-GCM encrypted; they are never returned. 409 when the plan’s S3 source limit is reached. Use a read-only IAM principal limited to s3:ListBucket and s3:GetObject on that prefix.
PUT
/
admin
/
api
/
data-workspace
/
pipelines
/
{pipeline_id}
/
s3
Set credentials for an S3 source
curl --request PUT \
--url https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}/s3 \
--header 'Content-Type: application/json' \
--data '
{
"bucket": "<string>",
"region": "<string>",
"access_key_id": "<string>",
"secret_access_key": "<string>",
"prefix": "<string>",
"session_token": "<string>"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
bucket: '<string>',
region: '<string>',
access_key_id: '<string>',
secret_access_key: '<string>',
prefix: '<string>',
session_token: '<string>'
})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}/s3', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}/s3"
payload = {
"bucket": "<string>",
"region": "<string>",
"access_key_id": "<string>",
"secret_access_key": "<string>",
"prefix": "<string>",
"session_token": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){}