---
title: "Create lease authentication by Id"
method: POST
path: "/leases/{id}/auth"
---

# Create lease authentication by Id

`POST /leases/{id}/auth`

## Path parameters

- `id` string, required

## Response `201`

Created

- LeaseAuth — Lease Authentication
  - `accessKeyId` string — Access Key ID for access to the AWS API
  - `secretAccessKey` string — Secret Access Key for access to the AWS API
  - `sessionToken` string — Session Token for access to the AWS API
  - `consoleUrl` string — URL to access the AWS Console

## Other responses

- `401` — Unauthorized
- `403` — Failed to retrieve lease authentication
- `500` — Server failure

## Changes

> 12 revisions in range; 7 could not be searched.

- **2019-10-21** `eed5055f8eb6` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/optum/apis/namespace/changes/leases/:id/auth/post.md)

---

[API](https://skmtc.dev/optum/apis/namespace.md) · [All operations](https://skmtc.dev/optum/apis/namespace/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/optum/namespace/revisions/11d73002ea62/schema)
