Add a new push notification credential to your account

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://twilio.demo.bump-doc.com/doc/conversations/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"Conversations MCP server": {
  "url": "https://twilio.demo.bump-doc.com/doc/conversations/mcp"
}
Close
POST /v1/Credentials

A Credential resource represents a push notification credential.

Add a new push notification credential to your account

application/x-www-form-urlencoded

Body

  • Type string Required

    The type of push-notification service the credential is for. Can be: fcm, gcm, or apn.

    Values are apn, gcm, or fcm.

  • FriendlyName string

    A descriptive string that you create to describe the new resource. It can be up to 64 characters long.

  • Certificate string

    [APN only] The URL encoded representation of the certificate. For example, -----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----.

  • PrivateKey string

    [APN only] The URL encoded representation of the private key. For example, -----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----.

  • Sandbox boolean

    [APN only] Whether to send the credential to sandbox APNs. Can be true to send to sandbox APNs or false to send to production.

  • ApiKey string

    [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential.

  • Secret string

    [FCM only] The Server key of your project from the Firebase console, found under Settings / Cloud messaging.

Responses

  • 201 application/json

    Created

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

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

      A 34 character string that uniquely identifies this resource.

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

    • account_sid string | null

      The unique ID of the Account responsible for this credential.

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

    • friendly_name string | null

      The human-readable name of this credential, limited to 64 characters. Optional.

    • type string

      The type of push-notification service the credential is for. Can be: fcm, gcm, or apn.

      Values are apn, gcm, or fcm.

    • sandbox string | null

      [APN only] Whether to send the credential to sandbox APNs. Can be true to send to sandbox APNs or false to send to production.

    • date_created string(date-time) | null

      The date that this resource was created.

    • date_updated string(date-time) | null

      The date that this resource was last updated.

    • url string(uri) | null

      An absolute API resource URL for this credential.

POST /v1/Credentials
curl \
 --request POST 'https://conversations.twilio.com/v1/Credentials' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'Type=apn'
Request example
{"Type" => "apn"}
Response examples (201)
{
  "sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "friendly_name": "Test slow create",
  "type": "apn",
  "sandbox": "False",
  "date_created": "2015-10-07T17:50:01Z",
  "date_updated": "2015-10-07T17:50:01Z",
  "url": "https://conversations.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}