You are on page 1of 9

Pasino.

com API Documentation

Introduction

Thank you for your interest in our API. Here at Pasino.com, we have the best service to help
you develop trust-worthy betting software and bots.

Before you’re able to access our API endpoints, you must have an API key. To obtain the API
key, please get in touch with our staff via email or our Telegram group.

Acceptable Use

▪ As the API keys allow you to bypass captchas, please do not use it to bruteforce accounts
or attack accounts at our website.
▪ Respect the usage limits. Usage limits help to keep our API accessible to everyone. Your
end-users must not exceed 100 bets per second.
▪ Do not use the API to spam or overwhelm our server with dust bets.
▪ Do not imply endorsements or a stronger connection between Pasino.com and your
application.

By using our API, you are bound to our Terms and Conditions, Community Rules and Privacy
Policy. We reserve the right to forfeit your API access at any time with or without any notice.
HTTP Endpoints

To automate the process of signing up and login at Pasino, you can use the following HTTP
endpoints.

Please set the following headers as all the communications will take place in POST and
JSON. Hence, all the data POSTed will be in JSON.

Content-Type: application/json

Method: POST

Register

REQUEST TABLE
URL https://api.pasino.com/api/register
Parameter Sample Value
user_name helloworld
user_email hello@universe.com
password s3cureP@ssw0rd
agreement 1
referrer 12363
api_key 207f5c1d8a3ec09f296b468caaa73f5900e1b2

RESPONSE TABLE (ERROR)


Parameter Sample Value
success false
message The email address you entered is not valid.

RESPONSE TABLE (SUCCESS)


Parameter Sample Value
success true
message Your account has been registered successfully. You may login to your account now.

login_token 34cd711ea6edb213c6afbe9a317b187ee347efdff6576fd236f

Please handle the response of the API calls based on the value of the boolean field success.

If you want the user to sign up under you, please specify a referrer. referrer is your user ID.
Login

REQUEST TABLE
URL https://api.pasino.com/api/login
Parameter Sample Value
user helloworld
password s3cureP@ssw0rd
api_key 207f5c1d8a3ec09f296b468caaa73f5900e1b2

RESPONSE TABLE (ERROR)


Parameter Sample Value
success false
message It seems that you have entered an invalid username / email address or password.

RESPONSE TABLE (SUCCESS)


Parameter Sample Value
success true
message You have been successfully logged in.

token 34cd711ea6edb213c6afbe9a317b187ee347efdff6576fd236f

Obtain Socket Token

REQUEST TABLE
URL https://api.pasino.com/account/get-socket-token
Parameter Sample Value
token 34cd711ea6edb213c6afbe9a317b187ee347efdff6576fd236f

RESPONSE TABLE (ERROR)


Parameter Sample Value
success false
bad_token true
message Seems like your session has expired. Please try clearing your cookies and login again.

RESPONSE TABLE (SUCCESS)


Parameter Sample Value
success true
message
socket_token a91218b24812b55267d6b3194371f1516bd45f57acaa65b1e80ee0bcd9e71ed5
Deposit

REQUEST TABLE
URL https://api.pasino.com/deposit/get-deposit-information
Parameter Sample Value
token 34cd711ea6edb213c6afbe9a317b187ee347efdff6576fd236f
coin BTC

RESPONSE TABLE (ERROR)


Parameter Sample Value
success false
message Seems like your session has expired. Please try clearing your cookies and login again.

RESPONSE TABLE (SUCCESS)


Parameter Sample Value
success true
message
address 19yGWjCbeFQfMiKxqBP2EpsQW5w4qnWHvW
confirmations_required 1
fp_supported 1
minimum_deposit_direct 0.00010000
minimum_deposit_fp 0.00000001
qr https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=19yGWjCbeFQfMiKxqBP2Ep
sQW5w4qnWHvW&chld=M|1&choe=UTF-8

If the address is NULL or empty, that means your request for a deposit address is accepted. You
should then make an API call once again after 10 seconds and an address will be returned. Addresses
are allocated on demand, so the first request for a new account would always return a NULL address.
So, a subsequent request is required.
Withdraw

REQUEST TABLE
URL https://api.pasino.com/withdraw/place-withdrawal
Parameter Sample Value
token 34cd711ea6edb213c6afbe9a317b187ee347efdff6576fd236f
coin BTC
method DIRECT or FAUCETPAY
address 19yGWjCbeFQfMiKxqBP2EpsQW5w4qnWHvW
amount 0.0000001

RESPONSE TABLE (ERROR)


Parameter Sample Value
success false
message Seems like your session has expired. Please try clearing your cookies and login again.

RESPONSE TABLE (SUCCESS)


Parameter Sample Value
success true
message Your withdrawal request has been accepted!

Tip / Transfer

REQUEST TABLE
URL https://api.pasino.com/transfer/send-transfer
Parameter Sample Value
token 34cd711ea6edb213c6afbe9a317b187ee347efdff6576fd236f
coin BTC
user_name helloworld
amount 0.0000001

RESPONSE TABLE (ERROR)


Parameter Sample Value
success false
message Seems like your session has expired. Please try clearing your cookies and login again.

RESPONSE TABLE (SUCCESS)


Parameter Sample Value
success true
message The funds have been transferred.
WebSockets Reference

To play bets on Dice, we utilize websockets. WebSockets enable us to handle bets at a higher
rate than the traditional HTTP requests. Just like the HTTP API, the interactions in the
WebSocket API also take place in JSON.

WSS URL: wss://socket.pasino.com/dice/

Please take care of the trailing slash at the end. It is necessary.

Authentication
This is to authenticate an account with the socket API.

REQUEST
Parameter Sample Value
method initialization
socket_token d690c7380c05c0e5a79be83fc15275ccf6b91e67

ASSOCIATED RESPONSE
Parameter Sample Value
action authenticated
user_id 51221
user_name helloworld
referrer 3259

Get Coin Configuration


This is to get the betting configuration related to a coin. For example, to get the information
about minimum and maximum betting limits.

REQUEST
Parameter Sample Value
method get_coin_parameters
coin BTC

ASSOCIATED RESPONSE
Parameter Sample Value
action update_coin_parameters
price 42213.00000000
minimum_bet 0.00000010
maximum_bet 0.05000000
maximum_profit 0.25000000
Get Balance
This is to get the account balance for a particular coin.

REQUEST
Parameter Sample Value
method get_balance
coin BTC

ASSOCIATED RESPONSE
Parameter Sample Value
action update_balance
user_balance 0.00061755
Place Bet
This method is to place a bet from your account.

REQUEST
Parameter Sample Value
method place_bet
bet_amt 1.00000000
coin TRX
client_seed b89f9a8690e463320c88955352cb95db
type 1
payout 1.26666
winning_chance 75
profit 0. 26666000

type can have two values: 1 for low, 2 for high.

ASSOCIATED RESPONSE (ERROR)


Parameter Sample Value
action bet_update
error The bet amount must be greater than 0.00000010 BTC.
Balance 0.00061755

ASSOCIATED RESPONSE (SUCCESS)


Parameter Sample Value
action bet_update
error null
win 1
payout 1.26666
roll_number 3313
coin TRX
profit 0.26666000
balance 13.90536724
Calculating Betting Parameters (Dice)

$bet_amt = 1;

$desired_payout = 2;

$winning_chance = sprintf("%.2f", (9500 / $desired_payout) / 100);

$actual_payout = bcdiv(95, $winning_chance, 5);

$profit = bcsub(bcmul($bet_amt, $actual_payout, 8), $bet_amt, 8);

You might also like