{"ok":false,"error":"Unauthorized","error_code":40101} returned.

I tried touse fiddler(see below image)  to  push a notification using  below http request ,  but always get  {"ok":false,"error":"Unauthorized","error_code":40101}   error code.

I have already put my master secret in there. 

why still return unauthorized  error code?  is there anything ,I am missing?


Authorization: Basic 
Accept: application/vnd.urbanairship+json; version=3;
Content-Type: application/json


"audience": {
"ios_channel": "38ab0776-6115-4b6d-b748-0f0807598518"
"notification": {
"alert": "Hello!"
"device_types": "all"

Didn't find what you were looking for?

New post



  • Hello,

    Thank you for writing in to the Urban Airship Support Forum regarding the 401 error you're receiving.

    You need to include both your app key and master secret in the authorization section of your request in order for the request to go through. For more on this, please see our official API documentation.

    I would strongly encourage you to not include your master secret in future forum posts, as it is needed for sending messages and other high-value requests. Paired with your app key, an unauthorized person could send notifications from your app. I have removed all references to and screenshots of your master secret from this post.

    Please let me know if you have any other questions or concerns.

    Comment actions Permalink
  • Hold off on this.  Will get back

    Comment actions Permalink
  • Please close this ticket. It's a false alarm. 

    Comment actions Permalink

Please sign in to leave a comment.