---
title: "Get JWT token based on user and tenant context"
method: GET
path: "/token"
tags: ["Token Manager"]
---

# Get JWT token based on user and tenant context

`GET /token`

## Headers

- `x-tenant-id` string, required
- `x-user-id` string, required

## Response `200`

OK

- ResourceName[]
  - `name` string — resource name

## Other responses

- `400` — Bad Request
- `401` — Missing or invalid token
- `405` — Invalid input
- `500` — Server error
- `502` — Service Unavailable
- `default` — unexpected error

---

[API](https://skmtc.dev/aws-samples/apis/data-partitioning-using-s3.md) · [All operations](https://skmtc.dev/aws-samples/apis/data-partitioning-using-s3/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/data-partitioning-using-s3/revisions/039b1dc6cd0e/schema)
