Authentication Token - Login

Every user is attributed with one unique API token when the account is created. You can check your access on My Account > Account Settings > Api Auth Token.

All API methods provided by BetBTC require authentication before being accessed.

To identify yourself you should include the following data on the beginning of your requests (header):


Header = Authorization
Value = Token token=**YOUR ACCESS TOKEN**


  • Avatar
    Maulik lathyia

    How to use the token ! 

  • Avatar


    The instructions are above (with examples)

    If you are getting troubles authenticating please send us a support ticket with the response you are getting!

  • Avatar
    Maulik lathyia

    Thank's for the reply, 

    Can you please mail me an simple example code (extracting data from any of the market) using the betbtc's api with the token.

    this code dint help me (its mix of two api)

  • Avatar
    Marin Lepère

    Hello, I'm trying to GET EVENTS with the REST api and SoapUI. But I keep getting the "HTTP Token: Access denied." error.

    I'm connecting to with the header and my token. Screenshots below. The token in the screenshot is not valid, just an example.

    Is this the correct way? Or do I need to send the token using xml or json? Or regular authentication?

    Thank you



    Edited by Marin Lepère
  • Avatar
    Maulik lathyia

    this code give's out error 

    *token is an example

    $crl = curl_init("");

    $header = array();
    $header[] = 'Authorization: Value=Token token=6df4ghb6ej65454h654jf12721ca45j5';

    curl_setopt($crl, CURLOPT_HTTPHEADER,$header);
    $rest = curl_exec($crl);



  • Avatar

    @Maulik lathyia

    I think you should use the "https://" before the

    Otherwise it seems an http request instead of an https.


    Edited by AG_4526
  • Avatar


    I'm trying to connect via cURL.

    I tried vary combinations, such as this:

    curl -H "Header = Authorization" -H "Value = Token token=11111111111111111111111111111111" "" -o .\response.htm

    I tried a lot of combinations:

    -":" instead of "="

    -removing ad adding spaces

    -a single header instead of two -H rows

    -removing "Header" and "Value" words

    But I always receive an Access Denied response using my real token.


    Can you please specify a cURL simple example?

  • Avatar


    I find out a way to have cURL working! It seems to need the content-type as the first row in the header.

    Here the line I used:

    curl -H "Content-Type: application/json" -H "Authorization: Token token=11111111111111111111111111111111" "" -o .\response.htm



Please sign in to leave a comment.
Powered by Zendesk