spaces
/v1/space/branches/{branchId}/front-deskA location's registered tablets and front-desk staff
curl -X GET https://api.tbbnetwork.com/v1/space/branches/{branchId}/front-desk \
-H "Authorization: Bearer <session access token>" \Parameters
| branchId | path | required |
Possible errors
Any other failure (validation, auth, rate limiting, a resource that doesn't exist) returns this same envelope with a non-2xx status — error.code is stable and safe to branch on; error.requestId is worth logging and including in a support request.
{
"error": {
"code": "VALIDATION_ERROR",
"message": "A human-readable description of what went wrong.",
"requestId": "req_01hxyz..."
}
}/v1/space/branches/{branchId}/devicesRegister a tablet to this location with the code it shows
curl -X POST https://api.tbbnetwork.com/v1/space/branches/{branchId}/devices \
-H "Authorization: Bearer <session access token>" \
-H "Idempotency-Key: 5f2f...b91" \
-H "Content-Type: application/json" \
-d '{
"registrationCode": "registrationCode",
"label": "label"
}'Parameters
| branchId | path | required |
Request body
| Field | Type | Required |
|---|---|---|
| registrationCode | string | yes |
| label | string | yes |
Possible errors
Any other failure (validation, auth, rate limiting, a resource that doesn't exist) returns this same envelope with a non-2xx status — error.code is stable and safe to branch on; error.requestId is worth logging and including in a support request.
{
"error": {
"code": "VALIDATION_ERROR",
"message": "A human-readable description of what went wrong.",
"requestId": "req_01hxyz..."
}
}/v1/space/devices/{id}Rename a tablet
curl -X PATCH https://api.tbbnetwork.com/v1/space/devices/{id} \
-H "Authorization: Bearer <session access token>" \
-H "Idempotency-Key: 5f2f...b91" \
-H "Content-Type: application/json" \
-d '{
"label": "label"
}'Parameters
| id | path | required |
Request body
| Field | Type | Required |
|---|---|---|
| label | string | yes |
Possible errors
Any other failure (validation, auth, rate limiting, a resource that doesn't exist) returns this same envelope with a non-2xx status — error.code is stable and safe to branch on; error.requestId is worth logging and including in a support request.
{
"error": {
"code": "VALIDATION_ERROR",
"message": "A human-readable description of what went wrong.",
"requestId": "req_01hxyz..."
}
}/v1/space/devices/{id}Remove a tablet; it stops working at once
curl -X DELETE https://api.tbbnetwork.com/v1/space/devices/{id} \
-H "Authorization: Bearer <session access token>" \
-H "Idempotency-Key: 5f2f...b91" \Parameters
| id | path | required |
Possible errors
Any other failure (validation, auth, rate limiting, a resource that doesn't exist) returns this same envelope with a non-2xx status — error.code is stable and safe to branch on; error.requestId is worth logging and including in a support request.
{
"error": {
"code": "VALIDATION_ERROR",
"message": "A human-readable description of what went wrong.",
"requestId": "req_01hxyz..."
}
}/v1/space/branches/{branchId}/staffAdd someone to this location's front desk, with a PIN of 4 to 6 digits
curl -X POST https://api.tbbnetwork.com/v1/space/branches/{branchId}/staff \
-H "Authorization: Bearer <session access token>" \
-H "Idempotency-Key: 5f2f...b91" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme Co.",
"pin": "4821"
}'Parameters
| branchId | path | required |
Request body
| Field | Type | Required |
|---|---|---|
| name | string | yes |
| pin | string | yes |
Possible errors
Any other failure (validation, auth, rate limiting, a resource that doesn't exist) returns this same envelope with a non-2xx status — error.code is stable and safe to branch on; error.requestId is worth logging and including in a support request.
{
"error": {
"code": "VALIDATION_ERROR",
"message": "A human-readable description of what went wrong.",
"requestId": "req_01hxyz..."
}
}/v1/space/staff/{id}Rename, set a new PIN, or disable front-desk staff
curl -X PATCH https://api.tbbnetwork.com/v1/space/staff/{id} \
-H "Authorization: Bearer <session access token>" \
-H "Idempotency-Key: 5f2f...b91" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme Co.",
"pin": "4821",
"disabled": false
}'Parameters
| id | path | required |
Request body
| Field | Type | Required |
|---|---|---|
| name | string | — |
| pin | string | — |
| disabled | boolean | — |
Possible errors
Any other failure (validation, auth, rate limiting, a resource that doesn't exist) returns this same envelope with a non-2xx status — error.code is stable and safe to branch on; error.requestId is worth logging and including in a support request.
{
"error": {
"code": "VALIDATION_ERROR",
"message": "A human-readable description of what went wrong.",
"requestId": "req_01hxyz..."
}
}