---
title: "Agent Temp AWS Credentials"
method: POST
path: "/v1/data-acquisition/agent/credentials"
tags: ["Data Acquisition"]
---

# Agent Temp AWS Credentials

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

This endpoint returns temporary credentials for a given organization based on Data Hub policy. When using those credentials, client can upload files to their Amazon S3 bucket and write log to Amazon CloudWatch. Returned credentials have expiration time 60 minutes.

## 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 the TDP{ directly, provide the agentId to this field.
  - `agentVersion` string, required — The Agent version, such as "v1.0.0".

## Response `200`

200

- object
  - `AccessKeyId` string
  - `SecretAccessKey` string
  - `SessionToken` string
  - `Expiration` 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)
