Bit Capital

The Bit Capital Developer Hub

Welcome to the Bit Capital developer hub. You'll find comprehensive guides and documentation to help you start working with Bit Capital as quickly as possible, as well as support if you get stuck. Let's jump right in!

Guides    API Reference

Setup your Domain postbacks

All domain operations over Users and Transactions may generate postbacks (also known as Webhooks), to enable near real time notifications and interactions from async operations in the platform.

To setup your domain postbacks, just update its desired URL for the notifications

const domainId = '0a28f4e5-06b0-461d-a793-9208ef95738a';

await bitcapital.domains().update(domainId, {
  postbackUrl: 'https://hooks.mywebsite.com' 
});

After this configuration, all User and Transaction state changes will be notified using the following payload:

{
  "id": "092a4f3c-e465-4f1d-ac8b-3287164368b3",
  "entity": "user",
  "status": "ready"
}

The fields are:

  • Entity: user or transaction
  • ID: The unique identifier of the entity in the platform
  • Status: The latest status of the entity

Updated about a month ago

Setup your Domain postbacks


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.