Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Bitnob API requests Addresses API
version: 1.0.0
description: 'What you send to the Bitnob API: path and query parameters, request bodies and auth headers. Responses are left out; see the full Bitnob API spec for those.'
servers:
- description: Production
url: https://api.bitnob.com
security:
- ClientId: []
Timestamp: []
Nonce: []
Signature: []
- ClientId: []
Secret: []
tags:
- description: Crypto deposit addresses, for your company or for a customer.
name: Addresses
paths:
/api/addresses:
get:
tags:
- Addresses
summary: List crypto addresses
description: Lists your crypto addresses, optionally filtered by chain or customer.
operationId: addressesList
parameters:
- description: Filter by chain.
example: tron
in: query
name: chain
schema:
example: tron
type: string
- description: Only results for this customer.
example: 019a3c10-5e6f-7a80-9b1c-2d3e4f5a6b70
in: query
name: customer_id
schema:
format: uuid
type: string
- description: Opaque cursor from the previous page's next_cursor.
example: eyJ0IjoiMjAyNi0xMC0yOFQxNzo0MDowOS41WiIsImlkIjoiMDE5YTNjNWUifQ
in: query
name: cursor
schema:
type: string
- description: 1 to 100; values outside that range use the default.
example: 50
in: query
name: limit
schema:
default: 50
maximum: 100
minimum: 1
type: integer
post:
tags:
- Addresses
summary: Generate a crypto address
description: Generates a new deposit address on a chain. Pass customer_id or customer_email to assign it to a customer; customer_email creates the customer if they don't exist yet.
operationId: addressesGenerate
requestBody:
content:
application/json:
examples:
company_address:
summary: An address for the organisation itself
value:
chain: tron
label: Treasury USDT
reference: addr_sbx_treasury_01
customer_by_email:
summary: Find or create the customer by email
value:
chain: ethereum
customer_email: kwame.mensah@example.com
customer_by_id:
summary: An address for an existing customer
value:
chain: bitcoin
customer_id: 019a3c10-5e6f-7a80-9b1c-2d3e4f5a6b70
label: Adaeze BTC
reference: addr_sbx_c_0091
schema:
$ref: '#/components/schemas/AddressesGenerateRequest'
required: true
/api/addresses/supported-chains:
get:
tags:
- Addresses
summary: List supported chains
description: Lists the chains you can generate addresses on, with each chain's native token and stablecoins.
operationId: addressesListSupportedChains
/api/addresses/validate:
post:
tags:
- Addresses
summary: Validate a crypto address
description: 'Checks whether an address is valid for a chain. An invalid address returns valid: false with an error, not an HTTP error.'
operationId: addressesValidate
requestBody:
content:
application/json:
examples:
bitcoin:
summary: A bitcoin address (testnet on sandbox)
value:
address: tb1qw508d6qejxtdg4y5r3zarvary0c5xw7kxpjzsx
chain: bitcoin
tron_typo:
summary: A Tron address with a typo
value:
address: TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLS
chain: tron
schema:
$ref: '#/components/schemas/AddressesValidateRequest'
required: true
/api/addresses/{id}:
get:
tags:
- Addresses
summary: Get a crypto address
description: Returns one of your crypto addresses.
operationId: addressesGet
parameters:
- description: ID of the address.
example: 019a3c61-5a6b-7c7d-9e8f-0a1b2c3d4e52
in: path
name: id
required: true
schema:
format: uuid
type: string
components:
schemas:
AddressesValidateRequest:
properties:
address:
description: At most 128 characters are accepted as valid.
type: string
chain:
description: Chain to validate the address on, for example bitcoin.
maxLength: 30
type: string
required:
- address
- chain
type: object
AddressesGenerateRequest:
properties:
chain:
description: Chain name, as listed by GET /api/addresses/supported-chains. Case-insensitive.
maxLength: 20
type: string
customer_email:
description: Generate the address for the customer with this email, creating the customer if needed. If the customer cannot be created the address is still generated, with no customer_id.
format: email
maxLength: 254
type: string
customer_id:
description: Generate the address for this existing customer. Takes precedence over customer_email.
format: uuid
type: string
label:
description: Your own name for this address. Only letters, numbers, spaces, hyphens, underscores, dots, at signs and colons are allowed.
maxLength: 40
type: string
reference:
description: Unique per organisation. Allows the same characters as label.
maxLength: 64
type: string
required:
- chain
type: object
securitySchemes:
ClientId:
type: apiKey
in: header
name: X-Auth-Client
description: Your client id. Required in both auth modes.
Nonce:
type: apiKey
in: header
name: X-Auth-Nonce
description: A unique random string for this request.
Secret:
type: apiKey
in: header
name: X-Auth-Secret
description: 'Secret mode only: your client secret, sent instead of the timestamp, nonce and signature.'
Signature:
type: apiKey
in: header
name: X-Auth-Signature
description: Hex HMAC-SHA256 of `{client_id}:{timestamp}:{nonce}:{body}` using your secret. The body is empty for GET.
Timestamp:
type: apiKey
in: header
name: X-Auth-Timestamp
description: The current Unix time in seconds. Requests more than 5 minutes off are refused.