Integration Guides
Customer Journey
- Customer API Overview
- Authentication
API 2.x Reference
- Authorization
- Settings Controller
- IP Controller
- Two-Factor Authentication
- User Access - Password
- Session Controller
- Tenant
- Customers B2X
- Wallet
- Transfer Order
Sandbox Token
Authenticate sandbox client
POST
/
api
/
v2
/
auth
/
sandbox
/
token
Copy
curl --request POST \
--url https://sandbox.finhub.cloud/api/v2/auth/sandbox/token \
--header 'Content-Type: application/json' \
--header 'X-Forwarded-For: <x-forwarded-for>' \
--data '{
"username": "<string>",
"password": "<string>",
"customerKey": "<string>",
"customerSecret": "<string>",
"accountType": "B2B"
}'
Copy
{
"userSessionToken": "<string>",
"expiresIn": 123,
"tokenType": "<string>",
"userId": "<string>",
"customerId": "<string>",
"personId": "<string>",
"tenantId": "<string>",
"credentials": [
{
"sessionId": "<string>",
"value": "<string>",
"token": "<string>"
}
],
"organizationId": "<string>",
"twoFaInfo": [
{
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"tenantId": "<string>",
"login": true,
"trading": true,
"funding": true,
"userId": "<string>"
}
],
"isOneTimePasswordLogin": true,
"isPasswordExpired": true,
"bffToken": "<string>",
"oneTimePasswordLogin": true
}
Headers
Client platform information
Forwarded client IP address
Client user agent information
Tenant identifier for multi-tenant operations
Body
application/json
Sandbox login credentials
The body is of type object
.
Response
200
application/json
Authentication successful
The response is of type object
.
Copy
curl --request POST \
--url https://sandbox.finhub.cloud/api/v2/auth/sandbox/token \
--header 'Content-Type: application/json' \
--header 'X-Forwarded-For: <x-forwarded-for>' \
--data '{
"username": "<string>",
"password": "<string>",
"customerKey": "<string>",
"customerSecret": "<string>",
"accountType": "B2B"
}'
Copy
{
"userSessionToken": "<string>",
"expiresIn": 123,
"tokenType": "<string>",
"userId": "<string>",
"customerId": "<string>",
"personId": "<string>",
"tenantId": "<string>",
"credentials": [
{
"sessionId": "<string>",
"value": "<string>",
"token": "<string>"
}
],
"organizationId": "<string>",
"twoFaInfo": [
{
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"tenantId": "<string>",
"login": true,
"trading": true,
"funding": true,
"userId": "<string>"
}
],
"isOneTimePasswordLogin": true,
"isPasswordExpired": true,
"bffToken": "<string>",
"oneTimePasswordLogin": true
}
Assistant
Responses are generated using AI and may contain mistakes.