POST /v2/Credentials/{Sid}

TODO: Resource-level docs

Path parameters

  • Sid string Required

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^CR[0-9a-fA-F]{32}$.

application/x-www-form-urlencoded

Body

  • ApiKey string
  • Certificate string
  • FriendlyName string
  • PrivateKey string
  • Sandbox boolean
  • Secret string

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • account_sid string | null

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • date_created string(date-time) | null
    • date_updated string(date-time) | null
    • friendly_name string | null
    • sandbox string | null
    • sid string | null

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^CR[0-9a-fA-F]{32}$.

    • type string | null

      Values are gcm, apn, or fcm.

    • url string(uri) | null
POST /v2/Credentials/{Sid}
curl \
 --request POST 'https://ip-messaging.twilio.com/v2/Credentials/{Sid}' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'ApiKey=string&Certificate=string&FriendlyName=string&PrivateKey=string&Sandbox=true&Secret=string'
Response examples (200)
{
  "account_sid": "string",
  "date_created": "2026-05-04T09:42:00Z",
  "date_updated": "2026-05-04T09:42:00Z",
  "friendly_name": "string",
  "sandbox": "string",
  "sid": "string",
  "type": "gcm",
  "url": "https://example.com"
}