/devices/{uuid}/tokens

Create a new session token

📘

Tokens Array

This will add a new token to the tokens array in your Meshblu device.

curl -X POST \
  --header "meshblu_auth_uuid: c9eeca22-fc0f-4081-b430-bd5b67091106" \
  --header "meshblu_auth_token: 077b6ec9c9dff30869d279aee1fc2a4f776181e9" \
  https://meshblu.octoblu.com/devices/c9eeca22-fc0f-4081-b430-bd5b67091106/tokens

Response

{
  "uuid":"c9eeca22-fc0f-4081-b430-bd5b67091106",
  "token":"167728cb25a449b39809ca2d82318703002d3628"
}

/devices/{uuid}/tokens/{token}

Remove a new session token

❗️

Remove Token

This will invalidate your previous token and any connection using the token will be disconnected immediately.

curl -X DELETE \
  --header "meshblu_auth_uuid: c9eeca22-fc0f-4081-b430-bd5b67091106" \
  --header "meshblu_auth_token: 077b6ec9c9dff30869d279aee1fc2a4f776181e9" \
  https://meshblu.octoblu.com/devices/c9eeca22-fc0f-4081-b430-bd5b67091106/tokens/077b6ec9c9dff30869d279aee1fc2a4f776181e9