swagger: '2.0' info: version: '2018-09-05' x-release: v4 title: Amazon Pinpoint SMS and Voice Service description: Pinpoint SMS and Voice Messaging public facing APIs x-logo: url: 'https://twitter.com/awscloud/profile_image?size=original' backgroundColor: '#FFFFFF' termsOfService: 'https://aws.amazon.com/service-terms/' contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: 'https://github.com/mermade/aws2openapi' x-twitter: PermittedSoc license: name: Apache 2.0 License url: 'http://www.apache.org/licenses/' x-providerName: amazonaws.com x-serviceName: sms-voice x-origin: - contentType: application/json url: 'https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/sms-voice-2018-09-05.normal.json' converter: url: 'https://github.com/mermade/aws2openapi' version: 1.0.0 x-apisguru-direct: true x-apiClientRegistration: url: 'https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct' x-apisguru-categories: - cloud x-preferred: true externalDocs: description: Amazon Web Services documentation url: 'https://aws.amazon.com/pinpoint/' host: sms-voice.pinpoint.amazonaws.com basePath: / schemes: - https - http consumes: - application/json produces: - application/json parameters: Action: name: Action in: query type: string required: true Version: name: Version in: query type: string required: true X-Amz-Content-Sha256: name: X-Amz-Content-Sha256 in: header type: string required: false X-Amz-Date: name: X-Amz-Date in: header type: string required: false X-Amz-Algorithm: name: X-Amz-Algorithm in: header type: string required: false X-Amz-Credential: name: X-Amz-Credential in: header type: string required: false X-Amz-Security-Token: name: X-Amz-Security-Token in: header type: string required: false X-Amz-Signature: name: X-Amz-Signature in: header type: string required: false X-Amz-SignedHeaders: name: X-Amz-SignedHeaders in: header type: string required: false securityDefinitions: hmac: type: apiKey name: Authorization in: header description: Amazon Signature authorization v4 x-amazon-apigateway-authtype: awsSigv4 security: - hmac: [] paths: /v1/sms-voice/configuration-sets: post: operationId: CreateConfigurationSet description: 'Create a new configuration set. After you create the configuration set, you can add one or more event destinations to it.' responses: '200': description: Success schema: $ref: '#/definitions/CreateConfigurationSetResponse' '480': description: TooManyRequestsException schema: $ref: '#/definitions/TooManyRequestsException' '481': description: BadRequestException schema: $ref: '#/definitions/BadRequestException' '482': description: LimitExceededException schema: $ref: '#/definitions/LimitExceededException' '483': description: InternalServiceErrorException schema: $ref: '#/definitions/InternalServiceErrorException' '484': description: AlreadyExistsException schema: $ref: '#/definitions/AlreadyExistsException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/CreateConfigurationSetRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' get: operationId: ListConfigurationSets description: List all of the configuration sets associated with your Amazon Pinpoint account in the current region. responses: '200': description: Success schema: $ref: '#/definitions/ListConfigurationSetsResponse' '480': description: TooManyRequestsException schema: $ref: '#/definitions/TooManyRequestsException' '481': description: BadRequestException schema: $ref: '#/definitions/BadRequestException' '482': description: InternalServiceErrorException schema: $ref: '#/definitions/InternalServiceErrorException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/ListConfigurationSetsRequest' '/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations': post: operationId: CreateConfigurationSetEventDestination description: Create a new event destination in a configuration set. responses: '200': description: Success schema: $ref: '#/definitions/CreateConfigurationSetEventDestinationResponse' '480': description: BadRequestException schema: $ref: '#/definitions/BadRequestException' '481': description: LimitExceededException schema: $ref: '#/definitions/LimitExceededException' '482': description: InternalServiceErrorException schema: $ref: '#/definitions/InternalServiceErrorException' '483': description: NotFoundException schema: $ref: '#/definitions/NotFoundException' '484': description: TooManyRequestsException schema: $ref: '#/definitions/TooManyRequestsException' '485': description: AlreadyExistsException schema: $ref: '#/definitions/AlreadyExistsException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/CreateConfigurationSetEventDestinationRequest' - name: ConfigurationSetName type: string in: path required: true parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' get: operationId: GetConfigurationSetEventDestinations description: 'Obtain information about an event destination, including the types of events it reports, the Amazon Resource Name (ARN) of the destination, and the name of the event destination.' responses: '200': description: Success schema: $ref: '#/definitions/GetConfigurationSetEventDestinationsResponse' '480': description: NotFoundException schema: $ref: '#/definitions/NotFoundException' '481': description: TooManyRequestsException schema: $ref: '#/definitions/TooManyRequestsException' '482': description: BadRequestException schema: $ref: '#/definitions/BadRequestException' '483': description: InternalServiceErrorException schema: $ref: '#/definitions/InternalServiceErrorException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/GetConfigurationSetEventDestinationsRequest' - name: ConfigurationSetName type: string in: path required: true '/v1/sms-voice/configuration-sets/{ConfigurationSetName}': delete: operationId: DeleteConfigurationSet description: Deletes an existing configuration set. responses: '200': description: Success schema: $ref: '#/definitions/DeleteConfigurationSetResponse' '480': description: NotFoundException schema: $ref: '#/definitions/NotFoundException' '481': description: TooManyRequestsException schema: $ref: '#/definitions/TooManyRequestsException' '482': description: BadRequestException schema: $ref: '#/definitions/BadRequestException' '483': description: InternalServiceErrorException schema: $ref: '#/definitions/InternalServiceErrorException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/DeleteConfigurationSetRequest' - name: ConfigurationSetName type: string in: path required: true parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}': delete: operationId: DeleteConfigurationSetEventDestination description: Deletes an event destination in a configuration set. responses: '200': description: Success schema: $ref: '#/definitions/DeleteConfigurationSetEventDestinationResponse' '480': description: NotFoundException schema: $ref: '#/definitions/NotFoundException' '481': description: TooManyRequestsException schema: $ref: '#/definitions/TooManyRequestsException' '482': description: BadRequestException schema: $ref: '#/definitions/BadRequestException' '483': description: InternalServiceErrorException schema: $ref: '#/definitions/InternalServiceErrorException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/DeleteConfigurationSetEventDestinationRequest' - name: ConfigurationSetName type: string in: path required: true - name: EventDestinationName type: string in: path required: true parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' put: operationId: UpdateConfigurationSetEventDestination description: 'Update an event destination in a configuration set. An event destination is a location that you publish information about your voice calls to. For example, you can log an event to an Amazon CloudWatch destination when a call fails.' responses: '200': description: Success schema: $ref: '#/definitions/UpdateConfigurationSetEventDestinationResponse' '480': description: NotFoundException schema: $ref: '#/definitions/NotFoundException' '481': description: TooManyRequestsException schema: $ref: '#/definitions/TooManyRequestsException' '482': description: BadRequestException schema: $ref: '#/definitions/BadRequestException' '483': description: InternalServiceErrorException schema: $ref: '#/definitions/InternalServiceErrorException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/UpdateConfigurationSetEventDestinationRequest' - name: ConfigurationSetName type: string in: path required: true - name: EventDestinationName type: string in: path required: true /v1/sms-voice/voice/message: post: operationId: SendVoiceMessage description: Create a new voice message and send it to a recipient's phone number. responses: '200': description: Success schema: $ref: '#/definitions/SendVoiceMessageResponse' '480': description: TooManyRequestsException schema: $ref: '#/definitions/TooManyRequestsException' '481': description: BadRequestException schema: $ref: '#/definitions/BadRequestException' '482': description: InternalServiceErrorException schema: $ref: '#/definitions/InternalServiceErrorException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/SendVoiceMessageRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' definitions: CreateConfigurationSetResponse: type: object properties: {} description: An empty object that indicates that the configuration set was successfully created. CreateConfigurationSetRequest: type: object properties: ConfigurationSetName: $ref: '#/definitions/WordCharactersWithDelimiters' description: The name that you want to give the configuration set. description: A request to create a new configuration set. TooManyRequestsException: {} BadRequestException: {} LimitExceededException: {} InternalServiceErrorException: {} AlreadyExistsException: {} CreateConfigurationSetEventDestinationResponse: type: object properties: {} description: An empty object that indicates that the event destination was created successfully. CreateConfigurationSetEventDestinationRequest: type: object properties: EventDestination: $ref: '#/definitions/EventDestinationDefinition' EventDestinationName: $ref: '#/definitions/NonEmptyString' description: A name that identifies the event destination. description: Create a new event destination in a configuration set. NotFoundException: {} DeleteConfigurationSetResponse: type: object properties: {} description: An empty object that indicates that the configuration set was deleted successfully. DeleteConfigurationSetRequest: type: object properties: {} DeleteConfigurationSetEventDestinationResponse: type: object properties: {} description: An empty object that indicates that the event destination was deleted successfully. DeleteConfigurationSetEventDestinationRequest: type: object properties: {} GetConfigurationSetEventDestinationsResponse: type: object properties: EventDestinations: $ref: '#/definitions/EventDestinations' description: An object that contains information about an event destination. GetConfigurationSetEventDestinationsRequest: type: object properties: {} ListConfigurationSetsResponse: type: object properties: ConfigurationSets: $ref: '#/definitions/ConfigurationSets' description: An object that contains a list of configuration sets for your account in the current region. NextToken: $ref: '#/definitions/NextTokenString' description: A token returned from a previous call to ListConfigurationSets to indicate the position in the list of configuration sets. description: An object that contains information about the configuration sets for your account in the current region. ListConfigurationSetsRequest: type: object properties: {} SendVoiceMessageResponse: type: object properties: MessageId: $ref: '#/definitions/String' description: A unique identifier for the voice message. description: An object that that contains the Message ID of a Voice message that was sent successfully. SendVoiceMessageRequest: type: object properties: CallerId: $ref: '#/definitions/String' description: The phone number that appears on recipients' devices when they receive the message. ConfigurationSetName: $ref: '#/definitions/WordCharactersWithDelimiters' description: The name of the configuration set that you want to use to send the message. Content: $ref: '#/definitions/VoiceMessageContent' DestinationPhoneNumber: $ref: '#/definitions/NonEmptyString' description: The phone number that you want to send the voice message to. OriginationPhoneNumber: $ref: '#/definitions/NonEmptyString' description: 'The phone number that Amazon Pinpoint should use to send the voice message. This isn''t necessarily the phone number that appears on recipients'' devices when they receive the message, because you can specify a CallerId parameter in the request.' description: SendVoiceMessageRequest UpdateConfigurationSetEventDestinationResponse: type: object properties: {} description: An empty object that indicates that the event destination was updated successfully. UpdateConfigurationSetEventDestinationRequest: type: object properties: EventDestination: $ref: '#/definitions/EventDestinationDefinition' description: UpdateConfigurationSetEventDestinationRequest Boolean: type: boolean NonEmptyString: type: string CallInstructionsMessageType: type: object properties: Text: $ref: '#/definitions/NonEmptyString' description: 'The language to use when delivering the message. For a complete list of supported languages, see the Amazon Polly Developer Guide.' description: An object that defines a message that contains text formatted using Amazon Pinpoint Voice Instructions markup. String: type: string CloudWatchLogsDestination: type: object properties: IamRoleArn: $ref: '#/definitions/String' description: The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon CloudWatch destination. LogGroupArn: $ref: '#/definitions/String' description: The name of the Amazon CloudWatch Log Group that you want to record events in. description: An object that contains information about an event destination that sends data to Amazon CloudWatch Logs. WordCharactersWithDelimiters: type: string ConfigurationSets: type: array description: An array that contains all of the configuration sets in your Amazon Pinpoint account in the current AWS Region. items: $ref: '#/definitions/WordCharactersWithDelimiters' __string: type: string EventDestinationDefinition: type: object properties: CloudWatchLogsDestination: $ref: '#/definitions/CloudWatchLogsDestination' Enabled: $ref: '#/definitions/Boolean' description: 'Indicates whether or not the event destination is enabled. If the event destination is enabled, then Amazon Pinpoint sends response data to the specified event destination.' KinesisFirehoseDestination: $ref: '#/definitions/KinesisFirehoseDestination' MatchingEventTypes: $ref: '#/definitions/EventTypes' SnsDestination: $ref: '#/definitions/SnsDestination' description: An object that defines a single event destination. KinesisFirehoseDestination: type: object properties: DeliveryStreamArn: $ref: '#/definitions/String' description: The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon Kinesis Data Firehose stream. IamRoleArn: $ref: '#/definitions/String' description: The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination that you want to use in the event destination. description: An object that contains information about an event destination that sends data to Amazon Kinesis Data Firehose. EventTypes: type: array description: An array of EventDestination objects. Each EventDestination object includes ARNs and other information that define an event destination. items: $ref: '#/definitions/EventType' SnsDestination: type: object properties: TopicArn: $ref: '#/definitions/String' description: The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish events to. description: An object that contains information about an event destination that sends data to Amazon SNS. EventDestination: type: object properties: CloudWatchLogsDestination: $ref: '#/definitions/CloudWatchLogsDestination' Enabled: $ref: '#/definitions/Boolean' description: 'Indicates whether or not the event destination is enabled. If the event destination is enabled, then Amazon Pinpoint sends response data to the specified event destination.' KinesisFirehoseDestination: $ref: '#/definitions/KinesisFirehoseDestination' MatchingEventTypes: $ref: '#/definitions/EventTypes' Name: $ref: '#/definitions/String' description: A name that identifies the event destination configuration. SnsDestination: $ref: '#/definitions/SnsDestination' description: An object that defines an event destination. EventDestinations: type: array description: An array of EventDestination objects. Each EventDestination object includes ARNs and other information that define an event destination. items: $ref: '#/definitions/EventDestination' EventType: type: string enum: - INITIATED_CALL - RINGING - ANSWERED - COMPLETED_CALL - BUSY - FAILED - NO_ANSWER description: The types of events that are sent to the event destination. NextTokenString: type: string PlainTextMessageType: type: object properties: LanguageCode: $ref: '#/definitions/String' description: 'The language to use when delivering the message. For a complete list of supported languages, see the Amazon Polly Developer Guide.' Text: $ref: '#/definitions/NonEmptyString' description: The plain (not SSML-formatted) text to deliver to the recipient. VoiceId: $ref: '#/definitions/String' description: 'The name of the voice that you want to use to deliver the message. For a complete list of supported voices, see the Amazon Polly Developer Guide.' description: An object that defines a message that contains unformatted text. SSMLMessageType: type: object properties: LanguageCode: $ref: '#/definitions/String' description: 'The language to use when delivering the message. For a complete list of supported languages, see the Amazon Polly Developer Guide.' Text: $ref: '#/definitions/NonEmptyString' description: The SSML-formatted text to deliver to the recipient. VoiceId: $ref: '#/definitions/String' description: 'The name of the voice that you want to use to deliver the message. For a complete list of supported voices, see the Amazon Polly Developer Guide.' description: An object that defines a message that contains SSML-formatted text. VoiceMessageContent: type: object properties: CallInstructionsMessage: $ref: '#/definitions/CallInstructionsMessageType' PlainTextMessage: $ref: '#/definitions/PlainTextMessageType' SSMLMessage: $ref: '#/definitions/SSMLMessageType' description: An object that contains a voice message and information about the recipient that you want to send it to.