최근 검색


최근 검색 없음

Passing API Header in HTTP Target

완료


2017년 10월 24일에 게시됨

My objective is to simply pass ticket information when a ticket is created to an external application using an HTTP API target. I am able to pass an API Key in the URL such as https://www.somewebsite.com/index.php/api/get_projects_and_boards/apikey/<key value> but that is an unsecure method and exposes my API key.

Similar to the "Form Encoded" method you can select when creating your HTTP target that gives you an option for a "key" and "Value," it would be extremely helpful if you were able to specify custom header keys to be passed in the api call.

 


21

37

댓글 37개

I'm having trouble getting this to work with FreePBX REST interface. I don't think the token is being passed properly using the simple auth box? 

1


Hello,

Is it possible to know when/if there will be an option to set headers to the api call?

Regards

3


Hey Wayne & David,

One point I missed about your request previously is that we do actually support Basic Authentication on HTTP Targets. This will not enable you to set a custom header, but it will enable you to set a standard Basic value on the Authorization header. This is a standard way of passing a username and password, or just a token, as a Base 64 encoded string. https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#Basic_authentication_scheme

With this and HTTPS you should have a nice secure, and standardized, way of passing credentials to the destination service. I know it won't work for every out-of-the-box destination API, but it should work for many APIs and any custom integrations you can dream up :)

1


Dwight - thanks for the speedy reply and info, it's much appreciated!

0


HeyO Wayne & David,

While this isn't possible yet, I just spoke with one of our Product Managers who indicated this was a need that they are planning on addressing in the webhooks feature mentioned here: https://support.zendesk.com/hc/en-us/community/posts/115000453227-Feature-request-Webhooks Although the ability to pass headers isn't specifically mentioned in the post/comments, please know that it is being discussed as a related need.

We don't yet have a timeline for that yet, but it's definitely something that's planned that we hope to build soon! I recommend following the aforementioned community post so that you're notified when that gets launched. If there's a beta for that feature prior to its general release, they'd likely indicate within that thread. If you have additional questions related to this or would like to elaborate on the specifics of your use-case (although passing auth headers/API keys is understandable), please feel free to put those notes into either one of these posts.

Thanks again for this feedback request!

1


Hi Wayne, Nicole,

I'll second that - I need to be able to pass Application ID and API Key as custom headers. Is this possible?

Cheers,
David.

3


Hi Wayne - 

Thanks for the feedback. I see that this is your first post - Welcome to the Zendesk Community! I encourage you to head over to the Welcome Thread in The Lounge to introduce yourself. 

We look forward to seeing you around the Community. Happy Zendesking!

0


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물