Create an external storage item
Beta/Early Access Program
This API is in the Beta/Early Access Program and is still under development. If you are interested in using this API, please contact your Customer Success Manager or Account Manager. Participation in this pilot program is at the discretion of Product Management and not guaranteed.
Use of this API outside of the program is prohibited.
The POST /interactions/external-storage
endpoint enables you to create an external storage item that will be used to authenticate Vonage Contact Center to transfer data from VCC to the storage provider.
400 Bad Request
error.
Headers
Header parameters in Requests (Interaction Content Export API) apply to this endpoint.
Authorization scopes supported:
Scope | Access granted |
---|---|
interaction-content:read | Entire endpoint |
Parameters
The endpoint accepts the following body parameters:
name
Type | Required | Example |
---|---|---|
String | True | External Storage |
External storage name.
storageProvider
Type | Required | Example |
---|---|---|
String | True | AWS_S3 |
Storage provider. Currently supported storage providers:
- AWS_S3
credentials
Type | Required | Example |
---|---|---|
Object | True | { |
Credentials to the external storage that allow VCC to transfer data to it. The format of the object depends on the selected provider. For more information see the following table:
Provider | Format |
---|---|
AWS_S3 | { |
Requests
Example request
curl -L -X POST "https://***.api.cc.vonage.com/interaction-content-export/external-storage" \ -H "Authorization: Bearer <ACCESS_TOKEN>" \ -H "Accept: application/vnd.newvoicemedia.v1+json" \ --data-raw "<JSON BODY>"
Required parameters for S3 storage provider
{ "name": "External storage", "storageProvider": "AWS_S3", "credentials": { "roleArn": "arn:aws:iam::account:role/role-name-with-path", "region": "us-east-1", "bucketName": "customer-bucket" } }
Responses
The following responses are specific to this endpoint. For information about all possible responses from the API, see Responses (Interaction Content Export API).
Success response
Successful responses to the endpoint return the ID of the created storage item.
Example success response
{ "externalStorageId": "74137e23-9716-4e5c-ad92-36343c248282" }
where:
externalStorageId
. The unique identifier of the external storage item.
Error response
After creating the storage item, the API uploads a zero-byte file to verify that the storage item was created successfully and is ready for use. If the upload fails, the API returns a 400 Bad Request
error.
{ "message": "External storage validation failed. Please verify storage configuration settings." }
For information, see Trying out Vonage Contact Center APIs.