POST
/
generativeagent
/
v1
/
streams
curl --request POST \
  --url https://api.sandbox.asapp.com/generativeagent/v1/streams \
  --header 'Content-Type: application/json' \
  --header 'asapp-api-id: <api-key>' \
  --header 'asapp-api-secret: <api-key>' \
  --data '{
  "streamId": "97555020-0276-435f-8104-c378221ba292"
}'
{
  "streamId": "97555020-0276-435f-8104-c378221ba292",
  "streamingUrl": "https://ws-co82129c.test.asapp.com/push-api/connect/sse\\?token\\=<token>",
  "messageTypes": [
    "generative-agent-message"
  ]
}

Authorizations

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

Body

application/json

The parameters to be associated with a given connection.

Response

200
application/json

Successfully generated a new streaming URL.

Streaming URL with its identifier and possible SSE message-types to be received.