Path parameters
-
The Twilio-provided string that uniquely identifies the Credential resource to update.
Body
-
ApiKey string
[GCM only] The
Server key
of your project from Firebase console under Settings / Cloud messaging. -
Certificate string
[APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g.
-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----
-
FriendlyName string
A descriptive string that you create to describe the resource. It can be up to 64 characters long.
-
PrivateKey string
[APN only] The URL-encoded representation of the private key. Strip everything outside of the headers, e.g.
-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\n.-----END RSA PRIVATE KEY-----
-
Sandbox boolean
[APN only] Whether to send the credential to sandbox APNs. Can be
true
to send to sandbox APNs orfalse
to send to production. -
Secret string
[FCM only] The
Server key
of your project from Firebase console under Settings / Cloud messaging.
curl \
-X POST https://notify.twilio.com/v1/Credentials/{Sid} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'ApiKey=string&Certificate=string&FriendlyName=string&PrivateKey=string&Sandbox=true&Secret=string'
{
"ApiKey": "string",
"Certificate": "string",
"FriendlyName": "string",
"PrivateKey": "string",
"Sandbox": true,
"Secret": "string"
}
{
"ApiKey": "string",
"Certificate": "string",
"FriendlyName": "string",
"PrivateKey": "string",
"Sandbox": true,
"Secret": "string"
}
{
"account_sid": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"friendly_name": "string",
"sandbox": "string",
"sid": "string",
"type": "gcm",
"url": "https://example.com"
}
{
"account_sid": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"friendly_name": "string",
"sandbox": "string",
"sid": "string",
"type": "gcm",
"url": "https://example.com"
}