import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const mobilePushCredentials = await client.mobilePushCredentials.list();
console.log(mobilePushCredentials.data);{
"data": [
{
"id": "0ccc7b54-4df3-4bcb-a65a-3da1ecc997d7",
"certificate": "-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----",
"private_key": "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----",
"project_account_json_file": {
"private_key": "BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja...",
"client_email": "account@customer.org"
},
"alias": "LucyCredential",
"type": "ios",
"record_type": "push_credential",
"created_at": "2021-03-26T17:51:59.588408Z",
"updated_at": "2021-03-26T17:51:59.588408Z"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}List mobile push credentials
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const mobilePushCredentials = await client.mobilePushCredentials.list();
console.log(mobilePushCredentials.data);{
"data": [
{
"id": "0ccc7b54-4df3-4bcb-a65a-3da1ecc997d7",
"certificate": "-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----",
"private_key": "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----",
"project_account_json_file": {
"private_key": "BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja...",
"client_email": "account@customer.org"
},
"alias": "LucyCredential",
"type": "ios",
"record_type": "push_credential",
"created_at": "2021-03-26T17:51:59.588408Z",
"updated_at": "2021-03-26T17:51:59.588408Z"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Mobile mobile push credentials
Mobile mobile push credentials
Show child attributes
Unique identifier of a push credential
"0ccc7b54-4df3-4bcb-a65a-3da1ecc997d7"
Apple certificate for sending push notifications. For iOS only
"-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----"
Apple private key for a given certificate for sending push notifications. For iOS only
"-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----"
Google server key for sending push notifications. For Android only
{
"private_key": "BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja...",
"client_email": "account@customer.org"
}Alias to uniquely identify a credential
"LucyCredential"
Type of mobile push credential. Either <code>ios</code> or <code>android</code>
"ios"
"push_credential"
ISO 8601 timestamp when the room was created
"2021-03-26T17:51:59.588408Z"
ISO 8601 timestamp when the room was updated.
"2021-03-26T17:51:59.588408Z"
Was this page helpful?