The organization's GitHub accounts
GET
/api/v1/github-orgs
const url = 'http://localhost:3000/api/v1/github-orgs';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/github-orgs \ --header 'Authorization: Bearer <token>'Named as its own, proved or not. Organization admin.
Scope: admin.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”GitHub accounts
Media typeapplication/json
object
data
required
Array<object>
object
login
required
string
verified
required
Proved: its listings on BrandHub are verified, as github.com/{login}
boolean
url
required
string format: uri
file
required
What proves it: a file at path in the account’s .github repository, on its default branch, holding token
object
repository
required
string
path
required
string
url
required
string format: uri
token
required
string
Examplegenerated
{ "data": [ { "login": "example", "verified": true, "url": "https://example.com", "file": { "repository": "example", "path": "example", "url": "https://example.com", "token": "example" } } ]}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}