API to get attributes in NETCONF RPC

Hi,
Does Confd provide any API to get the attributes (eg: message-id or any custom attribute) sent by NETCONF client in NETCONF rpc ?
Is it possible to add a custom attribute to rpc-reply ?

Thanks.

Client can add attributes and they should be returned by rpc-reply. I do not know if there is a way to read or set it in ConfD API.

NETCONF calls are not related to API and API functions (callbacks) usually do not know which northbound interface invoked it. What is your scenario? Did you consider to to encode attributes into (optional) part of your YANG datamodel? This may be cleaner and more flexible.