POST Request information


Is there any proper guides for creating push notifications, I cannot get a POST request working and all information on urban airship seems too vague to follow. 

Can someone help me translate the code below to work with Postman. Ive added in 3 header fields of Accept application/vnd.urbanairship+json; version=3; Accept application/json & Authorization Basic <myappkey:mymasterkey>. Although I couldnt find the value required for "master authorization string" anywhere on this site. Am I using the correct value here?

I then have a simple json feed in the body of the request as raw data. The response I get is Unauthorized, with error code 40101.

POST /api/push HTTP/1.1
Authorization: Basic <master authorization string>
Content-Type: application/json
Accept: application/vnd.urbanairship+json; version=3;

    "audience": {
        "ios_channel": "9c36e8c7-5a73-47c0-9716-99fd3d4197d5"
    "notification": {
        "alert": "Hello!"
    "device_types": "all"

Didn't find what you were looking for?

New post


1 comment

  • Hi Keelin,

    You're almost there with your request. You use your App Key and your Master Secret separated by a colon as a username/password. In Postman you should see a username and password field when you select "Basic" authorization.

    If you log into your App at and go to Settings (Gear Icon) > APIs & Integrations, you can find these values. 

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

    Thank you,
    Sean Conlin
    Urban Airship Technical Support
    Portland, Oregon


    Comment actions Permalink

Please sign in to leave a comment.