---
title: "Store a GitHub personal access token locally"
method: PUT
path: "/api/v1/github/pat"
tags: ["github"]
---

# Store a GitHub personal access token locally

`PUT /api/v1/github/pat`

## Request body

- PutGitHubPATRequest
  - `expiresIn` integer
  - `pat` string, required
  - `refreshToken` string
  - `refreshTokenExpiresIn` integer

## Response `200`

OK

- object

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

## Changes

- **2026-09-23** `86cb304626a5` — 3 info
  - added the new optional request property `expiresIn`
  - added the new optional request property `refreshToken`
  - added the new optional request property `refreshTokenExpiresIn`
- **2026-09-22** `659cd1122b1c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/github/pat/put.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) · [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) · [OpenAPI document](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/revisions/401b2f38894f?raw)
