openapi: 3.0.1
info:
title: Twilio - Accounts A2p CompositionSettings API
description: This is the public Twilio REST API.
termsOfService: https://www.twilio.com/legal/tos
contact:
name: Twilio Support
url: https://support.twilio.com
email: support@twilio.com
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
version: 1.52.0
servers:
- url: https://accounts.twilio.com
tags:
- name: CompositionSettings
paths:
/v1/CompositionSettings/Default:
servers:
- url: https://video.twilio.com
description: Recording composition settings
x-twilio:
defaultOutputProperties:
- friendly_name
- aws_storage_enabled
- encryption_enabled
pathType: instance
mountName: composition_settings
className: composition_settings
get:
description: ''
tags:
- CompositionSettings
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/video.v1.composition_settings'
description: OK
security:
- accountSid_authToken: []
operationId: FetchCompositionSettings
x-maturity:
- GA
post:
description: ''
tags:
- CompositionSettings
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/video.v1.composition_settings'
description: Created
security:
- accountSid_authToken: []
operationId: CreateCompositionSettings
x-maturity:
- GA
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CreateCompositionSettingsRequest'
components:
schemas:
CreateCompositionSettingsRequest:
type: object
required:
- FriendlyName
properties:
FriendlyName:
type: string
description: A descriptive string that you create to describe the resource and show to the user in the console
AwsCredentialsSid:
type: string
minLength: 34
maxLength: 34
pattern: ^CR[0-9a-fA-F]{32}$
description: The SID of the stored Credential resource.
EncryptionKeySid:
type: string
minLength: 34
maxLength: 34
pattern: ^CR[0-9a-fA-F]{32}$
description: The SID of the Public Key resource to use for encryption.
AwsS3Url:
type: string
format: uri
description: The URL of the AWS S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the RFC 3986.
AwsStorageEnabled:
type: boolean
description: Whether all compositions should be written to the `aws_s3_url`. When `false`, all compositions are stored in our cloud.
EncryptionEnabled:
type: boolean
description: Whether all compositions should be stored in an encrypted form. The default is `false`.
video.v1.composition_settings:
type: object
properties:
account_sid:
type: string
minLength: 34
maxLength: 34
pattern: ^AC[0-9a-fA-F]{32}$
nullable: true
description: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CompositionSettings resource.
friendly_name:
type: string
nullable: true
description: The string that you assigned to describe the resource and that will be shown in the console
aws_credentials_sid:
type: string
minLength: 34
maxLength: 34
pattern: ^CR[0-9a-fA-F]{32}$
nullable: true
description: The SID of the stored Credential resource.
aws_s3_url:
type: string
format: uri
nullable: true
description: The URL of the AWS S3 bucket where the compositions are stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the RFC 3986.
aws_storage_enabled:
type: boolean
nullable: true
description: Whether all compositions are written to the `aws_s3_url`. When `false`, all compositions are stored in our cloud.
encryption_key_sid:
type: string
minLength: 34
maxLength: 34
pattern: ^CR[0-9a-fA-F]{32}$
nullable: true
description: The SID of the Public Key resource used for encryption.
encryption_enabled:
type: boolean
nullable: true
description: Whether all compositions are stored in an encrypted form. The default is `false`.
url:
type: string
format: uri
nullable: true
description: The absolute URL of the resource.
securitySchemes:
accountSid_authToken:
type: http
scheme: basic
x-maturity:
- name: GA
description: This product is Generally Available.
- name: Beta
description: PLEASE NOTE that this is a Beta product that is subject to change. Use it with caution.