API Node - Getting Request headers

Solved!
Bader
Level 3
API Node - Getting Request headers

Hi All, 

I have built an Api and deployed into separate api-node. everything works fine but I would like to get the requester headers (Query Headers or body) to verify some values before proceed.

Could you please support in this

Thanks 

 

0 Kudos
1 Solution
Alex_Combessie
Dataiker Alumni

Hi,

Thanks for explaining your objective.

Unfortunately, this is not possible. I have passed your request to our product team.

Cheers,

Alex

View solution in original post

0 Kudos
6 Replies
Alex_Combessie
Dataiker Alumni
Hi, The documentation of the API node user API is https://doc.dataiku.com/dss/api/7.0/apinode-user/. What specifically would you like to verify? Is it about how to send a request to the API node? Or to add custom logic to a prediction endpoint? Cheers, Alex
0 Kudos
Bader
Level 3
Author

Hi Alex,  

No,  I would like to get information about who is calling my api node,  the brwoser information etc .. (Please see the attachment)

def api_py_function():
 #adding logic to get the request headers
 #Something like this  get_auth_info_from_browser_headers(request_headers)

  return "Works fine"
0 Kudos
Alex_Combessie
Dataiker Alumni

Hi,

Thanks for explaining your objective.

Unfortunately, this is not possible. I have passed your request to our product team.

Cheers,

Alex

0 Kudos
Bader
Level 3
Author

Thank Alex, please let us know if you decide to add this feature.

Kind regards 

Bader

0 Kudos
Philip
Level 1

Hi Team,

 

Is it still not possible to get request headers inside "my_api_function" ?

Would be a very appreciated feature.

Many thanks,

 

Philippe

0 Kudos
Turribeach

Is it still not possible to get request headers inside "my_api_function" ? => Yes.

0 Kudos