---
title: "Request a GitHub access token"
method: POST
path: "/v1/platform/fleet/providers/github-app/tokens"
tags: ["fleet github-app"]
---

# Request a GitHub access token

`POST /v1/platform/fleet/providers/github-app/tokens`

Return a short-lived GitHub access token scoped to the given repository.

## Request body

- GithubAppTokenRequest
  - `repository` string
  - `type` string

## Response `200`

OK

- GithubAppUserTokenResponse
  - `expires_at` string
  - `token` string
  - `token_type` string

## Other responses

- `400` — Bad Request
- `404` — Not Found

## Changes

- **2026-04-30** `99490d1e837e` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/v1/platform/fleet/providers/github-app/tokens/post.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/a0acb3a6a101/schema)
