---
title: "Set GitHub OAuth token."
method: PUT
path: "/api/config/auth/github-oauth"
tags: ["Configuration"]
---

# Set GitHub OAuth token.

`PUT /api/config/auth/github-oauth`

## Request body

- object
  - `token` string

## Response `200`

The Composer auth configuration.

- object
  - `github.com` string — OAuth token for github.com.

## Changes

- **2025-03-06** `4dc3bf84edf7` — 2 info
  - the endpoint scheme security `CookieAuthentication` was added to the API
  - the endpoint scheme security `TokenAuthentication` was added to the API
- **2020-07-23** `42c41034504b` — 2 info
  - the endpoint scheme security `CookieAuthentication` was removed from the API
  - the endpoint scheme security `TokenAuthentication` was removed from the API

[Change history](https://skmtc.dev/contao/apis/contao-manager-api/changes/api/config/auth/github-oauth/put.md)

---

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