The GitHub token of the workspace (DEC-019). The token itself is never returned.
GET
/admin/github
const url = 'https://example.com/api/v1/admin/github';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/admin/githubResponses
Section titled “ Responses ”The connection.
Media typeapplication/json
object
configured
required
boolean
token_last4
string
api_url
required
string
login
The GitHub account of the token, from the last check.
string
Examplegenerated
{ "configured": true, "token_last4": "example", "api_url": "example", "login": "example"}default
Section titled “default”An error.
Media typeapplication/problem+json
RFC 9457 problem details with a stable code.
object
type
required
string
title
required
string
status
required
integer
detail
string
instance
string
code
required
A stable machine-readable error code.
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}