> Documentation index: https://openthread.io/reference/llms.txt

# otThreadDirectKeyIterator


`#include <openthread/thread_direct.h>`

Represents an iterator for iterating through registered Thread Direct keys.

## Summary

Use `otThreadDirectInitKeyIterator()` to initialize the iterator before using it with `otThreadDirectGetNextKey()`.

The caller MUST NOT access or update the fields in this struct. It is intended for OpenThread internal use only.

| ### Public attributes ||
|---|---|
| `mPtr` | `void *` |

## Public attributes

### mPtr

```
void * otThreadDirectKeyIterator::mPtr
```

## 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.md.txt).