Create Push Token
    • Dark
      Light
    • PDF

    Create Push Token

    • Dark
      Light
    • PDF

    Article summary

    Post
    /api/v1/push.token

    Changelog

    VersionDescription
    0.60.0Added
    Header parameters
    X-Auth-Token
    stringRequired

    The authorization token of the user.

    Example9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq
    X-User-Id
    stringRequired

    The user ID of the user.

    ExampleaobEdbYhXfu5hkeqG
    Body parameters
    Example 1
    {
      "type": "gcm",
      "value": "TOKEN",
      "appName": "MyApp"
    }
    object
    type
    string Required

    The possible values are apn or gcm.

    value
    string Required

    The token value.

    appName
    string Required

    The name of the application to associate the token with

    Responses
    200
    Success Example
    {
      "result": {
        "token": {
          "gcm": "TOKEN"
        },
        "appName": "RocketAPP",
        "userId": "52d5Rw8LT3TeDa59Z",
        "enabled": true,
        "createdAt": "2018-09-11T18:22:55.006Z",
        "updatedAt": "2018-09-11T18:22:55.006Z",
        "_id": "DMMjKG2hFoLvM2hk7"
      },
      "success": true
    }
    Expand All
    object
    result
    object
    token
    object
    gcm
    string
    appName
    string
    userId
    string
    enabled
    boolean
    createdAt
    string
    updatedAt
    string
    _id
    string
    success
    boolean
    400

    Bad Request

    Example 1
    {
      "success": false,
      "error": "The required \"type\" body param is missing or invalid. [error-type-param-not-valid]",
      "errorType": "error-type-param-not-valid"
    }
    object
    success
    boolean
    error
    string
    errorType
    string
    401

    Unauthorized

    Authorization Error
    {
      "status": "error",
      "message": "You must be logged in to do this."
    }
    object
    status
    string
    message
    string

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.