> ## Documentation Index
> Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get token for a personal access token

> Retrieve the token of a personal access token owned by the caller, by name. This API is enabled only when "Enable PAT Retrieval After Creation" is turned on in Security Settings; otherwise it returns 403.



## OpenAPI

````yaml /openapi.json get /api/svc/v1/personal-access-tokens/{name}/token
openapi: 3.1.0
info:
  title: TrueFoundry API
  description: API for TrueFoundry
  version: 0.1.0
  contact: {}
servers:
  - url: https://{controlPlaneURL}
    variables:
      controlPlaneURL:
        default: app.truefoundry.com
        description: Control Plane URL
security: []
tags:
  - name: Agent
  - name: Agent Skills
  - name: Applications
  - name: Metrics
  - name: Apply
  - name: Artifacts
  - name: Audit Logs
  - name: Clusters
  - name: Jobs
  - name: LLM Gateway Budgets
  - name: Logs
  - name: MCP Registry
  - name: MCP Servers V2
  - name: MLRepos
  - name: Model Deployments
  - name: Models
  - name: Personal Access Tokens
  - name: Prompts
  - name: Provider Integrations
  - name: SCIM v2
  - name: Secret Groups
  - name: Secrets
  - name: Teams
  - name: Traces
  - name: Users
  - name: Virtual Accounts
  - name: Role Bindings
  - name: Workspaces
  - name: Provider Accounts
paths:
  /api/svc/v1/personal-access-tokens/{name}/token:
    get:
      tags:
        - Personal Access Tokens
        - public
      summary: Get token for a personal access token
      description: >-
        Retrieve the token of a personal access token owned by the caller, by
        name. This API is enabled only when "Enable PAT Retrieval After
        Creation" is turned on in Security Settings; otherwise it returns 403.
      operationId: PersonalAccessToken.getTokenForPersonalAccessToken
      parameters:
        - name: name
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: The authentication token for the personal access token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTokenForPersonalAccessTokenResponse'
        '400':
          description: >-
            Bad Request — invalid name provided, or the personal access token
            has expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
        '403':
          description: >-
            Forbidden — "Enable PAT Retrieval After Creation" is turned off in
            Security Settings.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
        '404':
          description: The caller owns no personal access token with the provided name.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
      security:
        - jwt: []
components:
  schemas:
    GetTokenForPersonalAccessTokenResponse:
      type: object
      properties:
        token:
          type: string
          description: Authentication token for the personal access token.
      required:
        - token
      title: GetTokenForPersonalAccessTokenResponse
      x-fern-type-name: GetTokenForPersonalAccessTokenResponse
    HttpError:
      type: object
      properties:
        statusCode:
          type: integer
          description: HTTP Status Code
        message:
          type: string
          description: Error Message
        code:
          oneOf:
            - type: integer
            - type: string
          description: Error code
          nullable: true
        details:
          type: array
          description: Error details
          items:
            type: object
          nullable: true
      required:
        - statusCode
        - message
      title: HttpError
      x-fern-type-name: HttpError
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.