API reference · Access & roles

Devices

GET List the caller's linked devices

GET /device

Returns every device linked to the authenticated caller.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Example

Response: List<DeviceResponse>

curl -X GET "https://api.bridgemoni.com/device" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Devices fetched successfully

POST Link a device

POST /device

Registers a new device against the authenticated caller. Only one device may be linked at a time - unlink the current one first to link a different device. The device identifier itself must also be globally unique.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live
Content-Typeapplication/json

Example

Request body: LinkDeviceRequest · Response: DeviceResponse

curl -X POST "https://api.bridgemoni.com/device" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Ada Obi",
    "description": "March payroll",
    "deviceType": "IPHONE",
    "brandName": "Ada Obi",
    "operatingSystem": "Ada Obi",
    "deviceId": "a7f3-k2m9-4c1d-8e5b",
    "deviceKey": "device key",
    "deviceSecret": "text",
    "deviceSecretSignature": "device secret signature",
    "userData": "device user data",
    "userDataSignature": "user data signature"
  }'

Responses

StatusWhen
200Device linked successfully
409This device is already linked to a user
409Another device is already linked to this account

DELETE Unlink one of the caller's devices

DELETE /device/{reference}

Confirmed with the caller's transaction PIN, sent base64-encoded in the x-secret-value header as on any other PIN-protected operation. Unlinking is what frees the account to be linked somewhere else, so it is held to the same standard as moving money - possession of an unlocked handset is not enough on its own. Repeated wrong PINs lock the credential exactly as they do everywhere else.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Path parameters

Name
reference

Example

Response: Void

curl -X DELETE "https://api.bridgemoni.com/device/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Device unlinked successfully
404No such device is linked to the authenticated caller

GET Fetch one of the caller's linked devices by reference

GET /device/{reference}

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Path parameters

Name
reference

Example

Response: DeviceResponse

curl -X GET "https://api.bridgemoni.com/device/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Device fetched successfully
404No such device is linked to the authenticated caller

POST Block a device

POST /device/{reference}/block

A blocked device fails the X-Device-ID authentication check on every request.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Path parameters

Name
reference

Example

Response: DeviceResponse

curl -X POST "https://api.bridgemoni.com/device/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/block" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Device blocked successfully
404No such device is linked to the authenticated caller

POST Unblock a previously blocked device

POST /device/{reference}/unblock

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Path parameters

Name
reference

Example

Response: DeviceResponse

curl -X POST "https://api.bridgemoni.com/device/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/unblock" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Device unblocked successfully
404No such device is linked to the authenticated caller

Generated from the OpenAPI document. Branch on the HTTP status: there is no machine-readable error code on the wire. Errors