# otCoapToken Struct Reference

# otCoapToken


`#include <openthread/coap.h>`

Represents a CoAP message token.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-coap-token#structot_coap_token_1a19d939002a2858e150bef3bd9c4e9be6[8]` | `uint8_t` The token bytes. |
| `https://openthread.io/reference/struct/ot-coap-token#structot_coap_token_1ac5f493f90ddf81c81ccf6c6903d0f644` | `uint8_t` The token length in bytes. |

## Public attributes

### m8

```
uint8_t otCoapToken::m8[8]
```
The token bytes.

### mLength

```
uint8_t otCoapToken::mLength
```
The token length in bytes.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).