---
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

---

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