---
title: "Agent Configuration"
method: POST
path: "/v1/data-acquisition/agent/config"
tags: ["Data Acquisition"]
---

# Agent Configuration

`POST /v1/data-acquisition/agent/config`

This endpoint returns all the parameters that client needs in order to upload files directly to Amazon S3 and upload log directly to Amazon CloudWatch. Using these values and temporary credentials obtained from `/v1/data-acquisition/agent/credentials` client can upload files to S3 into their bucket and log to CloudWatch into their log groups.

## Request body

- object
  - `agentId` string, required — This is the sourceId for a user-defined integration. Need to copy from the TDP web UI, where the user-defined integration is created. For existing TetraScience Agent who can connect to TetraScience Cloud directly, provide the agentId to this field.
  - `agentVersion` string, required — The Agent version, such as "v1.0.0".

## Response `200`

200

- object
  - `orgSlug` string
  - `integrationId` string
  - `agentId` string
  - `agentName` string
  - `region` string
  - `bucket` string
  - `streamBucket` string
  - `backupBucket` string
  - `kmsKey` string
  - `integrationType` string
  - `metadata` object
  - `tags` unknown[]
    - unknown
  - `logGroupName` string
  - `rpcSourceQueueUrl` string
  - `rpcPlatformQueueUrl` string

## Other responses

- `404` — 404

---

[API](https://skmtc.net/tetrascience/apis/tetra-data-lake.md) · [All operations](https://skmtc.net/tetrascience/apis/tetra-data-lake/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tetrascience/tetra-data-lake/versions/0205e2bace53/schema)
