---
title: "POST Create a public access token for a Trigger.dev run"
description: "Create a public access token for a Trigger.dev run"
last_updated: "2026-05-06T07:33:49.736951+00:00"
canonical_url: "https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/api/knowledge-base/knowledgebasecontroller-createruntoken"
---

<APIEndpoint
  method={"POST"}
  path={"/knowledge-base/runs/:runId/token"}
  summary={"Create a public access token for a Trigger.dev run"}
  description={"Create a public access token for a Trigger.dev run"}
  deprecated={false}
  baseUrl={""}
/>

## Parameters

<APIParameters parameters={[{"name":"runId","in":"path","required":true,"description":"The ID of the run.","schema":{"type":"string"}}]} />

## Request Body

No request body is required.

<APIRequestBody
  contentType={"application/json"}
  required={false}
  schema={{"type":"object"}}
/>

## Responses

<APIResponse
  statusCode={"200"}
  description={"Public access token created"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

## Try It

<APIPlayground
  method={"POST"}
  path={"/knowledge-base/runs/:runId/token"}
  parameters={[{"name":"runId","in":"path","required":true,"description":"The ID of the run.","schema":{"type":"string"}}]}
  requestBody={{"contentType":"application/json","required":false,"description":"No request body is required.","schema":{"type":"object"}}}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/llms.txt) for all pages in this wiki.
