Overview

Ask tech team
From QuickBlox Developers (API docs, code samples, SDK)
Jump to: navigation, search

QuickBlox API Documentation

Contents

Modules


Need to know information


Endpoints

QuickBlox provides a flexible mechanism for apps to retrieve all the correct endpoints (API, Chat, etc) to work with. This mechanism allows smooth transition between Plans.

URL Headers HTTP Verb Supported formats Action Description Success HTTP Status Code
/account_settings QB-Account-Key GET
  • xml
  • json
Request all app endpoints 200

To get the QB-Account-Key, open Admin panel, your Account page and copy the Account key value:

Account key.jpeg

Request

curl -X GET \
-H "QuickBlox-REST-API-Version: 0.1.1" \
-H "QB-Account-Key: 7yvNe17TnjNUqDoPwfqp" \
https://api.quickblox.com/account_settings.json
curl -X GET \
-H "QuickBlox-REST-API-Version: 0.1.1" \
-H "QB-Account-Key: 7yvNe17TnjNUqDoPwfqp" \
https://api.quickblox.com/account_settings.xml

Response

{
  "account_id": 55,
  "api_endpoint": "https://api.quickblox.com",
  "chat_endpoint": "chat.quickblox.com",
  "turnserver_endpoint": "turnserver.quickblox.com",
  "s3_bucket_name": "qbprod"
}
<?xml version="1.0" encoding="UTF-8"?>
<account-settings>
  <account-id type='integer'>
    55
  </account-id>
  <api-endpoint>
    https://api.quickblox.com
  </api-endpoint>
  <chat-endpoint>
    chat.quickblox.com
  </chat-endpoint>
  <turnserver-endpoint>
    turnserver.quickblox.com
  </turnserver-endpoint>
  <s3-bucket-name>
    qbprod
  </s3-bucket-name>
</account-settings>

Use these endpoints in the application. This should ideally be the first request in the application before all other requests to QuickBlox.