---
title: "Mint Access Token"
method: POST
path: "/agent-loop/workspaces/{workspace_id}/access-token"
tags: ["agent-loop"]
---

# Mint Access Token

`POST /agent-loop/workspaces/{workspace_id}/access-token`

Issue a short-lived JWT for direct frontend → agent-service communication.

## Path parameters

- `workspace_id` string, required

## Response `200`

Successful Response

- AccessTokenResponse
  - `token` string, required
  - `rs256_token` string, required
  - `expires_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/tryscott/apis/one-shot-api.md) · [All operations](https://skmtc.net/tryscott/apis/one-shot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryscott/one-shot-api/versions/28bdface01df/schema)
