---
title: "Store Access Token"
method: POST
path: "/sites/{site_id}/git/token"
tags: ["sites"]
---

# Store Access Token

`POST /sites/{site_id}/git/token`

## Request

- Base URL: `https://my.pressable.com/v1`
- URL: `https://my.pressable.com/v1/sites/{site_id}/git/token`
- Auth: none declared
- TypeScript: <https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/docs/sites/:site_id/git/token/post.ts> (a function with typed inputs; its response is checked against the schema)

Persist a GitHub access token for the site. The token must already be issued by GitHub — Pressable does not exchange OAuth codes on your behalf, and only api.github.com is supported (GitHub Enterprise and other git providers are not). Accepted inputs are a classic Personal Access Token, a fine-grained PAT, or a GitHub OAuth access token (e.g. from a GitHub App installation).

## Path parameters

- `site_id` integer, required

## Request body

- object
  - `token` string

## Response `200`

Successful Response

- object
  - `message` string
  - `errors` string[]

---

[API](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1.md) - [All operations](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/revisions/267a95219f47?raw)
