---
title: "Mint Endpoint"
method: POST
path: "/oauth/mint"
tags: ["OAuth"]
---

# Mint Endpoint

`POST /oauth/mint`

Mint a short-lived ephemeral token for a task agent.

The caller must be an authenticated service account. The requested scopes
must be a subset of the caller's own scopes.

## Request body

- MintRequest — Ephemeral token minting request.
  - `scope` string, required
  - `target_agent_id` string, required
  - `ttl_seconds` integer, nullable

## Response `200`

Successful Response

- MintResponse — Ephemeral token minting response.
  - `access_token` string, required
  - `expires_in` integer, required
  - `token_type` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `422` — Unprocessable Entity
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/jentic/apis/jentic-control-plane-api.md) · [All operations](https://skmtc.net/jentic/apis/jentic-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jentic/jentic-control-plane-api/revisions/4ccade8cfa18/schema)
