POST
/
metadata-ingestion
/
v1
/
single-convo-metadata
curl --request POST \
  --url https://api.sandbox.asapp.com/metadata-ingestion/v1/single-convo-metadata \
  --header 'Content-Type: application/json' \
  --header 'asapp-api-id: <api-key>' \
  --header 'asapp-api-secret: <api-key>' \
  --data '{
  "externalConversationId": "id-1389",
  "eventId": "eventId-1388",
  "lobId": "1038",
  "lobName": "manufacturing",
  "groupId": "group59",
  "groupName": "groupXYZ",
  "agentRoutingCode": "route-13988",
  "campaign": "campaign-A",
  "deviceType": "TABLET",
  "platform": "IOS",
  "companySegment": [
    "Sales",
    "Marketing"
  ],
  "companySubdivision": "operating",
  "businessRule": "Apply customer'\''s discount",
  "entryType": "reactive",
  "operatingSystem": "MAC_OS",
  "browserType": "Safari",
  "browserVersion": "14.1.2",
  "attributes": [
    {
      "name": "attr1_name",
      "value": "attr1_value"
    },
    {
      "name": "attr2_name",
      "value": "attr2_value"
    }
  ]
}'
{
  "result": {
    "eventId": "5484e507-feaf-11ec-bfc1-fda566fa9333",
    "error": "FAIL_BAD_PARAMS: ERROR: agent id cannot be blank"
  }
}

Authorizations

asapp-api-id
string
header
required
asapp-api-secret
string
header
required

Body

application/json

A set of conversation metadata attributes

Response

200
application/json
200 - Success Submit a single item to the service to be ingested. Record can be traced back to the submitted record by the eventId. A message sent status will be returned with no error message for successful input checks.

The response is of type object.