Create recording settings

POST /v1/RecordingSettings/Default

Recording settings

application/x-www-form-urlencoded

Body

  • The SID of the stored Credential resource.

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

  • AwsS3Url string(uri)

    The URL of the AWS S3 bucket where the recordings should be stored. We only support DNS-compliant URLs like https://documentation-example-twilio-bucket/recordings, where recordings is the path in which you want the recordings to be stored. This URL accepts only URI-valid characters, as described in the RFC 3986.

  • Whether all recordings should be written to the aws_s3_url. When false, all recordings are stored in our cloud.

  • Whether all recordings should be stored in an encrypted form. The default is false.

  • The SID of the Public Key resource to use for encryption.

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

  • FriendlyName string Required

    A descriptive string that you create to describe the resource and be shown to users in the console

Responses

  • 201

    Created

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

      The SID of the Account that created the resource

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

    • aws_credentials_sid string | null

      The SID of the stored Credential resource

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

    • aws_s3_url string(uri) | null

      The URL of the AWS S3 bucket where the recordings are stored

    • aws_storage_enabled boolean | null

      Whether all recordings are written to the aws_s3_url

    • encryption_enabled boolean | null

      Whether all recordings are stored in an encrypted form

    • encryption_key_sid string | null

      The SID of the Public Key resource used for encryption

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

    • friendly_name string | null

      The string that you assigned to describe the resource

    • url string(uri) | null

      The absolute URL of the resource

POST /v1/RecordingSettings/Default
curl \
 -X POST https://video.twilio.com/v1/RecordingSettings/Default \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'AwsCredentialsSid=string&AwsS3Url=https%3A%2F%2Fexample.com&AwsStorageEnabled=true&EncryptionEnabled=true&EncryptionKeySid=string&FriendlyName=string'
Request example
{
  "AwsCredentialsSid": "string",
  "AwsS3Url": "https://example.com",
  "AwsStorageEnabled": true,
  "EncryptionEnabled": true,
  "EncryptionKeySid": "string",
  "FriendlyName": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "aws_credentials_sid": "string",
  "aws_s3_url": "https://example.com",
  "aws_storage_enabled": true,
  "encryption_enabled": true,
  "encryption_key_sid": "string",
  "friendly_name": "string",
  "url": "https://example.com"
}