---
title: "Generate JWT with the given access key, or with email + password in local-auth mode"
method: POST
path: "/api/token"
tags: ["token-resource"]
---

# Generate JWT with the given access key, or with email + password in local-auth mode

`POST /api/token`

## Request body

- GenerateTokenRequest
  - `email` string
  - `exactlyOneCredentialPair` boolean
  - `expiration` integer
  - `keyId` string
  - `keySecret` string
  - `password` string

## Response `200`

OK

- unknown

---

[API](https://skmtc.dev/orkescloud/apis/orkes-conductor-api-server.md) · [All operations](https://skmtc.dev/orkescloud/apis/orkes-conductor-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/orkescloud/orkes-conductor-api-server/revisions/6ebf0c14ac41/schema)
