Say you represent a publisher
const url = 'https://api.thebgdb.org/v1/account/publisher-claims';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"publisher":"kosmos","emailDomain":"kosmos.de","note":"Product manager for the Catan line."}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.thebgdb.org/v1/account/publisher-claims \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "publisher": "kosmos", "emailDomain": "kosmos.de", "note": "Product manager for the Catan line." }'A moderator checks the request by hand. Once verified, the member’s corrections to that publisher’s games are marked as coming from the publisher, and the member may send a game’s official cover (official on POST /games/{id}/images). The member’s email address must be confirmed.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
The publisher’s slug.
The company’s email domain.
Example
{ "publisher": "kosmos", "emailDomain": "kosmos.de", "note": "Product manager for the Catan line."}Responses
Section titled “Responses”The request waits for a moderator.
object
object
object
Example
{ "data": { "status": "pending" }}The publisher, the domain or the note is not valid.
object
What went wrong, in plain English words. The wording may change: act on code.
A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}The request has no valid session token.
object
What went wrong, in plain English words. The wording may change: act on code.
A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}The member has not confirmed their email address.
object
What went wrong, in plain English words. The wording may change: act on code.
A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}The member already sent a request for this publisher.
object
What went wrong, in plain English words. The wording may change: act on code.
A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}Rate limited, or five requests are already waiting.
object
What went wrong, in plain English words. The wording may change: act on code.
A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}