---
title: "Request Git token"
method: GET
path: "/agent/git-token"
tags: ["Agent"]
---

# Request Git token

`GET /agent/git-token`

Returns a GitHub installation token for repository access. Rate limited.

## Response `200`

OK

- PkgServerAgentGitTokenResponse
  - `app_slug` string
  - `authentication` string
  - `expires_at` string
  - `installation_id` integer
  - `provider` 'github'
  - `repo_url` string
  - `repository_id` integer
  - `token` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `429` — Too Many Requests
- `500` — Internal Server Error
- `501` — Not Implemented

---

[API](https://skmtc.dev/pullbase/apis/untitled-api.md) · [All operations](https://skmtc.dev/pullbase/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pullbase/untitled-api/revisions/edf8355bf78c/schema)
