Body
-
ApiKey string
-
Certificate string
-
FriendlyName string
-
PrivateKey string
-
Sandbox boolean
-
Secret string
-
Values are
gcm
,apn
, orfcm
.
POST /v2/Credentials
curl \
-X POST https://ip-messaging.twilio.com/v2/Credentials \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'ApiKey=string&Certificate=string&FriendlyName=string&PrivateKey=string&Sandbox=true&Secret=string&Type=gcm'
Request example
{
"ApiKey": "string",
"Certificate": "string",
"FriendlyName": "string",
"PrivateKey": "string",
"Sandbox": true,
"Secret": "string",
"Type": "gcm"
}
Request examples
{
"ApiKey": "string",
"Certificate": "string",
"FriendlyName": "string",
"PrivateKey": "string",
"Sandbox": true,
"Secret": "string",
"Type": "gcm"
}
Response examples (201)
{
"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"
}
Response examples (201)
{
"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"
}