Welcome to Cybrid, an all-in-one crypto platform that enables you to easily build and launch white-lable crypto products or services.
In these documents, you'll find details on how our REST API operates and generally how our platform functions.
If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our Github repo.
💡 We recommend bookmarking the Cybrid LinkTree which contains many helpful links to platform resources.
This is Cybrid's public interactive API documentation, which allows you to fully test our API's.
Note: If you'd like to use a different tool to exercise our API's, you can download the Open API 3.0 yaml for import.
If you're new to our API's and the Cybrid Platform, follow the below guides to get set up and familiar with the platform:
In Getting Started in the Cybrid Sandbox, we walk you through how to use the Cybrid Sandbox to create a test bank, generate API keys, and set banks fees. In Getting Ready for Trading, we walk through creating customers, customer identities, accounts, as well as executing quotes and trades.
If you've already run through the first two guides, you can follow the Running the Web Demo App guide to test our web SDK with your sandbox bank
and customer
.
There are three primary ways you can interact with the Cybrid platform:
Our complete set of APIs allows you to manage resources across three distinct areas: your Organization
, your Banks
and your Identities
. For most of your testing and interaction you'll be using the Bank
API, which is where the majority of API's reside.
The complete set of APIs can be found on the following pages:
API | Description |
---|---|
Organization API | APIs to manage organizations |
Bank API | APIs to manage banks (and all downstream customer activity) |
Identities API | APIs to manage organization and bank identities |
For questions please contact Support at any time for assistance, or contact the Product Team for product suggestions.
The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create Organization
and Bank
tokens can be generated via the Cybrid Sandbox.
An Organization
Token applies broadly to the whole Organization and all of its Banks
, whereas, a Bank
Token is specific to an individual Bank.
Both Organization
and Bank
tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique Client ID
and Secret
that allows for machine-to-machine authentication.
<font color="orange">⚠️ Never share your Client ID or Secret publicly or in your source code repository.
Your Client ID
and Secret
can be exchanged for a time-limited Bearer Token
by interacting with the Cybrid Identity Provider or through interacting with the Authorize button in this document.
The following curl command can be used to quickly generate a bearer token
for use in testing the API or demo applications.
curl -X POST <api_idp_url>/oauth/token -d '{
\"grant_type\": \"client_credentials\",
\"client_id\": \"<Your Client ID>\",
\"client_secret\": \"<Your Secret>\",
\"scope\": \"banks:read banks:write accounts:read accounts:execute customers:read customers:write customers:execute prices:read quotes:execute trades:execute trades:read\"
}' -H \"Content-Type: application/json\"
<font color="orange">⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.
The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal.
The following scopes are available on the platform and can be requested when generating either an Organization or a Bank token. Generally speaking, the Read scope is required to read and list resources, the Write scope is required to update a resource and the Execute scope is required to create a resource.
Resource | Read scope | Write scope | Execute scope | Token Type |
---|---|---|---|---|
Organizations | organizations:read | organizations:write | Organization/ Bank | |
Banks | banks:read | banks:write | banks:execute | Organization/ Bank |
Customers | customers:read | customers:write | customers:execute | Bank |
Assets | prices:read | Bank | ||
Accounts | accounts:read | accounts:execute | Bank | |
Prices | prices:read | Bank | ||
Symbols | prices:read | Bank | ||
Quotes | quotes:read | quotes:execute | Bank | |
Trades | trades:read | trades:execute | Bank | |
Rewards | rewards:read | rewards:execute | Bank |
The available API's for the Identity, Organization and Bank API services are listed below:
API Sevice | Model | API Endpoint Path | Description |
---|---|---|---|
Identity | Bank | /api/bank_applications | Create and list banks |
Identity | Organization | /api/organization_applications | Create and list organizations |
Organization | Organization | /api/organizations | API's to retrieve and update organization name |
Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) |
Bank | VerificationKey | /api/bank_verification_keys | Create, list and retrive verification keys, used for signing identities |
Bank | Banks | /api/banks | Create, update and list banks, the parent to customers, accounts, etc |
Bank | FeeConfiguration | /api/fee_configurations | Create and list bank fees (spread or fixed) |
Bank | Customers | /api/customers | Create and list customers |
Bank | IdentityRecord | /api/identity_records | Create and list identity records, which are attached to customers for KYC |
Bank | Accounts | /api/accounts | Create and list accounts, which hold a specific asset for a customers |
Bank | Symbols | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) |
Bank | Prices | /api/prices | Get the current prices for assets on the platform |
Bank | Quotes | /api/quotes | Create and list quotes, which are required to execute trades |
Bank | Trades | /api/trades | Create and list trades, which buy or sell cryptocurrency |
Bank | Rewards | /api/rewards | Create a new reward (automates quote/trade for simplicity) |
Organizations
An Organization
is meant to represent the organization partnering with Cybrid to use our platform.
An Organization
does not directly interact with customers
. Instead, an Organization has one or more banks
, which encompass the financial service offerings of the platform.
Banks
A Bank
is owned by an Organization
and can be thought of as an environment or container for Customers
and product offerings. Banks are created in either Sandbox
or Production
mode, where Sandbox is the environment that you would test, prototype and build in prior to production.
An Organization
can have multiple banks
, in either sandbox or production environments. A sandbox Bank will be backed by stubbed data and process flows. For instance, funding source processes will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amout of simulated fiat currency for testing purposes.
Customers
represent your banking users on the platform. At present, we offer support for Individuals
as Customers.
Customers
must be verified in our system before they can play any part on the platform, which means they must have an associated and valid Identity Record
. See the Identity Records section for more details on how a customer can be verified.
Customers
must also have an account
to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer.
This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.
Run carthage update
Run pod install
All URIs are relative to http://api-bank.cybrid.local
Class | Method | HTTP request | Description |
---|---|---|---|
AccountsAPI | createAccount | POST /api/accounts | Create Account |
AccountsAPI | getAccount | GET /api/accounts/{account_guid} | Get Account |
AccountsAPI | listAccounts | GET /api/accounts | List Accounts |
AssetsAPI | listAssets | GET /api/assets | Get assets list |
BanksAPI | createBank | POST /api/banks | Create Bank |
BanksAPI | getBank | GET /api/banks/{bank_guid} | Get Bank |
BanksAPI | listBanks | GET /api/banks | Get banks list |
BanksAPI | updateBank | PATCH /api/banks/{bank_guid} | Patch Bank |
CustomersAPI | createCustomer | POST /api/customers | Create Customer |
CustomersAPI | getCustomer | GET /api/customers/{customer_guid} | Get Customer |
CustomersAPI | listCustomers | GET /api/customers | Get customers list |
FeeConfigurationsAPI | createFeeConfiguration | POST /api/fee_configurations | Create Fee Configuration |
FeeConfigurationsAPI | getFeeConfiguration | GET /api/fee_configurations/{fee_configuration_guid} | Get Fee Configuration |
FeeConfigurationsAPI | listFeeConfigurations | GET /api/fee_configurations | List Fee Configurations |
IdentityRecordsAPI | createIdentityRecord | POST /api/identity_records | Create Identity Record |
IdentityRecordsAPI | getIdentityRecord | GET /api/identity_records/{identity_record_guid} | Get Identity Record |
IdentityRecordsAPI | listIdentityRecords | GET /api/identity_records | List Identity Records |
InternalAPI | internalClaimExchangeSettlementPaymentOrder | POST /api/internal/exchange_settlement_payment_orders/{guid}/claim | Claim Exchange Settlement Payment Order |
InternalAPI | internalClaimExpectedPayment | POST /api/internal/expected_payments/{guid}/claim | Claim Expected Payment |
InternalAPI | internalCreateAccount | POST /api/internal/accounts | Create Account |
InternalAPI | internalCreateCybridAccount | POST /api/internal/cybrid_accounts | Create CybridAccount |
InternalAPI | internalCreateExchange | POST /api/internal/exchanges | Create Exchange |
InternalAPI | internalCreateExchangeAccount | POST /api/internal/exchange_accounts | Create ExchangeAccount |
InternalAPI | internalCreateExchangeSettlement | POST /api/internal/exchange_settlements | Create Exchange Settlement |
InternalAPI | internalCreateExchangeSettlementApproval | POST /api/internal/exchange_settlements/{guid}/approval | Create Exchange Settlement Approval |
InternalAPI | internalCreateExchangeSettlementCompletion | POST /api/internal/exchange_settlements/{guid}/completion | Create Exchange Settlement Completion |
InternalAPI | internalCreateExchangeSettlementPaymentOrder | POST /api/internal/exchange_settlement_payment_orders | Create Exchange Settlement Payment Order |
InternalAPI | internalCreateExpectedPayment | POST /api/internal/expected_payments | Create Expected Payment |
InternalAPI | internalCreateExternalBankAccount | POST /api/internal/external_bank_accounts | Create ExternalBankAccount |
InternalAPI | internalCreateExternalWallet | POST /api/internal/external_wallets | Create ExternalWallet |
InternalAPI | internalCreateFeeConfiguration | POST /api/internal/fee_configurations | Create FeeConfiguration |
InternalAPI | internalCreateInternalBankAccount | POST /api/internal/internal_bank_accounts | Create InternalBankAccount |
InternalAPI | internalCreateInternalWallet | POST /api/internal/internal_wallets | Create InternalWallet |
InternalAPI | internalCreateSystemAccount | POST /api/internal/system_accounts | Create SystemAccount |
InternalAPI | internalCreateTradingSymbolConfiguration | POST /api/internal/trading_symbol_configurations | Create TradingSymbolConfiguration |
InternalAPI | internalGetCybridAccount | GET /api/internal/cybrid_accounts/{account_guid} | Get CybridAccount |
InternalAPI | internalGetExchange | GET /api/internal/exchanges/{exchange_guid} | Get Exchange |
InternalAPI | internalGetExchangeAccount | GET /api/internal/exchange_accounts/{account_guid} | Get ExchangeAccount |
InternalAPI | internalGetExchangeSettlement | GET /api/internal/exchange_settlements/{guid} | Get Exchange Settlement |
InternalAPI | internalGetExchangeSettlementObligation | GET /api/internal/exchange_settlement_obligations/{guid} | Get Exchange Settlement Obligation |
InternalAPI | internalGetExchangeSettlementPaymentOrder | GET /api/internal/exchange_settlement_payment_orders/{guid} | Get Exchange Settlement Payment Order |
InternalAPI | internalGetExpectedPayment | GET /api/internal/expected_payments/{guid} | Get Expected Payment |
InternalAPI | internalListExchanges | GET /api/internal/exchanges | List Exchanges |
InternalAPI | internalListExternalBankAccounts | GET /api/internal/external_bank_accounts | List ExternalBankAccounts |
InternalAPI | internalListExternalWallets | GET /api/internal/external_wallets | List ExternalWallets |
InternalAPI | internalListInternalBankAccounts | GET /api/internal/internal_bank_accounts | List InternalBankAccounts |
InternalAPI | internalListInternalWallets | GET /api/internal/internal_wallets | List InternalWallets |
InternalAPI | internalListTransactions | GET /api/internal/transactions | List Transactions |
InternalAPI | internalPatchAccount | PATCH /api/internal/accounts/{account_guid} | Patch Account |
PricesAPI | listPrices | GET /api/prices | Get Price |
QuotesAPI | createQuote | POST /api/quotes | Create Quote |
QuotesAPI | getQuote | GET /api/quotes/{quote_guid} | Get Quote |
QuotesAPI | listQuotes | GET /api/quotes | Get quotes list |
RewardsAPI | createRewards | POST /api/rewards | Create Reward |
SymbolsAPI | listSymbols | GET /api/symbols | Get Symbols list |
TradesAPI | createTrade | POST /api/trades | Create Trade |
TradesAPI | getTrade | GET /api/trades/{trade_guid} | Get Trade |
TradesAPI | listTrades | GET /api/trades | Get trades list |
VerificationKeysAPI | createVerificationKey | POST /api/bank_verification_keys | Create VerificationKey |
VerificationKeysAPI | getVerificationKey | GET /api/bank_verification_keys/{verification_key_guid} | Get VerificationKey |
VerificationKeysAPI | listVerificationKeys | GET /api/bank_verification_keys | Get Verification Keys list |
link |
Stars: 0 |
Last commit: 41 minutes ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics