Push Credentials

Creates a new mobile push credential

Creates a new mobile push credential for delivering push notifications to iOS or Android apps, and returns the created credential.

post/mobile_push_credentials

Request body

OR

Example request

{
  "alias": "LucyIosCredential",
  "certificate": "-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----",
  "private_key": "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----"
}

Response

Mobile push credential created

Example response

{
  "data": {
    "alias": "LucyCredential",
    "certificate": "-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----",
    "created_at": "2021-03-26T17:51:59.588408Z",
    "id": "0ccc7b54-4df3-4bcb-a65a-3da1ecc997d7",
    "private_key": "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----",
    "project_account_json_file": {
      "client_email": "account@customer.org",
      "private_key": "BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja..."
    },
    "record_type": "push_credential",
    "type": "ios",
    "updated_at": "2021-03-26T17:51:59.588408Z"
  }
}

Changes

Changed in 2 of the 61 revisions of this API.4

    • the errors/items/code response's property type/format changed from integer/int32 to string/ for status 401

      response-property-type-changed

    • the errors/items/code response's property type/format changed from integer/int32 to string/ for status 422

      response-property-type-changed

    This revision also has 64 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the errors/items/code response's property type/format changed from string/ to integer/int32 for status 401

      response-property-type-changed

    • the errors/items/code response's property type/format changed from string/ to integer/int32 for status 422

      response-property-type-changed

    This revision also has 41 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog