---
title: "Creates a new mobile push credential"
method: POST
path: "/mobile_push_credentials"
tags: ["Push Credentials"]
---

# Creates a new mobile push credential

`POST /mobile_push_credentials`

Creates a new mobile push credential

## Request body

- union
  - CreateIosPushCredentialRequest
    - `type` 'ios', required — Type of mobile push credential. Should be <code>ios</code> here
    - `certificate` string, required — Certificate as received from APNs
    - `private_key` string, required — Corresponding private key to the certificate as received from APNs
    - `alias` string, required — Alias to uniquely identify the credential
  - CreateAndroidPushCredentialRequest
    - `type` 'android', required — Type of mobile push credential. Should be <code>android</code> here
    - `project_account_json_file` object, required — Private key file in JSON format
    - `alias` string, required — Alias to uniquely identify the credential

## Response `200`

Mobile push credential created

- PushCredentialResponse — Success response with details about a push credential
  - `data` PushCredential
    - `id` string, required — Unique identifier of a push credential
    - `certificate` string, required — Apple certificate for sending push notifications. For iOS only
    - `private_key` string, required — Apple private key for a given certificate for sending push notifications. For iOS only
    - `project_account_json_file` object, required — Google server key for sending push notifications. For Android only
    - `alias` string, required — Alias to uniquely identify a credential
    - `type` string, required — Type of mobile push credential. Either <code>ios</code> or <code>android</code>
    - `record_type` string, required
    - `created_at` string, date-time, required — ISO 8601 timestamp when the room was created
    - `updated_at` string, date-time, required — ISO 8601 timestamp when the room was updated.

## Other responses

- `401` — Unauthorized request
- `422` — Unable to process request

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/8f5f4e537994/schema)
