---
title: "POST /identities/GetWorkloadAccessTokenForUserId"
method: POST
path: "/identities/GetWorkloadAccessTokenForUserId"
---

# POST /identities/GetWorkloadAccessTokenForUserId

`POST /identities/GetWorkloadAccessTokenForUserId`

Obtains a workload access token for agentic workloads acting on behalf of a user, using the user's ID.

## Request body

- object
  - `workloadName` string, required — The name of the workload from which you want to retrieve the access token.
  - `userId` string, required — The ID of the user for whom you are retrieving the access token.

## Response `200`

Success

- GetWorkloadAccessTokenForUserIdResponse
  - `workloadAccessToken` string, password, required — The access token for the specified workload.

## Other responses

- `480` — UnauthorizedException
- `481` — ValidationException
- `482` — AccessDeniedException
- `483` — ResourceNotFoundException
- `484` — ThrottlingException
- `485` — InternalServerException

---

[API](https://skmtc.net/aws/apis/bedrock-agentcore.md) · [All operations](https://skmtc.net/aws/apis/bedrock-agentcore/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/bedrock-agentcore/versions/79623b33d495/schema)
