Name a GitHub account
POST
/api/v1/github-orgs
const url = 'http://localhost:3000/api/v1/github-orgs';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"login":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/github-orgs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "login": "example" }'A GitHub organization (or account) of the organization’s. Put the file in file in its .github repository, holding file.token, then POST /api/v1/github-orgs/{login}/verify. Once proved, the organization’s BrandHub listings are verified, as github.com/{login}, like a verified domain.
Scope: admin.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
login
required
A GitHub account of the organization’s: rust-lang, or https://github.com/rust-lang
string
Examplegenerated
{ "login": "example"}Responses
Section titled “Responses”The account, not verified yet
Media typeapplication/json
object
data
required
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" }}