Skip to main content

Get branch info

GET{{server}}/api/v1/smart/branchInfo?branch={{branch}}

This endpoint retrieves information about a specific branch.

Request

  • branch (string, required): The identifier of the branch for which information is requested.

Response

The response will include an array of objects, with each object containing the following properties:

  • branch: Branch key.

  • waiting: The number of people waiting at the branch.

Request​

Authorization​

HeaderValue
AuthorizationSmartToken {{smartToken}}

Headers​

KeyValue
Acceptapplication/json

Query parameters​

KeyValue
branch{{branch}}

Code snippets​

curl -X GET '{{server}}/api/v1/smart/branchInfo?branch={{branch}}' \
-H 'Accept: application/json' \
-H 'Authorization: SmartToken {{smartToken}}'

Example​

Example request
GET{{server}}/api/v1/smart/branchInfo?branch={{branch}}
Query parameters (1)
KeyValue
branch{{branch}}
Headers (1)
KeyValue
Acceptapplication/json
Example response 200 Ok
Response headers (9)
KeyValue
Access-Control-Expose-Headers*
Cache-Controlno-store, no-cache, must-revalidate
Access-Control-Allow-Origin*
Access-Control-Allow-MethodsPOST, PUT, GET, OPTIONS, DELETE
Access-Control-Allow-Credentialstrue
Content-Length187
Access-Control-Max-Age86400
Access-Control-Allow-HeadersContent-Type, Authorization, X-Requested-With
Content-Typeapplication/json;charset=utf-8
Body
[
{
"branch": "00000000-0000-4000-0003-000000000001",
"waiting": 0
},
{
"branch": "1967b6e4-0e41-4cac-3a19-bf68e4b2a626",
"waiting": 0
},
{
"branch": "1967b6dd-f895-4fb3-92c3-f7d7acd37b1b",
"waiting": 0
}
]