BuiltByBit API
- API version: v2
- Build date: 2026-03-23T18:13:05.976474Z[Etc/UTC]
All operations not tagged 'free' require an active Ultimate subscription or invite-only permissions.
V2 documentation: https://builtbybit.com/wiki/api-v2/ \ OAuth2 documentation: https://builtbybit.com/wiki/oauth2/
For more information, please visit https://builtbybit.com/ticket
Automatically generated by the OpenAPI Generator
Building the API client library requires:
- Java 1.8+
- Maven (3.8.3+)/Gradle (7.2+)
To install the API client library to your local Maven repository, simply execute:
mvn clean installTo deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deployRefer to the OSSRH Guide for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>openapi-java-client</artifactId>
<version>v2</version>
<scope>compile</scope>
</dependency>Add this dependency to your project's build file:
repositories {
mavenCentral() // Needed if the 'openapi-java-client' jar has been published to maven central.
mavenLocal() // Needed if the 'openapi-java-client' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:openapi-java-client:v2"
}At first generate the JAR by executing:
mvn clean packageThen manually install the following JARs:
target/openapi-java-client-v2.jartarget/lib/*.jar
Please follow the installation instruction and execute the following Java code:
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.GlobalApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.builtbybit.com");
// Configure API key authorization: token
ApiKeyAuth token = (ApiKeyAuth) defaultClient.getAuthentication("token");
token.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.setApiKeyPrefix("Token");
GlobalApi apiInstance = new GlobalApi(defaultClient);
try {
GetV2Analytics200Response result = apiInstance.getV2Analytics();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalApi#getV2Analytics");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}All URIs are relative to https://api.builtbybit.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| GlobalApi | getV2Analytics | GET /v2/analytics | Fetch a list of analytics definitions |
| GlobalApi | getV2AnalyticsGraph | GET /v2/analytics/graph | Fetch analytics graph data |
| GlobalApi | getV2AnalyticsSingle | GET /v2/analytics/single | Fetch a single analytics value |
| GlobalApi | getV2Events | GET /v2/events | Fetch a list of pending events |
| GlobalApi | postV2EventsComplete | POST /v2/events/complete | Mark events as complete |
| Oauth2Api | getOauth2Token | POST /oauth2/token | Request an access token using an existing grant |
| Oauth2Api | getOauth2TokenRevoke | POST /oauth2/token/revoke | Revoke an existing access or refresh token |
| ResourcesCreatorApi | postV2ResourcesCreatorUpdate | POST /v2/resources/creator/update | Post a resource update |
| ResourcesDiscoveryApi | getResourcesDiscoverCategories | GET /v2/resources/discover/categories | Fetch a list of categories |
| ResourcesDiscoveryApi | getResourcesDiscoverResources | GET /v2/resources/discover/resources | Fetch a list of resources |
| ResourcesDiscoveryApi | getV2ResourcesDiscoverCartView | GET /v2/resources/discover/cart/view | View the user's cart items |
| ResourcesDiscoveryApi | getV2ResourcesDiscoverLicenses | GET /v2/resources/discover/licenses | Fetch a list of the user's licenses |
| ResourcesDiscoveryApi | postV2ResourcesDiscoverCartAdd | POST /v2/resources/discover/cart/add | Add items to a user's cart |
| ResourcesDiscoveryApi | postV2ResourcesDiscoverCartCheckout | POST /v2/resources/discover/cart/checkout | Initiate a checkout of a user's cart |
| ResourcesDiscoveryApi | postV2ResourcesDiscoverCartCouponAdd | POST /v2/resources/discover/cart/coupon/add | Add a coupon to the user's cart |
| ResourcesDiscoveryApi | postV2ResourcesDiscoverCartCouponRemove | POST /v2/resources/discover/cart/coupon/remove | Remove a coupon from the user's cart |
| ResourcesDiscoveryApi | postV2ResourcesDiscoverCartRemove | POST /v2/resources/discover/cart/remove | Remove an item from the user's cart |
- Addon
- Analytic
- AnalyticFiltersValue
- AnalyticGraphData
- AnalyticGraphDataPeriod
- AnalyticGraphDataPoint
- CartItem
- CartItemDiscountsInner
- CartSummary
- Category
- Description
- Event
- Filter
- FilterChoice
- FilterValue
- GetOauth2Token200Response
- GetOauth2TokenRevoke200Response
- GetResourcesDiscoverCategories200Response
- GetResourcesDiscoverCategories200ResponseData
- GetResourcesDiscoverResources200Response
- GetResourcesDiscoverResources200ResponseData
- GetResourcesDiscoverResources4XXResponse
- GetResourcesDiscoverResources4XXResponseError
- GetV2Analytics200Response
- GetV2Analytics200ResponseData
- GetV2AnalyticsGraph200Response
- GetV2AnalyticsSingle200Response
- GetV2AnalyticsSingle200ResponseData
- GetV2AnalyticsSingle200ResponseDataPeriod
- GetV2Events200Response
- GetV2Events200ResponseData
- GetV2ResourcesDiscoverCartView200Response
- GetV2ResourcesDiscoverCartView200ResponseData
- GetV2ResourcesDiscoverLicenses200Response
- GetV2ResourcesDiscoverLicenses200ResponseData
- License
- ListStats
- Member
- PostV2EventsComplete200Response
- PostV2EventsCompleteRequest
- PostV2ResourcesCreatorUpdate200Response
- PostV2ResourcesCreatorUpdate200ResponseData
- PostV2ResourcesCreatorUpdateRequest
- PostV2ResourcesCreatorUpdateRequestFile
- PostV2ResourcesCreatorUpdateRequestUpdate
- PostV2ResourcesDiscoverCartAdd2XXResponse
- PostV2ResourcesDiscoverCartAddRequest
- PostV2ResourcesDiscoverCartCheckout200Response
- PostV2ResourcesDiscoverCartCheckout200ResponseData
- PostV2ResourcesDiscoverCartCouponAdd200Response
- PostV2ResourcesDiscoverCartCouponAddRequest
- PostV2ResourcesDiscoverCartCouponRemove200Response
- PostV2ResourcesDiscoverCartCouponRemoveRequest
- PostV2ResourcesDiscoverCartRemove200Response
- PostV2ResourcesDiscoverCartRemoveRequest
- Resource
- Review
- SaleEvent
- SaleEventEntry
- Update
- Version
Authentication schemes defined for the API:
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
- Type: OAuth
- Flow: accessCode
- Authorization URL: https://builtbybit.com/account/external/authorize
- Scopes: N/A
It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.