Problems integrating Urbanairship with ZenDesk


I have integrated Urban Airship with my app and can receive test messages successfully. I am now trying to integrate with Zendesk. I have added Urban Airship App Key and Master Secret to the Mobile SDK config section of Zendesk. The Zendesk SDK is working in my app, I can create tickets, see them etc. I cannot push messages from Zendesk via UA.

I'm recieving the following error message:

[79c79ef2d8ae47fd] SDK Urban Airship Response: 400 - {"ok":false,"error":"Could not parse request body.","error_code":40285,"details":{"error":"Invalid Android channel ''"},"operation_id":"56d5a0e9-35af-4041-8c96-6af10348c360"} - #<HTTParty::Response:0x7f4baa053938 parsed_response={"ok"=>false, "error"=>"Could not parse request body.", "error_code"=>40285, "details"=>{"error"=>"Invalid Android channel ''"}, "operation_id"=>"56d5a0e9-35af-4041-8c96-6af10348c360"}, @response=#<Net::HTTPBadRequest 400 Bad Request readbody=true>, @headers={"content-type"=>["application/vnd.urbanairship+json;version=3"], "content-length"=>["189"], "date"=>["Fri, 25 Jan 2019 13:52:56 GMT"], "connection"=>["close"]}>


Didn't find what you were looking for?

New post



  • Hi,

    Are you following this guide?

    Based on the error it looks like you are providing an email address where our API is expecting a Channel ID. Channel IDs are our unique identifiers to be able to target specific devices. 

    Depending on your setup and how you are registering devices and recording/obtaining channels IDs you would need to use this identifier to address specific devices. To use emails you would have to map those to channel ID on your end in some way or better yet, use Named User IDs instead of emails.

    Let us know if you have any specific questions.

    Jay M.
    Urban Airship Technical Support

    Comment actions Permalink
  • Hi Jay,

    I was integrating using Zendesk (authenticating with Zendesk using a JWT identity) so that incorrect channel ID as an email is coming from Zendesk.I followed the Zendesk integration guide and that log I provided you was from Zendesk support.

    I have got it working now by creating my own Zendesk webhook endpoint using Firebase functions and bypassing UA altogether.

    Thanks for your help anyway.



    Comment actions Permalink
  • Glad you got it sorted out!

    Jay M.
    Urban Airship Technical Support

    Comment actions Permalink

Please sign in to leave a comment.