Skip to main content

Creates a new mobile push credential

POST 

/mobile_push_credentials

Creates a new mobile push credential

Request

Body

required

Mobile push credential parameters that need to be sent in the request

    oneOf

    type stringrequired

    Possible values: [ios]

    Type of mobile push credential. Should be ios here

    certificate stringrequired

    Certificate as received from APNs

    private_key stringrequired

    Corresponding private key to the certificate as received from APNs

    alias stringrequired

    Alias to uniquely identify the credential

Responses

200: Mobile push credential created

Schema

    data

    object

    id stringrequired

    Unique identifier of a push credential

    certificate stringrequired

    Apple certificate for sending push notifications. For iOS only

    private_key stringrequired

    Apple private key for a given certificate for sending push notifications. For iOS only

    server_key stringrequired

    Google server key for sending push notifications. For Android only

    alias stringrequired

    Alias to uniquely identify a credential

    type stringrequired

    Type of mobile push credential. Either ios or android

    record_type stringrequired
    created_at datetimerequired

    ISO 8601 timestamp when the room was created

    updated_at datetimerequired

    ISO 8601 timestamp when the room was updated.

401: Unauthorized request

Schema

    errors

    Error[]

  • Array [

  • code intrequired
    title stringrequired
    detail string

    source

    object

    pointer json-pointer

    JSON pointer (RFC6901) to the offending entity.

    parameter string

    Indicates which query parameter caused the error.

    meta object
  • ]

422: Unable to process request

Schema

    errors

    Error[]

  • Array [

  • code intrequired
    title stringrequired
    detail string

    source

    object

    pointer json-pointer

    JSON pointer (RFC6901) to the offending entity.

    parameter string

    Indicates which query parameter caused the error.

    meta object
  • ]

Loading...