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 Authentication 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: Check that your requests are signed correctly.
name: Authentication
paths:
/api/whoami:
get:
tags:
- Authentication
summary: Check your credentials
description: Returns the authenticated client and organization. It accepts any method and body, so use it to test request signing. See Authentication for how to sign requests.
operationId: whoamiGet
post:
tags:
- Authentication
summary: Check your credentials
description: Returns the authenticated client and organization. It accepts any method and body, so use it to test request signing. See Authentication for how to sign requests.
operationId: whoamiPost
requestBody:
content:
application/json:
example:
ping: signed body check
schema: {}
description: Any body, or none. It is not read, but it is part of what you sign, so this is a good way to check that your client signs the exact bytes it sends.
required: false
components:
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.